Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
dumux-repositories
dumux
Commits
cccc9e06
Commit
cccc9e06
authored
4 years ago
by
Yue Wang
Committed by
Kilian Weishaupt
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[test][2p2c][injection] new material law
parent
71fb1d0d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1607
Feature/new materiallaw 2p
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/porousmediumflow/2p2c/implicit/injection/params.input
+10
-0
10 additions, 0 deletions
test/porousmediumflow/2p2c/implicit/injection/params.input
test/porousmediumflow/2p2c/implicit/injection/spatialparams.hh
+9
-23
9 additions, 23 deletions
...porousmediumflow/2p2c/implicit/injection/spatialparams.hh
with
19 additions
and
23 deletions
test/porousmediumflow/2p2c/implicit/injection/params.input
+
10
−
0
View file @
cccc9e06
...
@@ -24,3 +24,13 @@ TemperatureHigh = 314.15 # [Pa] upper temperature limit for tabularization
...
@@ -24,3 +24,13 @@ TemperatureHigh = 314.15 # [Pa] upper temperature limit for tabularization
PriVarNamesState1 = p_liq x^N2_liq
PriVarNamesState1 = p_liq x^N2_liq
PriVarNamesState2 = p_liq x^H2O_gas
PriVarNamesState2 = p_liq x^H2O_gas
PriVarNamesState3 = p_liq S_gas
PriVarNamesState3 = p_liq S_gas
[SpatialParams]
FineMaterial.Swr = 0.2
FineMaterial.Snr = 0.0
FineMaterial.BrooksCoreyPcEntry = 1e4
FineMaterial.BrooksCoreyLambda = 2.0
CoarseMaterial.Swr = 0.2
CoarseMaterial.Snr = 0.0
CoarseMaterial.BrooksCoreyPcEntry = 1e4
CoarseMaterial.BrooksCoreyLambda = 2.0
This diff is collapsed.
Click to expand it.
test/porousmediumflow/2p2c/implicit/injection/spatialparams.hh
+
9
−
23
View file @
cccc9e06
...
@@ -28,8 +28,7 @@
...
@@ -28,8 +28,7 @@
#include
<dumux/porousmediumflow/properties.hh>
#include
<dumux/porousmediumflow/properties.hh>
#include
<dumux/material/spatialparams/fv.hh>
#include
<dumux/material/spatialparams/fv.hh>
#include
<dumux/material/fluidmatrixinteractions/2p/regularizedbrookscorey.hh>
#include
<dumux/material/fluidmatrixinteractions/2p/brookscorey.hh>
#include
<dumux/material/fluidmatrixinteractions/2p/efftoabslaw.hh>
namespace
Dumux
{
namespace
Dumux
{
...
@@ -51,19 +50,18 @@ class InjectionSpatialParams
...
@@ -51,19 +50,18 @@ class InjectionSpatialParams
static
constexpr
int
dimWorld
=
GridView
::
dimensionworld
;
static
constexpr
int
dimWorld
=
GridView
::
dimensionworld
;
using
EffectiveLaw
=
Regularized
BrooksCorey
<
Scalar
>
;
using
PcKrSwCurve
=
FluidMatrix
::
BrooksCorey
Default
<
Scalar
>
;
using
GlobalPosition
=
typename
Element
::
Geometry
::
GlobalCoordinate
;
using
GlobalPosition
=
typename
Element
::
Geometry
::
GlobalCoordinate
;
public:
public:
//! Export the type used for the permeability
//! Export the type used for the permeability
using
PermeabilityType
=
Scalar
;
using
PermeabilityType
=
Scalar
;
//! Export the material law type used
using
MaterialLaw
=
EffToAbsLaw
<
EffectiveLaw
>
;
using
MaterialLawParams
=
typename
MaterialLaw
::
Params
;
InjectionSpatialParams
(
std
::
shared_ptr
<
const
GridGeometry
>
gridGeometry
)
InjectionSpatialParams
(
std
::
shared_ptr
<
const
GridGeometry
>
gridGeometry
)
:
ParentType
(
gridGeometry
)
:
ParentType
(
gridGeometry
)
,
finePcKrSwCurve_
(
"SpatialParams.FineMaterial"
)
,
coarsePcKrSwCurve_
(
"SpatialParams.CoarseMaterial"
)
{
{
layerBottom_
=
22.5
;
layerBottom_
=
22.5
;
...
@@ -74,18 +72,6 @@ public:
...
@@ -74,18 +72,6 @@ public:
// porosities
// porosities
finePorosity_
=
0.3
;
finePorosity_
=
0.3
;
coarsePorosity_
=
0.3
;
coarsePorosity_
=
0.3
;
// residual saturations
fineMaterialParams_
.
setSwr
(
0.2
);
fineMaterialParams_
.
setSnr
(
0.0
);
coarseMaterialParams_
.
setSwr
(
0.2
);
coarseMaterialParams_
.
setSnr
(
0.0
);
// parameters for the Brooks-Corey law
fineMaterialParams_
.
setPe
(
1e4
);
coarseMaterialParams_
.
setPe
(
1e4
);
fineMaterialParams_
.
setLambda
(
2.0
);
coarseMaterialParams_
.
setLambda
(
2.0
);
}
}
/*!
/*!
...
@@ -119,11 +105,11 @@ public:
...
@@ -119,11 +105,11 @@ public:
*
*
* \param globalPos The global position
* \param globalPos The global position
*/
*/
const
Mat
e
ri
alLawParams
&
materialLawParams
AtPos
(
const
GlobalPosition
&
globalPos
)
const
const
auto
fluid
Matri
xInteraction
AtPos
(
const
GlobalPosition
&
globalPos
)
const
{
{
if
(
isFineMaterial_
(
globalPos
))
if
(
isFineMaterial_
(
globalPos
))
return
fineMaterialParams_
;
return
makeFluidMatrixInteraction
(
finePcKrSwCurve_
)
;
return
coarseMaterialParams_
;
return
makeFluidMatrixInteraction
(
coarsePcKrSwCurve_
)
;
}
}
/*!
/*!
...
@@ -147,8 +133,8 @@ private:
...
@@ -147,8 +133,8 @@ private:
Scalar
finePorosity_
;
Scalar
finePorosity_
;
Scalar
coarsePorosity_
;
Scalar
coarsePorosity_
;
MaterialLawParams
fineMaterialParams
_
;
const
PcKrSwCurve
finePcKrSwCurve
_
;
MaterialLawParams
coarseMaterialParams
_
;
const
PcKrSwCurve
coarsePcKrSwCurve
_
;
};
};
}
// end namespace Dumux
}
// end namespace Dumux
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment