24#ifndef DUMUX_POROELASTIC_SPATIAL_PARAMS_HH
25#define DUMUX_POROELASTIC_SPATIAL_PARAMS_HH
38template<
class Scalar,
class Gr
idGeometry>
39class PoroElasticSpatialParams :
public FVSpatialParamsPoroElastic< Scalar,
41 PoroElasticSpatialParams<Scalar, GridGeometry> >
43 using ThisType = PoroElasticSpatialParams<Scalar, GridGeometry>;
44 using ParentType = FVSpatialParamsPoroElastic<Scalar, GridGeometry, ThisType>;
46 using SubControlVolume =
typename GridGeometry::SubControlVolume;
47 using GridView =
typename GridGeometry::GridView;
48 using Element =
typename GridView::template Codim<0>::Entity;
49 using GlobalPosition =
typename Element::Geometry::GlobalCoordinate;
57 , initPorosity_(
getParam<Scalar>(
"SpatialParams.InitialPorosity"))
64 lameParams_.
setLambda( (E * nu) / ((1 + nu)*(1 - 2 * nu)) );
65 lameParams_.
setMu( E / (2 * (1 + nu)) );
70 {
return lameParams_; }
73 template<
class ElementSolution>
75 const SubControlVolume& scv,
76 const ElementSolution& elemSol)
const
A relationship for the porosity of a porous medium under mechanical deformation.
The base class for spatial parameters of poro-elastic geomechanical problems.
T getParam(Args &&... args)
A free function to get a parameter from the parameter tree singleton.
Definition: parameters.hh:428
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
Structure encapsulating the lame parameters.
Definition: lameparams.hh:35
void setMu(Scalar mu)
set the second lame parameter
Definition: lameparams.hh:57
void setLambda(Scalar lambda)
set the first lame parameter
Definition: lameparams.hh:53
static Scalar evaluatePorosity(const FVGridGeom &gridGeometry, const typename FVGridGeom::GridView::template Codim< 0 >::Entity &element, const typename FVGridGeom::GridView::template Codim< 0 >::Entity::Geometry::GlobalCoordinate &globalPos, const ElemSol &elemSol, Scalar refPoro, Scalar minPoro=0.0, Scalar maxPoro=1.0)
Calculates the porosity at a position inside an element.
Definition: porositydeformation.hh:65
The base class for spatial parameters of poro-elastic geomechanical problems.
Definition: fvporoelastic.hh:79
const GridGeometry & gridGeometry() const
The finite volume grid geometry.
Definition: fvporoelastic.hh:322
PoroElasticSpatialParams(std::shared_ptr< const GridGeometry > gridGeometry)
Definition: el1p/spatialparams_poroelastic.hh:55
Scalar porosity(const Element &element, const SubControlVolume &scv, const ElementSolution &elemSol) const
Returns the porosity of the porous medium.
Definition: el1p/spatialparams_poroelastic.hh:74
const LameParams & lameParamsAtPos(const GlobalPosition &globalPos) const
Defines the Lame parameters.
Definition: el1p/spatialparams_poroelastic.hh:69
Scalar biotCoefficientAtPos(const GlobalPosition &globalPos) const
Returns the Biot coefficient of the porous medium.
Definition: el1p/spatialparams_poroelastic.hh:83