#include <mass_balance.hh>
|
| virtual void | calc_fluxes (vector< vector< double > > &bcd_balance, vector< vector< double > > &bcd_plus_balance, vector< vector< double > > &bcd_minus_balance)=0 |
| |
| virtual void | calc_elem_sources (vector< vector< double > > &mass, vector< vector< double > > &src_balance)=0 |
| |
| virtual const RegionDB * | region_db ()=0 |
| | Returns the region database. More...
|
| |
Interface class for equation which implements methods required for mass balance.
Definition at line 10 of file mass_balance.hh.
| Enumerator |
|---|
| none |
|
| explicit_euler |
|
| implicit_euler |
|
| crank_nicholson |
|
Definition at line 16 of file mass_balance.hh.
| virtual EquationForMassBalance::~EquationForMassBalance |
( |
) | |
|
|
inlinevirtual |
| virtual void EquationForMassBalance::calc_elem_sources |
( |
vector< vector< double > > & |
mass, |
|
|
vector< vector< double > > & |
src_balance |
|
) |
| |
|
protectedpure virtual |
Calculates the substance mass and sources on all regions. The actual calculation depends on the numerical scheme, so each descendant of TransportBase implements this method.
- Parameters
-
| mass | mass[i][j] is the calculated mass of ith substance on jth region. |
| src_balance | src_balance[i][j] is the source mass of ith substance on jth region. |
| virtual void EquationForMassBalance::calc_fluxes |
( |
vector< vector< double > > & |
bcd_balance, |
|
|
vector< vector< double > > & |
bcd_plus_balance, |
|
|
vector< vector< double > > & |
bcd_minus_balance |
|
) |
| |
|
protectedpure virtual |
Calculates the total flux through boundaries of all regions, and additionally positive and negative fluxes. The actual calculation depends on the numerical scheme, so each descendant of TransportBase implements this method.
- Parameters
-
| bcd_balance | bcd_balance[i][j] is the calculated total flux of ith substance through boundary of jth region. |
| bcd_plus_balance | bcd_plus_balance[i][j] is the total positive flux of ith substance through boundary of jth region. |
| bcd_minus_balance | bcd_minus_balance[i][j] is the total negative flux of ith substance through boundary of jth region. |
| virtual unsigned int EquationForMassBalance::n_substances |
( |
) | |
|
|
pure virtual |
| virtual const RegionDB* EquationForMassBalance::region_db |
( |
) | |
|
|
protectedpure virtual |
| virtual vector<string>& EquationForMassBalance::substance_names |
( |
) | |
|
|
pure virtual |
The documentation for this class was generated from the following file: