Opm::ExplicitArraysSatDerivativesFluidState Class Reference

This is a fluid state which translates global arrays and translates them to a subset of the fluid state API. More...

#include <ExplicitArraysSatDerivativesFluidState.hpp>

Public Types

enum  { numPhases = BlackoilPhases::MaxNumPhases }
 
enum  { numComponents = 3 }
 
typedef
Opm::LocalAd::Evaluation
< double,
SaturationDerivativesTag,
numPhases
Evaluation
 
typedef Evaluation Scalar
 

Public Member Functions

 ExplicitArraysSatDerivativesFluidState (const PhaseUsage &phaseUsage)
 
void setIndex (unsigned arrayIdx)
 Sets the currently used array index. More...
 
void setSaturationArray (const double *saturations)
 Set the array containing the phase saturations. More...
 
const Evaluationsaturation (int phaseIdx) const
 Returns the saturation of a phase for the current cell index. More...
 

Detailed Description

This is a fluid state which translates global arrays and translates them to a subset of the fluid state API.

This class is similar to Opm::ExplicitArraysFluidState except for the fact that it uses opm-material's local automatic differentiation framework to allow implicit treatment of saturation derivatives.

Member Typedef Documentation

Member Enumeration Documentation

anonymous enum
Enumerator
numPhases 
anonymous enum
Enumerator
numComponents 

Constructor & Destructor Documentation

Opm::ExplicitArraysSatDerivativesFluidState::ExplicitArraysSatDerivativesFluidState ( const PhaseUsage phaseUsage)
inline

References numPhases.

Member Function Documentation

const Evaluation& Opm::ExplicitArraysSatDerivativesFluidState::saturation ( int  phaseIdx) const
inline

Returns the saturation of a phase for the current cell index.

void Opm::ExplicitArraysSatDerivativesFluidState::setIndex ( unsigned  arrayIdx)
inline

Sets the currently used array index.

After calling this, the values returned by the other methods are specific for this index.

References Opm::PhaseUsage::num_phases, numPhases, Opm::PhaseUsage::phase_pos, and Opm::PhaseUsage::phase_used.

void Opm::ExplicitArraysSatDerivativesFluidState::setSaturationArray ( const double *  saturations)
inline

Set the array containing the phase saturations.

This array is supposed to be of size numPhases*size and is not allowed to be deleted while the ExplicitArraysFluidState object is alive. This class assumes that the saturations of all phase saturations for a point are consequtive, i.e., in the array the saturations cycle fastest.


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