26#ifndef DUMUX_FUELCELL_SPATIAL_PARAMS_HH
27#define DUMUX_FUELCELL_SPATIAL_PARAMS_HH
42template<
class Gr
idGeometry,
class Scalar>
45 FuelCellSpatialParams<GridGeometry, Scalar>>
47 using GridView =
typename GridGeometry::GridView;
51 static constexpr int dimWorld = GridView::dimensionworld;
53 using Element =
typename GridGeometry::GridView::template Codim<0>::Entity;
54 using GlobalPosition =
typename Element::Geometry::GlobalCoordinate;
56 using DimWorldMatrix = Dune::FieldMatrix<Scalar, dimWorld, dimWorld>;
76 materialParams_.setSwr(0.12);
77 materialParams_.setSnr(0.0);
80 materialParams_.setVgAlpha(6.66e-5);
81 materialParams_.setVgn(3.652);
99 if (globalPos[1] < eps_)
112 {
return materialParams_; }
121 template<
class Flu
idSystem>
123 {
return FluidSystem::gasPhaseIdx; }
128 static constexpr Scalar eps_ = 1e-6;
Linear capillary pressure and relative permeability <-> saturation relations.
Implementation of a regularized version of the Brooks-Corey capillary pressure / relative permeabilit...
Implementation of the regularized version of the van Genuchten's capillary pressure / relative permea...
The base class for spatial parameters of multi-phase problems using a fully implicit discretization m...
make the local view function available whenever we use the grid geometry
Definition: adapt.hh:29
This material law takes a material law defined for effective saturations and converts it to a materia...
Definition: 2p/efftoabslaw.hh:60
AbsParamsT Params
Definition: 2p/efftoabslaw.hh:64
Implementation of the regularized van Genuchten's capillary pressure / relative permeability <-> satu...
Definition: regularizedvangenuchten.hh:71
The base class for spatial parameters of multi-phase problems using a fully implicit discretization m...
Definition: fv.hh:57
const GridGeometry & gridGeometry() const
The finite volume grid geometry.
Definition: fv1p.hh:334
Definition of the spatial parameters for the FuelCell problem which uses the isothermal 2p2c box mode...
Definition: porousmediumflow/2pnc/implicit/fuelcell/spatialparams.hh:46
DimWorldMatrix permeabilityAtPos(const GlobalPosition &globalPos) const
Returns the hydraulic conductivity .
Definition: porousmediumflow/2pnc/implicit/fuelcell/spatialparams.hh:89
FuelCellSpatialParams(std::shared_ptr< const GridGeometry > gridGeometry)
Definition: porousmediumflow/2pnc/implicit/fuelcell/spatialparams.hh:65
const MaterialLawParams & materialLawParamsAtPos(const GlobalPosition &globalPos) const
Returns the parameter object for the Brooks-Corey material law which depends on the position.
Definition: porousmediumflow/2pnc/implicit/fuelcell/spatialparams.hh:111
DimWorldMatrix PermeabilityType
Definition: porousmediumflow/2pnc/implicit/fuelcell/spatialparams.hh:63
Scalar porosityAtPos(const GlobalPosition &globalPos) const
Defines the porosity of the spatial parameters.
Definition: porousmediumflow/2pnc/implicit/fuelcell/spatialparams.hh:97
int wettingPhaseAtPos(const GlobalPosition &globalPos) const
Function for defining which phase is to be considered as the wetting phase.
Definition: porousmediumflow/2pnc/implicit/fuelcell/spatialparams.hh:122
typename MaterialLaw::Params MaterialLawParams
Definition: porousmediumflow/2pnc/implicit/fuelcell/spatialparams.hh:62
Defines a type tag and some properties for models using the box scheme.
This material law takes a material law defined for effective saturations and converts it to a materia...