|
Flow123d
jenkins-Flow123d-windows32-release-multijob-51
|
Class for calculation and writing the balance of mass, volume sources and fluxes. More...
#include <mass_balance.hh>

Public Member Functions | |
| MassBalance (EquationForMassBalance *eq, const Input::Record &in_rec) | |
| ~MassBalance () | |
| void | output (double time) |
| Write computed fields to file. More... | |
| void | calculate (double time) |
Static Public Attributes | |
| static Input::Type::Record | input_type |
Protected Attributes | |
| EquationForMassBalance * | equation_ |
| Pointer to the class which implements calculation of mass, sources and fluxes. More... | |
| FILE * | balance_output_file |
| Handle for output file for output of balance and total fluxes over individual regions and region sets. More... | |
| vector< vector< double > > | bcd_balance |
| vector< vector< double > > | bcd_plus_balance |
| vector< vector< double > > | bcd_minus_balance |
| vector< vector< double > > | mass |
| vector< vector< double > > | src_balance |
| vector< double > | bcd_total_balance |
| vector< double > | bcd_total_inflow |
| vector< double > | bcd_total_outflow |
| vector< double > | mass_total |
| vector< double > | src_total_balance |
| vector< double > | initial_mass |
| vector< double > | integrated_sources |
| vector< double > | integrated_fluxes |
| double | initial_time |
| initial time More... | |
| double | last_time |
| time of last calculated balance More... | |
| bool | initial |
| true before calculating the mass at initial time, otherwise false More... | |
| bool | cumulative |
| if true then cumulative balance is computed More... | |
Class for calculation and writing the balance of mass, volume sources and fluxes.
At each time instant we calculate:
In addition, the quantities are summed over all regions and integrated in time, so that the cumulative (integrated) quantities should satisfy:
INITIAL_MASS + INTEGRATED_SOURCES - INTEGRATED_FLUXES = CURRENT_MASS.
All quantities are written to the file "mass_balance.txt" in the output directory.
Definition at line 82 of file mass_balance.hh.
| MassBalance::MassBalance | ( | EquationForMassBalance * | eq, |
| const Input::Record & | in_rec | ||
| ) |
Definition at line 56 of file mass_balance.cc.
| MassBalance::~MassBalance | ( | ) |
Definition at line 83 of file mass_balance.cc.
| void MassBalance::calculate | ( | double | time | ) |
Calculate mass balance: flux through boundary, mass and volume sources
Definition at line 89 of file mass_balance.cc.

| void MassBalance::output | ( | double | time | ) |
Write computed fields to file.
Definition at line 251 of file mass_balance.cc.

|
protected |
Handle for output file for output of balance and total fluxes over individual regions and region sets.
Definition at line 109 of file mass_balance.hh.
|
protected |
Definition at line 112 of file mass_balance.hh.
|
protected |
Definition at line 114 of file mass_balance.hh.
|
protected |
Definition at line 113 of file mass_balance.hh.
|
protected |
Definition at line 118 of file mass_balance.hh.
|
protected |
Definition at line 119 of file mass_balance.hh.
|
protected |
Definition at line 120 of file mass_balance.hh.
|
protected |
if true then cumulative balance is computed
Definition at line 138 of file mass_balance.hh.
|
protected |
Pointer to the class which implements calculation of mass, sources and fluxes.
Definition at line 106 of file mass_balance.hh.
|
protected |
true before calculating the mass at initial time, otherwise false
Definition at line 135 of file mass_balance.hh.
|
protected |
Definition at line 124 of file mass_balance.hh.
|
protected |
initial time
Definition at line 129 of file mass_balance.hh.
|
static |
Definition at line 100 of file mass_balance.hh.
|
protected |
Definition at line 126 of file mass_balance.hh.
|
protected |
Definition at line 125 of file mass_balance.hh.
|
protected |
time of last calculated balance
Definition at line 132 of file mass_balance.hh.
|
protected |
Definition at line 115 of file mass_balance.hh.
|
protected |
Definition at line 121 of file mass_balance.hh.
|
protected |
Definition at line 116 of file mass_balance.hh.
|
protected |
Definition at line 122 of file mass_balance.hh.
1.8.7