28#ifndef EWOMS_FLASH_PRIMARY_VARIABLES_HH
29#define EWOMS_FLASH_PRIMARY_VARIABLES_HH
36#include <opm/material/constraintsolvers/NcpFlash.hpp>
37#include <opm/material/fluidstates/CompositionalFluidState.hpp>
38#include <opm/material/common/Valgrind.hpp>
40#include <dune/common/fvector.hh>
55template <
class TypeTag>
67 enum { cTot0Idx = Indices::cTot0Idx };
77 { Opm::Valgrind::SetDefined(*
this); }
84 Opm::Valgrind::CheckDefined(value);
85 Opm::Valgrind::SetDefined(*
this);
98 template <
class Flu
idState>
100 const MaterialLawParams&,
112 template <
class Flu
idState>
120 EnergyModule::setPriVarTemperatures(*
this, fluidState);
125 this->operator[](cTot0Idx +
compIdx) +=
136 void print(std::ostream&
os = std::cout)
const
139 os <<
"(c_tot," << FluidSystem::componentName(
compIdx) <<
" = "
140 << this->operator[](cTot0Idx +
compIdx);
142 os <<
")" << std::flush;
Provides the auxiliary methods required for consideration of the energy equation.
Definition energymodule.hh:50
Represents the primary variables used by the compositional flow model based on flash calculations.
Definition flashprimaryvariables.hh:57
void print(std::ostream &os=std::cout) const
Prints the names of the primary variables and their values.
Definition flashprimaryvariables.hh:136
void assignNaive(const FluidState &fluidState)
Directly retrieve the primary variables from an arbitrary fluid state.
Definition flashprimaryvariables.hh:113
FlashPrimaryVariables(Scalar value)
Constructor with assignment from scalar.
Definition flashprimaryvariables.hh:82
FlashPrimaryVariables(const FlashPrimaryVariables &value)=default
void assignMassConservative(const FluidState &fluidState, const MaterialLawParams &, bool=false)
Set the primary variables from an arbitrary fluid state in a mass conservative way.
Definition flashprimaryvariables.hh:99
Represents the primary variables used by the a model.
Definition fvbaseprimaryvariables.hh:52
Contains the classes required to consider energy as a conservation quantity in a multi-phase module.
Represents the primary variables used by the a model.
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilboundaryratevector.hh:37
constexpr auto getPropValue()
get the value data member of a property
Definition propertysystem.hh:242
typename Properties::Detail::GetPropImpl< TypeTag, Property >::type::type GetPropType
get the type alias defined in the property (equivalent to old macro GET_PROP_TYPE(....
Definition propertysystem.hh:235
Defines the primary variable and equation indices for the compositional multi-phase model based on fl...