1 #ifndef MASS_BALANCE_HH_
2 #define MASS_BALANCE_HH_
47 virtual void calc_fluxes(vector<vector<double> > &bcd_balance, vector<vector<double> > &bcd_plus_balance, vector<vector<double> > &bcd_minus_balance) = 0;
57 virtual void calc_elem_sources(vector<vector<double> > &mass, vector<vector<double> > &src_balance) = 0;
149 #endif // MASS_BALANCE_HH_
void calculate(double time)
vector< double > src_total_balance
static Input::Type::Record input_type
vector< double > bcd_total_inflow
double initial_time
initial time
double last_time
time of last calculated balance
vector< vector< double > > bcd_plus_balance
FILE * balance_output_file
Handle for output file for output of balance and total fluxes over individual regions and region sets...
EquationForMassBalance * equation_
Pointer to the class which implements calculation of mass, sources and fluxes.
bool cumulative
if true then cumulative balance is computed
MassBalance(EquationForMassBalance *eq, const Input::Record &in_rec)
vector< double > initial_mass
vector< double > integrated_sources
Class for calculation and writing the balance of mass, volume sources and fluxes. ...
vector< vector< double > > bcd_balance
void output(double time)
Write computed fields to file.
vector< vector< double > > bcd_minus_balance
vector< vector< double > > src_balance
vector< double > bcd_total_balance
bool initial
true before calculating the mass at initial time, otherwise false
vector< double > bcd_total_outflow
vector< double > mass_total
vector< vector< double > > mass
vector< double > integrated_fluxes