Storage container for discretized data of the constitutive relations for one element. More...
#include <dumux/porousmediumflow/2p2c/sequential/celldata.hh>
Storage container for discretized data of the constitutive relations for one element.
This class stores all cell-centered (FV-Scheme) values for sequential compositional two-phase flow models that are used by both pressure and transport model. All fluid data are already stored in the fluidstate, so the CellData contains the fluidstate object for the current element. At the moment, the compositional model does not use fluxVariables that are stored on the interfaces.
TypeTag | The Type Tag |
Public Member Functions | |
CellData2P2C () | |
Constructor for a local CellData object. More... | |
FluxData & | fluxData () |
Acess to flux data, representing information living on the intersections. More... | |
const FluxData & | fluxData () const |
Constant acess to flux data, representing information living on the intersections. More... | |
Acess to primary variables | |
Scalar | pressure (int phaseIdx) |
Acess to the phase pressure. More... | |
const Scalar | pressure (int phaseIdx) const |
Acess to the phase pressure. More... | |
void | setPressure (int phaseIdx, Scalar value) |
Modify the phase pressure. More... | |
const Scalar | totalConcentration (int compIdx) const |
Returns the total mass concentration of a component \mathrm{[kg/m^3]}. More... | |
const Scalar | massConcentration (int compIdx) const |
Returns the total mass concentration of a component \mathrm{[kg/m^3]}. More... | |
void | setTotalConcentration (int compIdx, Scalar value) |
Sets the total mass concentration of a component \mathrm{[kg/m^3]}. More... | |
void | setMassConcentration (int compIdx, Scalar value) |
Sets the total mass concentration of a component \mathrm{[kg/m^3]}. More... | |
void | calculateMassConcentration (Scalar porosity) |
Calculate the total mass concentration of a component \mathrm{[kg/m^3]} for a given porosity (within the initialization procedure). More... | |
Acess to secondary variables | |
const Scalar & | mobility (int phaseIdx) const |
Return phase mobilities. More... | |
void | setMobility (int phaseIdx, Scalar value) |
Set phase mobilities. More... | |
Scalar & | volumeError () |
Return the volume error [-]. This quantity stands for the deviation of real fluid volume to available pore space. \epsilon = v_{real} - \phi. More... | |
const Scalar & | volumeError () const |
Return the volume error [-]. More... | |
Scalar & | errorCorrection () |
Return the error Correction This quantifies the damped error that actually entered the pressure equation: Damped Error from last time-step times last time step size. More... | |
const Scalar & | errorCorrection () const |
Return the error Correction. More... | |
Scalar & | dv_dp () |
Return the derivative of specific volume w.r.t. pressure For details, see description of FVPressureCompositional<TypeTag>::volumeDerivatives() More... | |
const Scalar & | dv_dp () const |
Return the derivative of specific volume w.r.t. pressure. More... | |
Scalar & | dv (int compIdx) |
Return the derivative of spec. volume w.r.t. change of mass For details, see description of FVPressureCompositional<TypeTag>::volumeDerivatives() More... | |
const Scalar & | dv (int compIdx) const |
Return the derivative of spec. volume w.r.t. change of mass For details, see description of FVPressureCompositional<TypeTag>::volumeDerivatives() More... | |
Scalar & | perimeter () |
Return cell perimeter (as weithing function) The cell perimeter is used in combination with the face Area as a weighting of the volume integral in the pressure equation. More... | |
const Scalar & | perimeter () const |
Return cell perimeter (as weithing function) More... | |
void | setSaturation (int phaseIdx, Scalar value) |
DOC ME! More... | |
const Scalar | saturation (int phaseIdx) const |
DOC ME! More... | |
void | setViscosity (int phaseIdx, Scalar value) |
DOC ME! More... | |
const Scalar | viscosity (int phaseIdx) const |
DOC ME! More... | |
const Scalar | capillaryPressure () const |
Returns the capillary pressure \mathrm{[Pa]}. More... | |
const Scalar | density (int phaseIdx) const |
DOC ME! More... | |
const Scalar | massFraction (int phaseIdx, int compIdx) const |
DOC ME! More... | |
const Scalar | moleFraction (int phaseIdx, int compIdx) const |
DOC ME! More... | |
const Scalar | temperature (int phaseIdx) const |
DOC ME! More... | |
const Scalar | phaseMassFraction (int phaseIdx) const |
DOC ME! More... | |
const FluidState & | fluidState () const |
Returns a reference to the cells fluid state. More... | |
FluidState & | manipulateFluidState () |
Allows manipulation of the cells fluid state Fluidstate is stored as a pointer, initialized as a null-pointer. Ensure that if no FluidState is present, a new one is created. More... | |
int & | globalIdx () |
stores this cell datas index, only for debugging purposes!! More... | |
bool | hasVolumeDerivatives () const |
Indicates if volume derivatives are computed and available. More... | |
void | confirmVolumeDerivatives () |
Specifies that volume derivatives are computed and available. More... | |
void | volumeDerivativesAvailable (bool value) |
Specifies if volume derivatives are computed and available. More... | |
void | reset () |
Resets the cell data after a timestep was completed: No volume derivatives yet available. More... | |
bool & | wasRefined () |
Indicates if current cell was refined at this time step. More... | |
const bool & | wasRefined () const |
Indicates if current cell was refined at this time step. More... | |
const bool & | isUpwindCell (int indexInInside, int phaseIdx) const |
Indicates if current cell is the upwind cell for a given interface. More... | |
void | setUpwindCell (int indexInInside, int phaseIdx, bool value) |
Specifies if current cell is the upwind cell for a given interface. More... | |
Protected Attributes | |
Scalar | massConcentration_ [numComponents] |
Scalar | mobility_ [numPhases] |
Scalar | volumeError_ |
Scalar | errorCorrection_ |
Scalar | dv_dp_ |
Scalar | dv_ [numComponents] |
bool | volumeDerivativesAvailable_ |
bool | wasRefined_ |
int | globalIdx_ |
Scalar | perimeter_ |
std::shared_ptr< FluidState > | fluidState_ |
FluxData | fluxData_ |
|
inline |
Constructor for a local CellData object.
|
inline |
Calculate the total mass concentration of a component \mathrm{[kg/m^3]} for a given porosity (within the initialization procedure).
porosity | Porosity |
|
inline |
Returns the capillary pressure \mathrm{[Pa]}.
|
inline |
Specifies that volume derivatives are computed and available.
|
inline |
DOC ME!
|
inline |
Return the derivative of spec. volume w.r.t. change of mass For details, see description of FVPressureCompositional<TypeTag>::volumeDerivatives()
compIdx | index of the Component |
|
inline |
Return the derivative of spec. volume w.r.t. change of mass For details, see description of FVPressureCompositional<TypeTag>::volumeDerivatives()
compIdx | index of the Component |
|
inline |
Return the derivative of specific volume w.r.t. pressure For details, see description of FVPressureCompositional<TypeTag>::volumeDerivatives()
|
inline |
Return the derivative of specific volume w.r.t. pressure.
|
inline |
Return the error Correction This quantifies the damped error that actually entered the pressure equation: Damped Error from last time-step times last time step size.
|
inline |
Return the error Correction.
|
inline |
Returns a reference to the cells fluid state.
|
inline |
Acess to flux data, representing information living on the intersections.
|
inline |
Constant acess to flux data, representing information living on the intersections.
|
inline |
stores this cell datas index, only for debugging purposes!!
|
inline |
Indicates if volume derivatives are computed and available.
|
inline |
Indicates if current cell is the upwind cell for a given interface.
indexInInside | Local face index seen from current cell |
phaseIdx | The index of the phase |
|
inline |
Allows manipulation of the cells fluid state Fluidstate is stored as a pointer, initialized as a null-pointer. Ensure that if no FluidState is present, a new one is created.
|
inline |
Returns the total mass concentration of a component \mathrm{[kg/m^3]}.
This is equivalent to the sum of the component concentrations for all phases multiplied with the phase density.
compIdx | the index of the component |
|
inline |
DOC ME!
|
inline |
Return phase mobilities.
phaseIdx | index of the Phase |
|
inline |
DOC ME!
|
inline |
Return cell perimeter (as weithing function) The cell perimeter is used in combination with the face Area as a weighting of the volume integral in the pressure equation.
|
inline |
Return cell perimeter (as weithing function)
|
inline |
DOC ME!
|
inline |
Acess to the phase pressure.
phaseIdx | index of the Phase |
|
inline |
Acess to the phase pressure.
phaseIdx | index of the Phase |
|
inline |
Resets the cell data after a timestep was completed: No volume derivatives yet available.
|
inline |
DOC ME!
|
inline |
Sets the total mass concentration of a component \mathrm{[kg/m^3]}.
compIdx | index of the Component |
value | Value to be stored |
|
inline |
Set phase mobilities.
phaseIdx | index of the Phase |
value | Value to be stored |
|
inline |
Modify the phase pressure.
phaseIdx | index of the Phase |
value | Value to be stored |
|
inline |
DOC ME!
|
inline |
Sets the total mass concentration of a component \mathrm{[kg/m^3]}.
compIdx | index of the Component |
value | Value to be stored |
|
inline |
Specifies if current cell is the upwind cell for a given interface.
indexInInside | Local face index seen from current cell |
phaseIdx | The index of the phase |
value | Value: true (->outflow) or false (-> inflow) |
|
inline |
DOC ME!
|
inline |
DOC ME!
|
inline |
Returns the total mass concentration of a component \mathrm{[kg/m^3]}.
This is equivalent to the sum of the component concentrations for all phases multiplied with the phase density.
compIdx | the index of the component |
|
inline |
DOC ME!
|
inline |
Specifies if volume derivatives are computed and available.
|
inline |
Return the volume error [-]. This quantity stands for the deviation of real fluid volume to available pore space. \epsilon = v_{real} - \phi.
|
inline |
Return the volume error [-].
|
inline |
Indicates if current cell was refined at this time step.
|
inline |
Indicates if current cell was refined at this time step.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |