Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux-lecture
Commits
60c9c6dd
Commit
60c9c6dd
authored
May 28, 2020
by
Theresa Schollenberger
Committed by
Timo Koch
Jun 26, 2020
Browse files
[mm][properties] add properties header for remediationscenarios
parent
45ef3e1d
Changes
3
Hide whitespace changes
Inline
Side-by-side
lecture/mm/remediationscenarios/remediationscenariosexercise.cc
View file @
60c9c6dd
...
...
@@ -47,7 +47,7 @@
#include
<dumux/io/vtkoutputmodule.hh>
#include
<dumux/io/grid/gridmanager.hh>
#include
"remediationscenariospro
blem
.hh"
#include
"remediationscenariospro
perties
.hh"
/*!
* \brief Provides an interface for customizing error messages associated with
...
...
lecture/mm/remediationscenarios/remediationscenariosproblem.hh
View file @
60c9c6dd
...
...
@@ -25,94 +25,14 @@
#ifndef DUMUX_REMEDIATIONSCENARIOS_PROBLEM_HH
#define DUMUX_REMEDIATIONSCENARIOS_PROBLEM_HH
#include
<dune/common/float_cmp.hh>
#include
<dune/grid/yaspgrid.hh>
#include
<dumux/discretization/box.hh>
#include
<dumux/material/fluidsystems/h2oairmesitylene.hh>
#include
<dumux/material/solidstates/compositionalsolidstate.hh>
#include
<dumux/material/solidsystems/compositionalsolidphase.hh>
#include
<dumux/material/components/constant.hh>
#include
<dumux/discretization/cctpfa.hh>
#include
<dumux/porousmediumflow/3p3c/model.hh>
#include
<dumux/common/properties.hh>
#include
<dumux/common/parameters.hh>
#include
<dumux/porousmediumflow/problem.hh>
#include
<dune/common/float_cmp.hh>
#include
"remediationscenariosspatialparams.hh"
#define ISOTHERMAL 0
namespace
Dumux
{
//
/*!
* \brief Non-isothermal gas injection problem where a gas (e.g. steam/air)
* is injected into a unsaturated porous medium with a residually
* trapped NAPL contamination.
*/
template
<
class
TypeTag
>
class
KuevetteProblem
;
namespace
Properties
{
// Create new type tags
namespace
TTag
{
struct
KuevetteTypeTag
{
using
InheritsFrom
=
std
::
tuple
<
ThreePThreeCNI
>
;
};
struct
KuevetteBoxTypeTag
{
using
InheritsFrom
=
std
::
tuple
<
BoxModel
,
KuevetteTypeTag
>
;
};
struct
KuevetteCCTpfaTypeTag
{
using
InheritsFrom
=
std
::
tuple
<
CCTpfaModel
,
KuevetteTypeTag
>
;
};
}
// end namespace TTag
// Set the grid type
template
<
class
TypeTag
>
struct
Grid
<
TypeTag
,
TTag
::
KuevetteTypeTag
>
{
using
type
=
Dune
::
YaspGrid
<
2
>
;
};
template
<
class
TypeTag
>
struct
UseMoles
<
TypeTag
,
TTag
::
KuevetteTypeTag
>
{
static
constexpr
bool
value
=
true
;
};
template
<
class
TypeTag
>
struct
EnableGridGeometryCache
<
TypeTag
,
TTag
::
KuevetteTypeTag
>
{
static
constexpr
bool
value
=
true
;
};
template
<
class
TypeTag
>
struct
EnableGridFluxVariablesCache
<
TypeTag
,
TTag
::
KuevetteTypeTag
>
{
static
constexpr
bool
value
=
true
;
};
template
<
class
TypeTag
>
struct
EnableGridVolumeVariablesCache
<
TypeTag
,
TTag
::
KuevetteTypeTag
>
{
static
constexpr
bool
value
=
true
;
};
// Set the problem property
template
<
class
TypeTag
>
struct
Problem
<
TypeTag
,
TTag
::
KuevetteTypeTag
>
{
using
type
=
KuevetteProblem
<
TypeTag
>
;
};
// Set the spatial parameters
template
<
class
TypeTag
>
struct
SpatialParams
<
TypeTag
,
TTag
::
KuevetteTypeTag
>
{
using
type
=
KuevetteSpatialParams
<
TypeTag
>
;
};
// Set the fluid system
template
<
class
TypeTag
>
struct
FluidSystem
<
TypeTag
,
TTag
::
KuevetteTypeTag
>
{
using
Scalar
=
GetPropType
<
TypeTag
,
Properties
::
Scalar
>
;
using
type
=
FluidSystems
::
H2OAirMesitylene
<
Scalar
>
;
};
template
<
class
TypeTag
>
struct
SolidSystem
<
TypeTag
,
TTag
::
KuevetteTypeTag
>
{
using
Scalar
=
GetPropType
<
TypeTag
,
Properties
::
Scalar
>
;
using
ComponentOne
=
Dumux
::
Components
::
Constant
<
1
,
Scalar
>
;
using
ComponentTwo
=
Dumux
::
Components
::
Constant
<
2
,
Scalar
>
;
static
constexpr
int
numInertComponents
=
2
;
using
type
=
SolidSystems
::
CompositionalSolidPhase
<
Scalar
,
ComponentOne
,
ComponentTwo
,
numInertComponents
>
;
};
template
<
class
TypeTag
>
struct
SolidState
<
TypeTag
,
TTag
::
KuevetteTypeTag
>
{
private:
using
Scalar
=
GetPropType
<
TypeTag
,
Properties
::
Scalar
>
;
using
SolidSystem
=
GetPropType
<
TypeTag
,
Properties
::
SolidSystem
>
;
public:
using
type
=
CompositionalSolidState
<
Scalar
,
SolidSystem
>
;
};
}
// end namespace Properties
/*!
* \brief Non-isothermal gas injection problem where a gas (e.g. steam/air)
...
...
lecture/mm/remediationscenarios/remediationscenariosproperties.hh
0 → 100644
View file @
60c9c6dd
// -*- mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
// vi: set et ts=4 sw=4 sts=4:
/*****************************************************************************
* See the file COPYING for full copying permissions. *
* *
* This program is free software: you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation, either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
*****************************************************************************/
/*!
* \file
* \brief Non-isothermal gas injection problem where a gas (e.g. steam/air)
* is injected into a unsaturated porous medium with a residually
* trapped NAPL contamination.
*/
#ifndef DUMUX_REMEDIATIONSCENARIOS_PROPERTIES_HH
#define DUMUX_REMEDIATIONSCENARIOS_PROPERTIES_HH
#include
<dune/grid/yaspgrid.hh>
#include
<dumux/discretization/box.hh>
#include
<dumux/material/fluidsystems/h2oairmesitylene.hh>
#include
<dumux/material/solidstates/compositionalsolidstate.hh>
#include
<dumux/material/solidsystems/compositionalsolidphase.hh>
#include
<dumux/material/components/constant.hh>
#include
<dumux/discretization/cctpfa.hh>
#include
<dumux/porousmediumflow/3p3c/model.hh>
#include
"remediationscenariosspatialparams.hh"
#include
"remediationscenariosproblem.hh"
#define ISOTHERMAL 0
namespace
Dumux
::
Properties
{
// Create new type tags
namespace
TTag
{
struct
KuevetteTypeTag
{
using
InheritsFrom
=
std
::
tuple
<
ThreePThreeCNI
>
;
};
struct
KuevetteBoxTypeTag
{
using
InheritsFrom
=
std
::
tuple
<
BoxModel
,
KuevetteTypeTag
>
;
};
struct
KuevetteCCTpfaTypeTag
{
using
InheritsFrom
=
std
::
tuple
<
CCTpfaModel
,
KuevetteTypeTag
>
;
};
}
// end namespace TTag
// Set the grid type
template
<
class
TypeTag
>
struct
Grid
<
TypeTag
,
TTag
::
KuevetteTypeTag
>
{
using
type
=
Dune
::
YaspGrid
<
2
>
;
};
template
<
class
TypeTag
>
struct
UseMoles
<
TypeTag
,
TTag
::
KuevetteTypeTag
>
{
static
constexpr
bool
value
=
true
;
};
template
<
class
TypeTag
>
struct
EnableGridGeometryCache
<
TypeTag
,
TTag
::
KuevetteTypeTag
>
{
static
constexpr
bool
value
=
true
;
};
template
<
class
TypeTag
>
struct
EnableGridFluxVariablesCache
<
TypeTag
,
TTag
::
KuevetteTypeTag
>
{
static
constexpr
bool
value
=
true
;
};
template
<
class
TypeTag
>
struct
EnableGridVolumeVariablesCache
<
TypeTag
,
TTag
::
KuevetteTypeTag
>
{
static
constexpr
bool
value
=
true
;
};
// Set the problem property
template
<
class
TypeTag
>
struct
Problem
<
TypeTag
,
TTag
::
KuevetteTypeTag
>
{
using
type
=
KuevetteProblem
<
TypeTag
>
;
};
// Set the spatial parameters
template
<
class
TypeTag
>
struct
SpatialParams
<
TypeTag
,
TTag
::
KuevetteTypeTag
>
{
using
type
=
KuevetteSpatialParams
<
TypeTag
>
;
};
// Set the fluid system
template
<
class
TypeTag
>
struct
FluidSystem
<
TypeTag
,
TTag
::
KuevetteTypeTag
>
{
using
Scalar
=
GetPropType
<
TypeTag
,
Properties
::
Scalar
>
;
using
type
=
FluidSystems
::
H2OAirMesitylene
<
Scalar
>
;
};
template
<
class
TypeTag
>
struct
SolidSystem
<
TypeTag
,
TTag
::
KuevetteTypeTag
>
{
using
Scalar
=
GetPropType
<
TypeTag
,
Properties
::
Scalar
>
;
using
ComponentOne
=
Dumux
::
Components
::
Constant
<
1
,
Scalar
>
;
using
ComponentTwo
=
Dumux
::
Components
::
Constant
<
2
,
Scalar
>
;
static
constexpr
int
numInertComponents
=
2
;
using
type
=
SolidSystems
::
CompositionalSolidPhase
<
Scalar
,
ComponentOne
,
ComponentTwo
,
numInertComponents
>
;
};
template
<
class
TypeTag
>
struct
SolidState
<
TypeTag
,
TTag
::
KuevetteTypeTag
>
{
private:
using
Scalar
=
GetPropType
<
TypeTag
,
Properties
::
Scalar
>
;
using
SolidSystem
=
GetPropType
<
TypeTag
,
Properties
::
SolidSystem
>
;
public:
using
type
=
CompositionalSolidState
<
Scalar
,
SolidSystem
>
;
};
}
//end namespace Dumux::Properties
#endif
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment