Public Member Functions | List of all members
SourceTerm1D Class Referenceabstract

Abstract class for external forces. More...

#include <source_term_1d.hpp>

Inheritance diagram for SourceTerm1D:
Inheritance graph
[legend]

Public Member Functions

virtual Extensive operator() (const SimulationState1D &state, size_t point, double t, double dt) const =0
 Calculates the change in the extensive conserved variables due to external forces. More...
 

Detailed Description

Abstract class for external forces.

Definition at line 17 of file source_term_1d.hpp.

Member Function Documentation

◆ operator()()

virtual Extensive SourceTerm1D::operator() ( const SimulationState1D state,
size_t  point,
double  t,
double  dt 
) const
pure virtual

Calculates the change in the extensive conserved variables due to external forces.

Parameters
stateComputational domain and hydro cells
pointPoint in which the forces will be evaluated
tSimulation time
dtTime step
Returns
Value of the external force

Implemented in ZeroForce1D, and CylindricalComplementary1D.


The documentation for this class was generated from the following files: