opm-common
Loading...
Searching...
No Matches
Opm::FluidStateExplicitViscosityModule< ValueType, numPhases, Implementation > Class Template Reference

Module for the modular fluid state which stores the viscosities explicitly. More...

#include <FluidStateViscosityModules.hpp>

Public Member Functions

const ValueType & viscosity (unsigned phaseIdx) const
 The viscosity of a fluid phase [-].
void setViscosity (unsigned phaseIdx, ValueType value)
 Set the dynamic viscosity of a phase [Pa s].
template<class FluidState>
void assign (const FluidState &fs)
 Retrieve all parameters from an arbitrary fluid state.
void checkDefined () const
 Make sure that all attributes are defined.

Protected Attributes

std::array< ValueType, numPhases > viscosity_ {}

Detailed Description

template<class ValueType, unsigned numPhases, class Implementation>
class Opm::FluidStateExplicitViscosityModule< ValueType, numPhases, Implementation >

Module for the modular fluid state which stores the viscosities explicitly.

Member Function Documentation

◆ checkDefined()

template<class ValueType, unsigned numPhases, class Implementation>
void Opm::FluidStateExplicitViscosityModule< ValueType, numPhases, Implementation >::checkDefined ( ) const
inline

Make sure that all attributes are defined.

This method does not do anything if the program is not run under valgrind. If it is, then valgrind will print an error message if some attributes of the object have not been properly defined.


The documentation for this class was generated from the following file: