Opm::GenericTemperatureModel< Grid, GridView, DofMapper, Stencil, FluidSystem, Scalar > Class Template Reference

#include <GenericTemperatureModel.hpp>

Inheritance diagram for Opm::GenericTemperatureModel< Grid, GridView, DofMapper, Stencil, FluidSystem, Scalar >:
Inheritance graph

Public Types

using EnergyMatrix = Dune::BCRSMatrix< Opm::MatrixBlock< Scalar, 1, 1 > >
 
using EnergyVector = Dune::BlockVector< Dune::FieldVector< Scalar, 1 > >
 
using CartesianIndexMapper = Dune::CartesianIndexMapper< Grid >
 

Public Member Functions

bool doTemp ()
 
const Scalar temperature (size_t globalIdx) const
 

Static Public Attributes

static constexpr int dimWorld = Grid::dimensionworld
 

Protected Member Functions

 GenericTemperatureModel (const GridView &gridView, const EclipseState &eclState, const CartesianIndexMapper &cartMapper, const DofMapper &dofMapper)
 
void doInit (std::size_t numGridDof)
 Initialize all internal data structures needed by the temperature module. More...
 
bool linearSolve_ (const EnergyMatrix &M, EnergyVector &x, EnergyVector &b)
 

Protected Attributes

const GridView & gridView_
 
const EclipseState & eclState_
 
const CartesianIndexMappercartMapper_
 
const DofMapper & dofMapper_
 
EnergyVector energyVector_
 
std::unique_ptr< EnergyMatrixenergyMatrix_
 
std::vector< Scalar > temperature_
 
std::vector< Scalar > energy_rates_
 
bool doTemp_ {false}
 
Scalar maxTempChange_ {5.0}
 

Member Typedef Documentation

◆ CartesianIndexMapper

template<class Grid , class GridView , class DofMapper , class Stencil , class FluidSystem , class Scalar >
using Opm::GenericTemperatureModel< Grid, GridView, DofMapper, Stencil, FluidSystem, Scalar >::CartesianIndexMapper = Dune::CartesianIndexMapper<Grid>

◆ EnergyMatrix

template<class Grid , class GridView , class DofMapper , class Stencil , class FluidSystem , class Scalar >
using Opm::GenericTemperatureModel< Grid, GridView, DofMapper, Stencil, FluidSystem, Scalar >::EnergyMatrix = Dune::BCRSMatrix<Opm::MatrixBlock<Scalar, 1, 1> >

◆ EnergyVector

template<class Grid , class GridView , class DofMapper , class Stencil , class FluidSystem , class Scalar >
using Opm::GenericTemperatureModel< Grid, GridView, DofMapper, Stencil, FluidSystem, Scalar >::EnergyVector = Dune::BlockVector<Dune::FieldVector<Scalar, 1> >

Constructor & Destructor Documentation

◆ GenericTemperatureModel()

template<class Grid , class GridView , class DofMapper , class Stencil , class FluidSystem , class Scalar >
Opm::GenericTemperatureModel< Grid, GridView, DofMapper, Stencil, FluidSystem, Scalar >::GenericTemperatureModel ( const GridView &  gridView,
const EclipseState &  eclState,
const CartesianIndexMapper cartMapper,
const DofMapper &  dofMapper 
)
protected

Member Function Documentation

◆ doInit()

template<class Grid , class GridView , class DofMapper , class Stencil , class FluidSystem , class Scalar >
void Opm::GenericTemperatureModel< Grid, GridView, DofMapper, Stencil, FluidSystem, Scalar >::doInit ( std::size_t  numGridDof)
protected

Initialize all internal data structures needed by the temperature module.

◆ doTemp()

template<class Grid , class GridView , class DofMapper , class Stencil , class FluidSystem , class Scalar >
bool Opm::GenericTemperatureModel< Grid, GridView, DofMapper, Stencil, FluidSystem, Scalar >::doTemp ( )
inline

