1#ifndef variable_adjuster_velocity_space_moment_taker_h
2#define variable_adjuster_velocity_space_moment_taker_h
16namespace variable_adjuster
75 std::vector<std::vector<size_t>> _app_to_out_idcs_func_eval;
78 std::vector<size_t> _moment_input_indexes;
79 std::vector<size_t> _moment_output_indexes;
82 std::vector<size_t> _out_idcs;
83 std::vector<size_t> _all_idcs;
89 std::unique_ptr<WmBasisArraySet> _velocity_space_basis_set;
98 std::vector<real> _weights_vx;
99 std::vector<real> _weights_vy;
100 std::vector<real> _weights_vz;
105 real _v_space_determinant;
108 std::unique_ptr<WxRange> _velocity_space_element_range;
109 std::unique_ptr<WxRange> _full_velocity_space_element_range;
112 std::shared_ptr<geometry::phase_space::PhaseSpaceDGGeometry> _phase_space_dg_geometry;
121 real calcDeterminant();
127 void generateVelocitySpaceElementRange1VPositive();
134 void generateVelocitySpaceElementRange1VNegative();
WxCryptSet extends WxCrypt by providing, in addition to name-value pairs, an set of named WxCryptSets...
Definition: wxcryptset.h:35
The velocity space moment taker class takes moments in velocity space to calculate variables such as:...
Definition: velocity_space_moment_taker.h:30
void setup(const WxCryptSet &wxc) override
Setup the spatial solver using the cryptset.
VelocitySpaceMomentTaker()=default
Constructor.
void solve_old(real time, variables_type &input)
void solve_new(real time, variables_type &input)
std::vector< size_t > convertToOutputIndexes(const std::vector< int > &indexes) const
Converts output indexes of the patch array into indexes of _out_idcs e.g.
void solve(real time, variables_type &input) override
Solves the velocity space moment and puts solution back into input We are calculating a velocity spac...
The WmVariableAdjuster class is a base class for variable adjusters.
Definition: variable_adjuster.h:31
wxm::temporal_solver::variables_type variables_type
Definition: variable_adjuster.h:41
Base namespace for everything not included in the global namespace.
Definition: field_source.h:8
#define real
Definition: wmoclunstructuredreconstruction.h:11