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-course
Commits
ef9cf2c5
Commit
ef9cf2c5
authored
Dec 20, 2018
by
Felix Weinhardt
Browse files
[exercise-biomineralization]
removed TypeTag ending
parent
e71df3ab
Changes
6
Hide whitespace changes
Inline
Side-by-side
exercises/exercise-biomineralization/biominproblem.hh
View file @
ef9cf2c5
...
...
@@ -53,29 +53,29 @@ namespace Properties
//! Create new type tag for the problem
// Create new type tags
namespace
TTag
{
struct
ExerciseFourBioMin
TypeTag
{
using
InheritsFrom
=
std
::
tuple
<
BioMinSpatialparams
,
TwoPNCMin
>
;
};
struct
ExerciseFourBioMinCCTpfa
TypeTag
{
using
InheritsFrom
=
std
::
tuple
<
ExerciseFourBioMin
TypeTag
,
CCTpfaModel
>
;
};
struct
ExerciseFourBioMin
{
using
InheritsFrom
=
std
::
tuple
<
BioMinSpatialparams
,
TwoPNCMin
>
;
};
struct
ExerciseFourBioMinCCTpfa
{
using
InheritsFrom
=
std
::
tuple
<
ExerciseFourBioMin
,
CCTpfaModel
>
;
};
}
// end namespace TTag
//! Set the problem property
template
<
class
TypeTag
>
struct
Problem
<
TypeTag
,
TTag
::
ExerciseFourBioMin
TypeTag
>
{
using
type
=
ExerciseFourBioMinProblem
<
TypeTag
>
;
};
struct
Problem
<
TypeTag
,
TTag
::
ExerciseFourBioMin
>
{
using
type
=
ExerciseFourBioMinProblem
<
TypeTag
>
;
};
//! Set grid and the grid creator to be used
#if HAVE_DUNE_ALUGRID
template
<
class
TypeTag
>
struct
Grid
<
TypeTag
,
TTag
::
ExerciseFourBioMin
TypeTag
>
{
using
type
=
Dune
::
ALUGrid
<
/*dim=*/
2
,
2
,
Dune
::
cube
,
Dune
::
nonconforming
>
;
};
struct
Grid
<
TypeTag
,
TTag
::
ExerciseFourBioMin
>
{
using
type
=
Dune
::
ALUGrid
<
/*dim=*/
2
,
2
,
Dune
::
cube
,
Dune
::
nonconforming
>
;
};
#elif HAVE_UG
template
<
class
TypeTag
>
struct
Grid
<
TypeTag
,
TTag
::
ExerciseFourBioMin
TypeTag
>
{
using
type
=
Dune
::
UGGrid
<
2
>
;
};
struct
Grid
<
TypeTag
,
TTag
::
ExerciseFourBioMin
>
{
using
type
=
Dune
::
UGGrid
<
2
>
;
};
#else
template
<
class
TypeTag
>
struct
Grid
<
TypeTag
,
TTag
::
ExerciseFourBioMin
TypeTag
>
{
using
type
=
Dune
::
YaspGrid
<
2
>
;
};
struct
Grid
<
TypeTag
,
TTag
::
ExerciseFourBioMin
>
{
using
type
=
Dune
::
YaspGrid
<
2
>
;
};
#endif // HAVE_DUNE_ALUGRID
//! Set the fluid system type
template
<
class
TypeTag
>
struct
FluidSystem
<
TypeTag
,
TTag
::
ExerciseFourBioMin
TypeTag
>
struct
FluidSystem
<
TypeTag
,
TTag
::
ExerciseFourBioMin
>
{
private:
using
Scalar
=
GetPropType
<
TypeTag
,
Properties
::
Scalar
>
;
...
...
@@ -86,7 +86,7 @@ public:
};
template
<
class
TypeTag
>
struct
SolidSystem
<
TypeTag
,
TTag
::
ExerciseFourBioMin
TypeTag
>
struct
SolidSystem
<
TypeTag
,
TTag
::
ExerciseFourBioMin
>
{
using
Scalar
=
GetPropType
<
TypeTag
,
Properties
::
Scalar
>
;
using
type
=
SolidSystems
::
BiominSolidPhase
<
Scalar
>
;
...
...
@@ -94,11 +94,11 @@ struct SolidSystem<TypeTag, TTag::ExerciseFourBioMinTypeTag>
template
<
class
TypeTag
>
struct
EnableFVGridGeometryCache
<
TypeTag
,
TTag
::
ExerciseFourBioMin
TypeTag
>
{
static
constexpr
bool
value
=
false
;
};
struct
EnableFVGridGeometryCache
<
TypeTag
,
TTag
::
ExerciseFourBioMin
>
{
static
constexpr
bool
value
=
false
;
};
template
<
class
TypeTag
>
struct
EnableGridVolumeVariablesCache
<
TypeTag
,
TTag
::
ExerciseFourBioMin
TypeTag
>
{
static
constexpr
bool
value
=
false
;
};
struct
EnableGridVolumeVariablesCache
<
TypeTag
,
TTag
::
ExerciseFourBioMin
>
{
static
constexpr
bool
value
=
false
;
};
template
<
class
TypeTag
>
struct
EnableGridFluxVariablesCache
<
TypeTag
,
TTag
::
ExerciseFourBioMin
TypeTag
>
{
static
constexpr
bool
value
=
false
;
};
struct
EnableGridFluxVariablesCache
<
TypeTag
,
TTag
::
ExerciseFourBioMin
>
{
static
constexpr
bool
value
=
false
;
};
}
// end namespace properties
/*!
...
...
exercises/exercise-biomineralization/exercisebiomin.cc
View file @
ef9cf2c5
...
...
@@ -59,7 +59,7 @@ int main(int argc, char** argv) try
using
namespace
Dumux
;
// define the type tag for this problem
using
TypeTag
=
Properties
::
TTag
::
ExerciseFourBioMinCCTpfa
TypeTag
;
using
TypeTag
=
Properties
::
TTag
::
ExerciseFourBioMinCCTpfa
;
// initialize MPI, finalize is done automatically on exit
const
auto
&
mpiHelper
=
Dune
::
MPIHelper
::
instance
(
argc
,
argv
);
...
...
exercises/exercise-biomineralization/fluidsystems/biomin.hh
View file @
ef9cf2c5
...
...
@@ -333,7 +333,6 @@ public:
if
(
phaseIdx
==
liquidPhaseIdx
)
{
// assume brine with viscosity effect of Ca for the liquid phase.
//F Scalar salinity = fluidState.massFraction(liquidPhaseIdx, CaIdx);
Scalar
result
=
Brine
::
liquidViscosity
(
temperature
,
pressure
);
Valgrind
::
CheckDefined
(
result
);
...
...
exercises/solution/exercise-biomineralization/biominproblem.hh
View file @
ef9cf2c5
...
...
@@ -54,29 +54,29 @@ namespace Properties
//! Create new type tag for the problem
// Create new type tags
namespace
TTag
{
struct
ExerciseFourBioMin
TypeTag
{
using
InheritsFrom
=
std
::
tuple
<
BioMinSpatialparams
,
TwoPNCMin
>
;
};
struct
ExerciseFourBioMinCCTpfa
TypeTag
{
using
InheritsFrom
=
std
::
tuple
<
ExerciseFourBioMin
TypeTag
,
CCTpfaModel
>
;
};
struct
ExerciseFourBioMin
{
using
InheritsFrom
=
std
::
tuple
<
BioMinSpatialparams
,
TwoPNCMin
>
;
};
struct
ExerciseFourBioMinCCTpfa
{
using
InheritsFrom
=
std
::
tuple
<
ExerciseFourBioMin
,
CCTpfaModel
>
;
};
}
// end namespace TTag
//! Set the problem property
template
<
class
TypeTag
>
struct
Problem
<
TypeTag
,
TTag
::
ExerciseFourBioMin
TypeTag
>
{
using
type
=
ExerciseFourBioMinProblem
<
TypeTag
>
;
};
struct
Problem
<
TypeTag
,
TTag
::
ExerciseFourBioMin
>
{
using
type
=
ExerciseFourBioMinProblem
<
TypeTag
>
;
};
//! Set grid and the grid creator to be used
#if HAVE_DUNE_ALUGRID
template
<
class
TypeTag
>
struct
Grid
<
TypeTag
,
TTag
::
ExerciseFourBioMin
TypeTag
>
{
using
type
=
Dune
::
ALUGrid
<
/*dim=*/
2
,
2
,
Dune
::
cube
,
Dune
::
nonconforming
>
;
};
struct
Grid
<
TypeTag
,
TTag
::
ExerciseFourBioMin
>
{
using
type
=
Dune
::
ALUGrid
<
/*dim=*/
2
,
2
,
Dune
::
cube
,
Dune
::
nonconforming
>
;
};
#elif HAVE_UG
template
<
class
TypeTag
>
struct
Grid
<
TypeTag
,
TTag
::
ExerciseFourBioMin
TypeTag
>
{
using
type
=
Dune
::
UGGrid
<
2
>
;
};
struct
Grid
<
TypeTag
,
TTag
::
ExerciseFourBioMin
>
{
using
type
=
Dune
::
UGGrid
<
2
>
;
};
#else
template
<
class
TypeTag
>
struct
Grid
<
TypeTag
,
TTag
::
ExerciseFourBioMin
TypeTag
>
{
using
type
=
Dune
::
YaspGrid
<
2
>
;
};
struct
Grid
<
TypeTag
,
TTag
::
ExerciseFourBioMin
>
{
using
type
=
Dune
::
YaspGrid
<
2
>
;
};
#endif // HAVE_DUNE_ALUGRID
//! Set the fluid system type
template
<
class
TypeTag
>
struct
FluidSystem
<
TypeTag
,
TTag
::
ExerciseFourBioMin
TypeTag
>
struct
FluidSystem
<
TypeTag
,
TTag
::
ExerciseFourBioMin
>
{
private:
using
Scalar
=
GetPropType
<
TypeTag
,
Properties
::
Scalar
>
;
...
...
@@ -87,7 +87,7 @@ public:
};
template
<
class
TypeTag
>
struct
SolidSystem
<
TypeTag
,
TTag
::
ExerciseFourBioMin
TypeTag
>
struct
SolidSystem
<
TypeTag
,
TTag
::
ExerciseFourBioMin
>
{
using
Scalar
=
GetPropType
<
TypeTag
,
Properties
::
Scalar
>
;
using
type
=
SolidSystems
::
BiominSolidPhase
<
Scalar
>
;
...
...
@@ -95,11 +95,11 @@ struct SolidSystem<TypeTag, TTag::ExerciseFourBioMinTypeTag>
template
<
class
TypeTag
>
struct
EnableFVGridGeometryCache
<
TypeTag
,
TTag
::
ExerciseFourBioMin
TypeTag
>
{
static
constexpr
bool
value
=
false
;
};
struct
EnableFVGridGeometryCache
<
TypeTag
,
TTag
::
ExerciseFourBioMin
>
{
static
constexpr
bool
value
=
false
;
};
template
<
class
TypeTag
>
struct
EnableGridVolumeVariablesCache
<
TypeTag
,
TTag
::
ExerciseFourBioMin
TypeTag
>
{
static
constexpr
bool
value
=
false
;
};
struct
EnableGridVolumeVariablesCache
<
TypeTag
,
TTag
::
ExerciseFourBioMin
>
{
static
constexpr
bool
value
=
false
;
};
template
<
class
TypeTag
>
struct
EnableGridFluxVariablesCache
<
TypeTag
,
TTag
::
ExerciseFourBioMin
TypeTag
>
{
static
constexpr
bool
value
=
false
;
};
struct
EnableGridFluxVariablesCache
<
TypeTag
,
TTag
::
ExerciseFourBioMin
>
{
static
constexpr
bool
value
=
false
;
};
}
// end namespace properties
/*!
...
...
exercises/solution/exercise-biomineralization/exercisebiomin.cc
View file @
ef9cf2c5
...
...
@@ -59,7 +59,7 @@ int main(int argc, char** argv) try
using
namespace
Dumux
;
// define the type tag for this problem
using
TypeTag
=
Properties
::
TTag
::
ExerciseFourBioMinCCTpfa
TypeTag
;
using
TypeTag
=
Properties
::
TTag
::
ExerciseFourBioMinCCTpfa
;
// initialize MPI, finalize is done automatically on exit
const
auto
&
mpiHelper
=
Dune
::
MPIHelper
::
instance
(
argc
,
argv
);
...
...
exercises/solution/exercise-biomineralization/fluidsystems/biomin.hh
View file @
ef9cf2c5
...
...
@@ -333,7 +333,6 @@ public:
if
(
phaseIdx
==
liquidPhaseIdx
)
{
// assume brine with viscosity effect of Ca for the liquid phase.
//F Scalar salinity = fluidState.massFraction(liquidPhaseIdx, CaIdx);
Scalar
result
=
Brine
::
liquidViscosity
(
temperature
,
pressure
);
Valgrind
::
CheckDefined
(
result
);
...
...
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