◆ linearSolve_()

template<class Grid , class GridView , class DofMapper , class Stencil , class FluidSystem , class Scalar >
bool Opm::GenericTemperatureModel< Grid, GridView, DofMapper, Stencil, FluidSystem, Scalar >::linearSolve_ ( const EnergyMatrix M,
EnergyVector x,
EnergyVector b 
)
protected

◆ temperature()

template<class Grid , class GridView , class DofMapper , class Stencil , class FluidSystem , class Scalar >
const Scalar Opm::GenericTemperatureModel< Grid, GridView, DofMapper, Stencil, FluidSystem, Scalar >::temperature ( size_t  globalIdx) const
inline

Member Data Documentation

◆ cartMapper_

template<class Grid , class GridView , class DofMapper , class Stencil , class FluidSystem , class Scalar >
const CartesianIndexMapper& Opm::GenericTemperatureModel< Grid, GridView, DofMapper, Stencil, FluidSystem, Scalar >::cartMapper_
protected

◆ dimWorld

template<class Grid , class GridView , class DofMapper , class Stencil , class FluidSystem , class Scalar >
constexpr int Opm::GenericTemperatureModel< Grid, GridView, DofMapper, Stencil, FluidSystem, Scalar >::dimWorld = Grid::dimensionworld
staticconstexpr

◆ dofMapper_

template<class Grid , class GridView , class DofMapper , class Stencil , class FluidSystem , class Scalar >
const DofMapper& Opm::GenericTemperatureModel< Grid, GridView, DofMapper, Stencil, FluidSystem, Scalar >::dofMapper_
protected

◆ doTemp_

template<class Grid , class GridView , class DofMapper , class Stencil , class FluidSystem , class Scalar >
bool Opm::GenericTemperatureModel< Grid, GridView, DofMapper, Stencil, FluidSystem, Scalar >::doTemp_ {false}
protected

◆ eclState_

template<class Grid , class GridView , class DofMapper , class Stencil , class FluidSystem , class Scalar >
const EclipseState& Opm::GenericTemperatureModel< Grid, GridView, DofMapper, Stencil, FluidSystem, Scalar >::eclState_
protected

◆ energy_rates_

template<class Grid , class GridView , class DofMapper , class Stencil , class FluidSystem , class Scalar >
std::vector<Scalar> Opm::GenericTemperatureModel< Grid, GridView, DofMapper, Stencil, FluidSystem, Scalar >::energy_rates_
protected

◆ energyMatrix_

template<class Grid , class GridView , class DofMapper , class Stencil , class FluidSystem , class Scalar >
std::unique_ptr<EnergyMatrix> Opm::GenericTemperatureModel< Grid, GridView, DofMapper, Stencil, FluidSystem, Scalar >::energyMatrix_
protected

◆ energyVector_

template<class Grid , class GridView , class DofMapper , class Stencil , class FluidSystem , class Scalar >
EnergyVector Opm::GenericTemperatureModel< Grid, GridView, DofMapper, Stencil, FluidSystem, Scalar >::energyVector_
protected

◆ gridView_

template<class Grid , class GridView , class DofMapper , class Stencil , class FluidSystem , class Scalar >
const GridView& Opm::GenericTemperatureModel< Grid, GridView, DofMapper, Stencil, FluidSystem, Scalar >::gridView_
protected

◆ maxTempChange_

template<class Grid , class GridView , class DofMapper , class Stencil , class FluidSystem , class Scalar >
Scalar Opm::GenericTemperatureModel< Grid, GridView, DofMapper, Stencil, FluidSystem, Scalar >::maxTempChange_ {5.0}
protected

◆ temperature_

template<class Grid , class GridView , class DofMapper , class Stencil , class FluidSystem , class Scalar >
std::vector<Scalar> Opm::GenericTemperatureModel< Grid, GridView, DofMapper, Stencil, FluidSystem, Scalar >::temperature_
protected

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