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
Commits
9d32e2dc
Commit
9d32e2dc
authored
Aug 31, 2016
by
Kilian Weishaupt
Browse files
[2pLiquidVapor][test] Clean-up
parent
94723b10
Changes
4
Show whitespace changes
Inline
Side-by-side
test/porousmediumflow/2pliquidvapor/implicit/steaminjectionproblem.hh
View file @
9d32e2dc
...
...
@@ -19,7 +19,7 @@
/*!
* \file
*
* \brief Non-isothermal steam injection problem for the
validation of the 2p1cni model against the data provided by Ochs, 2006
.
* \brief Non-isothermal steam injection
test
problem for the
2p1cni model
.
*
*/
#ifndef DUMUX_STEAM_INJECTIONPROBLEM_HH
...
...
@@ -64,26 +64,20 @@ public:
// Enable gravity
SET_BOOL_PROP
(
InjectionProblem
,
ProblemEnableGravity
,
true
);
// Use forward differences instead of central differences
SET_INT_PROP
(
InjectionProblem
,
ImplicitNumericDifferenceMethod
,
+
1
);
// Write newton convergence
SET_BOOL_PROP
(
InjectionProblem
,
NewtonWriteConvergence
,
false
);
//Define whether spurious cold-water flow into the steam is blocked
SET_BOOL_PROP
(
InjectionProblem
,
UseBlockingOfSpuriousFlow
,
true
);
}
//TODO: Names
/*!
* \ingroup ThreePTwoCNIBoxModel
* \ingroup ImplicitTestProblems
* \brief Non-isothermal problem where
..
.
* \brief Non-isothermal
2D
problem where
steam is injected on the lower left side of the domain
.
*
* This problem uses the \ref ThreePTwoCNIModel.
*
* */
template
<
class
TypeTag
>
template
<
class
TypeTag
>
class
InjectionProblem
:
public
ImplicitPorousMediaProblem
<
TypeTag
>
{
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
Scalar
)
Scalar
;
...
...
@@ -104,7 +98,6 @@ class InjectionProblem : public ImplicitPorousMediaProblem<TypeTag>
wPhaseIdx
=
Indices
::
wPhaseIdx
,
gPhaseIdx
=
Indices
::
gPhaseIdx
,
// Phase State
wPhaseOnly
=
Indices
::
wPhaseOnly
,
gPhaseOnly
=
Indices
::
gPhaseOnly
,
...
...
@@ -115,21 +108,17 @@ class InjectionProblem : public ImplicitPorousMediaProblem<TypeTag>
dimWorld
=
GridView
::
dimensionworld
};
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
PrimaryVariables
)
PrimaryVariables
;
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
BoundaryTypes
)
BoundaryTypes
;
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
TimeManager
)
TimeManager
;
typedef
typename
GridView
::
template
Codim
<
0
>
::
Entity
Element
;
typedef
typename
GridView
::
template
Codim
<
dim
>
::
Entity
Vertex
;
typedef
typename
GridView
::
Intersection
Intersection
;
typedef
Dune
::
FieldVector
<
Scalar
,
dim
>
Vector
;
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
FVElementGeometry
)
FVElementGeometry
;
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
FluidSystem
)
FluidSystem
;
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
ElementVolumeVariables
)
ElementVolumeVariables
;
typedef
Dune
::
FieldVector
<
Scalar
,
dimWorld
>
GlobalPosition
;
enum
{
isBox
=
GET_PROP_VALUE
(
TypeTag
,
ImplicitIsBox
)
};
...
...
@@ -155,8 +144,6 @@ public:
FluidSystem
::
init
();
}
/*!
* \name Problem parameters
*/
...
...
@@ -226,7 +213,6 @@ public:
* For this method, the \a values parameter stores the mass flux
* in normal direction of each phase. Negative values mean influx.
*/
void
neumannAtPos
(
PrimaryVariables
&
values
,
const
GlobalPosition
&
globalPos
)
const
{
...
...
test/porousmediumflow/2pliquidvapor/implicit/steaminjectionspatialparams.hh
View file @
9d32e2dc
...
...
@@ -19,11 +19,11 @@
/*!
* \file
*
* \brief Definition of the spatial parameters for
various
steam injection problem
s
* \brief Definition of the spatial parameters for
the
steam injection problem
*/
#ifndef DUMUX_INJECTION_SPATIAL_PARAMS_HH
#define DUMUX_INJECTION_SPATIAL_PARAMS_HH
#ifndef DUMUX_
STEAM
INJECTION_SPATIAL_PARAMS_HH
#define DUMUX_
STEAM
INJECTION_SPATIAL_PARAMS_HH
#include
<dumux/material/spatialparams/implicit.hh>
#include
<dumux/material/fluidmatrixinteractions/2p/regularizedvangenuchten.hh>
...
...
test/porousmediumflow/2pliquidvapor/implicit/test_boxsteaminjection.cc
View file @
9d32e2dc
...
...
@@ -19,7 +19,7 @@
/*!
* \file
*
* \brief
Validation of
the 2p1cni model
* \brief
Test for
the 2p1cni
box
model
*/
#include
"config.h"
#include
"steaminjectionproblem.hh"
...
...
@@ -43,12 +43,8 @@ void usage(const char *progName, const std::string &errorMsg)
errorMessageOut
+=
"
\n\n
The list of mandatory options for this program is:
\n
"
"
\t
-TimeManager.TEnd End of the simulation [s]
\n
"
"
\t
-TimeManager.DtInitial Initial timestep size [s]
\n
"
"
\t
-Grid.File Name of the file containing the grid
\n
"
"
\t
definition in DGF format
\n
"
"
\t
-SpatialParams.LensLowerLeftX x-coordinate of the lower left corner of the lens [m]
\n
"
"
\t
-SpatialParams.LensLowerLeftY y-coordinate of the lower left corner of the lens [m]
\n
"
"
\t
-SpatialParams.LensUpperRightX x-coordinate of the upper right corner of the lens [m]
\n
"
"
\t
-SpatialParams.LensUpperRightY y-coordinate of the upper right corner of the lens [m]
\n
"
"
\t
-Grid.UpperRight coordinates of the upper right corner of the grid [m]
\n
"
"
\t
-Grid.Cells Number of cells in respective coordinate directions
\n
"
"
\t
-Problem.Name String for naming of the output files
\n
"
"
\n
"
;
...
...
test/porousmediumflow/2pliquidvapor/implicit/test_ccsteaminjection.cc
View file @
9d32e2dc
...
...
@@ -19,7 +19,7 @@
/*!
* \file
*
* \brief
Validation of the 2p1cni
model
* \brief
Test for the 2p1cni cell-centered
model
*/
#include
"config.h"
#include
"steaminjectionproblem.hh"
...
...
@@ -43,12 +43,8 @@ void usage(const char *progName, const std::string &errorMsg)
errorMessageOut
+=
"
\n\n
The list of mandatory options for this program is:
\n
"
"
\t
-TimeManager.TEnd End of the simulation [s]
\n
"
"
\t
-TimeManager.DtInitial Initial timestep size [s]
\n
"
"
\t
-Grid.File Name of the file containing the grid
\n
"
"
\t
definition in DGF format
\n
"
"
\t
-SpatialParams.LensLowerLeftX x-coordinate of the lower left corner of the lens [m]
\n
"
"
\t
-SpatialParams.LensLowerLeftY y-coordinate of the lower left corner of the lens [m]
\n
"
"
\t
-SpatialParams.LensUpperRightX x-coordinate of the upper right corner of the lens [m]
\n
"
"
\t
-SpatialParams.LensUpperRightY y-coordinate of the upper right corner of the lens [m]
\n
"
"
\t
-Grid.UpperRight coordinates of the upper right corner of the grid [m]
\n
"
"
\t
-Grid.Cells Number of cells in respective coordinate directions
\n
"
"
\t
-Problem.Name String for naming of the output files
\n
"
"
\n
"
;
...
...
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