Class for conservative forces. More...
#include <ConservativeForce.hpp>
Public Member Functions | |
ConservativeForce (const Acceleration &acc, bool mass_flux=false) | |
Class constructor. More... | |
~ConservativeForce (void) | |
Class destructor. | |
vector< Extensive > | operator() (const Tessellation &tess, const PhysicalGeometry &pg, const CacheData &cd, const vector< ComputationalCell > &cells, const vector< Extensive > &fluxes, const vector< Vector2D > &point_velocities, const double t, TracerStickerNames const &tracerstickernames) const |
Calcualtes the change in conserved variables done on a cell from a source term. More... | |
Class for conservative forces.
Definition at line 38 of file ConservativeForce.hpp.
|
explicit |
Class constructor.
acc | The acceleration force |
mass_flux | Flag whether to include mass flux into energy equation |
Definition at line 41 of file ConservativeForce.cpp.
|
virtual |
Calcualtes the change in conserved variables done on a cell from a source term.
tess | The tessellation |
pg | Physical geometry |
cd | Cache data |
cells | The hydrodynmic variables of the cell |
fluxes | Fluxes |
point_velocities | Velocities of the mesh generating points |
t | Time |
tracerstickernames | The names of the tracers and stickers |
Implements SourceTerm.
Definition at line 47 of file ConservativeForce.cpp.