Skip to content
Snippets Groups Projects
Commit 0fc008e5 authored by Benjamin Faigle's avatar Benjamin Faigle
Browse files

added empty functions for BC to have simpler derived problems

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@5849 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent 51cc8f89
No related branches found
No related tags found
No related merge requests found
...@@ -39,8 +39,11 @@ namespace Dumux ...@@ -39,8 +39,11 @@ namespace Dumux
* \ingroup IMPECproblems * \ingroup IMPECproblems
* \brief Base class for all compositional 2-phase problems which use an impet algorithm * \brief Base class for all compositional 2-phase problems which use an impet algorithm
* *
* Differs from .../2p/impes/impesproblem2p.hh only in the includes: * Differs from .../2p/impes/impesproblem2p.hh in the includes
* Usage of the compositional properties and variableclass. * (usage of the compositional properties and variableclass) and
* empty functions for the boundary formulation. Because of the latter,
* only the functions of the currently used formulation has to be specified
* in the specific problem.
*/ */
template<class TypeTag, class Implementation> template<class TypeTag, class Implementation>
class IMPETProblem2P2C : public IMPETProblem<TypeTag, Implementation> class IMPETProblem2P2C : public IMPETProblem<TypeTag, Implementation>
...@@ -51,6 +54,8 @@ class IMPETProblem2P2C : public IMPETProblem<TypeTag, Implementation> ...@@ -51,6 +54,8 @@ class IMPETProblem2P2C : public IMPETProblem<TypeTag, Implementation>
typedef typename GridView::Grid Grid; typedef typename GridView::Grid Grid;
typedef typename GET_PROP_TYPE(TypeTag, PTAG(Scalar)) Scalar; typedef typename GET_PROP_TYPE(TypeTag, PTAG(Scalar)) Scalar;
typedef typename GridView::Traits::template Codim<0>::Entity Element;
// material properties // material properties
typedef typename GET_PROP_TYPE(TypeTag, PTAG(FluidSystem)) FluidSystem; typedef typename GET_PROP_TYPE(TypeTag, PTAG(FluidSystem)) FluidSystem;
typedef typename GET_PROP_TYPE(TypeTag, PTAG(SpatialParameters)) SpatialParameters; typedef typename GET_PROP_TYPE(TypeTag, PTAG(SpatialParameters)) SpatialParameters;
...@@ -122,6 +127,30 @@ public: ...@@ -122,6 +127,30 @@ public:
const GlobalPosition &gravity() const const GlobalPosition &gravity() const
{ return gravity_; } { return gravity_; }
//! Saturation initial condition (dimensionless)
/*! The problem is initialized with the following saturation. Both
* phases are assumed to contain an equilibrium concentration of the
* correspondingly other component.
*/
Scalar initSat(const GlobalPosition& globalPos, const Element& element) const
{
DUNE_THROW(Dune::NotImplemented, "please specify initial saturation in the problem!");
return NAN;
}
//! Concentration initial condition (dimensionless)
/*! The problem is initialized with the following concentration.
*/
Scalar initConcentration(const GlobalPosition& globalPos, const Element& element) const
{
DUNE_THROW(Dune::NotImplemented, "please specify initial Concentration in the problem!");
return NAN;
}
// \}
/*!
* \name Access functions
*/
// \{
/*! /*!
* \copydoc Dumux::IMPESProblem2P::spatialParameters() * \copydoc Dumux::IMPESProblem2P::spatialParameters()
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment