Class storing data assigned to a cell-cell interfaces, so-called flux-data. More...
#include <dumux/porousmediumflow/2p/sequential/fluxdata.hh>
Class storing data assigned to a cell-cell interfaces, so-called flux-data.
Stores velocities and potentials at cell-cell interfaces. Further it provides methods which interpret stored phase potentials for upwind decisions.
| TypeTag | The problem TypeTag |
Public Member Functions | |
| FluxData2P () | |
| Constructs a FluxData2P object. More... | |
| const DimVector & | velocity (int phaseIdx, int indexInInside) |
| Returns the phase velocity vector at a cell-cell interface. More... | |
| const DimVector & | velocity (int phaseIdx, int indexInInside) const |
| Returns the phase velocity vector at a cell-cell interface. More... | |
| void | setVelocity (int phaseIdx, int indexInInside, const DimVector &velocity) |
| Sets the phase velocity vector at a cell-cell interface. More... | |
| void | addVelocity (int phaseIdx, int indexInInside, const DimVector &velocity) |
| Adds a phase velocity vector to the one previously stored. More... | |
| void | resetVelocity () |
| Resets velocities and potentials. More... | |
| DimVector | velocityTotal (int indexInInside) |
| Returns the total velocity vector at a cell-cell interface. More... | |
| DimVector | velocityTotal (int indexInInside) const |
| Returns the total velocity vector at a cell-cell interface. More... | |
| void | setVelocityMarker (int indexInInside) |
| Sets the velocity marker at a cell-cell interface This marker can be used to check if a velocity has already been stored for this interface. More... | |
| bool | haveVelocity (int indexInInside) |
Check the velocity marker Returns true if a velocity marker was set, otherwise false More... | |
| void | resetVelocityMarker () |
| Resets the velocity marker. More... | |
| bool | isUpwindCell (int phaseIdx, int indexInInside) |
Checks for upwind direction Returns true if the cell is the upwind cell, otherwise false More... | |
| bool | isUpwindCell (int phaseIdx, int indexInInside) const |
Checks for upwind direction Returns true if the cell is the upwind cell, otherwise false More... | |
| Scalar | upwindPotential (int phaseIdx, int indexInInside) |
| Returns the phase upwind potential at a cell-cell interface. More... | |
| Scalar | upwindPotential (int phaseIdx, int indexInInside) const |
| Returns the phase upwind potential at a cell-cell interface. More... | |
| void | setUpwindPotential (int phaseIdx, int indexInInside, Scalar pot) |
| Sets the phase upwind potential at a cell-cell interface. More... | |
| void | addUpwindPotential (int phaseIdx, int indexInInside, Scalar pot) |
| Adds a phase upwind potential to the one previously stored. More... | |
|
inline |
Constructs a FluxData2P object.
|
inline |
Adds a phase upwind potential to the one previously stored.
| phaseIdx | Index of a fluid phase |
| indexInInside | Index of the cell-cell interface in this cell |
| pot | Phase upwind potential which is added |
|
inline |
Adds a phase velocity vector to the one previously stored.
| phaseIdx | Index of a fluid phase |
| indexInInside | Index of the cell-cell interface in this cell |
| velocity | Phase velocity vector which is added |
|
inline |
Check the velocity marker Returns true if a velocity marker was set, otherwise false
| indexInInside | Index of the cell-cell interface in this cell |
|
inline |
Checks for upwind direction Returns true if the cell is the upwind cell, otherwise false
| phaseIdx | Index of a fluid phase |
| indexInInside | Index of the cell-cell interface in this cell |
|
inline |
Checks for upwind direction Returns true if the cell is the upwind cell, otherwise false
| phaseIdx | Index of a fluid phase |
| indexInInside | Index of the cell-cell interface in this cell |
|
inline |
Resets velocities and potentials.
|
inline |
Resets the velocity marker.
|
inline |
Sets the phase upwind potential at a cell-cell interface.
| phaseIdx | Index of a fluid phase |
| indexInInside | Index of the cell-cell interface in this cell |
| pot | Phase upwind potential which is stored |
|
inline |
Sets the phase velocity vector at a cell-cell interface.
| phaseIdx | Index of a fluid phase |
| indexInInside | Index of the cell-cell interface in this cell |
| velocity | Phase velocity vector which is stored |
|
inline |
Sets the velocity marker at a cell-cell interface This marker can be used to check if a velocity has already been stored for this interface.
| indexInInside | Index of the cell-cell interface in this cell |
|
inline |
Returns the phase upwind potential at a cell-cell interface.
| phaseIdx | Index of a fluid phase |
| indexInInside | Index of the cell-cell interface in this cell |
|
inline |
Returns the phase upwind potential at a cell-cell interface.
| phaseIdx | Index of a fluid phase |
| indexInInside | Index of the cell-cell interface in this cell |
|
inline |
Returns the phase velocity vector at a cell-cell interface.
| phaseIdx | Index of a fluid phase |
| indexInInside | Index of the cell-cell interface in this cell |
|
inline |
Returns the phase velocity vector at a cell-cell interface.
| phaseIdx | Index of a fluid phase |
| indexInInside | Index of the cell-cell interface in this cell |
|
inline |
Returns the total velocity vector at a cell-cell interface.
| indexInInside | Index of the cell-cell interface in this cell |
|
inline |
Returns the total velocity vector at a cell-cell interface.
| indexInInside | Index of the cell-cell interface in this cell |