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
6a8957d4
Commit
6a8957d4
authored
7 years ago
by
Timo Koch
Browse files
Options
Downloads
Patches
Plain Diff
[spatialparams] Get Forchheimer coeff with getParam and default
parent
983d0f9e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!617
[WIP] Next
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dumux/common/parameters.hh
+0
-3
0 additions, 3 deletions
dumux/common/parameters.hh
dumux/material/spatialparams/implicit1p.hh
+5
-6
5 additions, 6 deletions
dumux/material/spatialparams/implicit1p.hh
with
5 additions
and
9 deletions
dumux/common/parameters.hh
+
0
−
3
View file @
6a8957d4
...
@@ -361,9 +361,6 @@ private:
...
@@ -361,9 +361,6 @@ private:
params
[
"TimeLoop.MaxTimeStepSize"
]
=
"1e300"
;
params
[
"TimeLoop.MaxTimeStepSize"
]
=
"1e300"
;
params
[
"TimeLoop.MaxTimeStepDivisions"
]
=
"10"
;
params
[
"TimeLoop.MaxTimeStepDivisions"
]
=
"10"
;
// parameters in the spatial params group
params
[
"SpatialParams.ForchCoeff"
]
=
"0.55"
;
// parameters in the vtk group
// parameters in the vtk group
params
[
"Vtk.AddVelocity"
]
=
"false"
;
params
[
"Vtk.AddVelocity"
]
=
"false"
;
params
[
"Vtk.AddProcessRank"
]
=
"true"
;
params
[
"Vtk.AddProcessRank"
]
=
"true"
;
...
...
This diff is collapsed.
Click to expand it.
dumux/material/spatialparams/implicit1p.hh
+
5
−
6
View file @
6a8957d4
...
@@ -49,6 +49,7 @@ class ImplicitSpatialParamsOneP
...
@@ -49,6 +49,7 @@ class ImplicitSpatialParamsOneP
using
GridView
=
typename
GET_PROP_TYPE
(
TypeTag
,
GridView
);
using
GridView
=
typename
GET_PROP_TYPE
(
TypeTag
,
GridView
);
using
Implementation
=
typename
GET_PROP_TYPE
(
TypeTag
,
SpatialParams
);
using
Implementation
=
typename
GET_PROP_TYPE
(
TypeTag
,
SpatialParams
);
using
SubControlVolume
=
typename
GET_PROP_TYPE
(
TypeTag
,
SubControlVolume
);
using
SubControlVolume
=
typename
GET_PROP_TYPE
(
TypeTag
,
SubControlVolume
);
using
SubControlVolumeFace
=
typename
GET_PROP_TYPE
(
TypeTag
,
SubControlVolumeFace
);
using
ElementSolutionVector
=
typename
GET_PROP_TYPE
(
TypeTag
,
ElementSolutionVector
);
using
ElementSolutionVector
=
typename
GET_PROP_TYPE
(
TypeTag
,
ElementSolutionVector
);
using
Element
=
typename
GridView
::
template
Codim
<
0
>
::
Entity
;
using
Element
=
typename
GridView
::
template
Codim
<
0
>
::
Entity
;
...
@@ -287,14 +288,12 @@ public:
...
@@ -287,14 +288,12 @@ public:
* porous medium. Taking it as a constant is only a first approximation
* porous medium. Taking it as a constant is only a first approximation
* (Nield, Bejan, Convection in porous media, 2006, p. 10 \cite nield2006 )
* (Nield, Bejan, Convection in porous media, 2006, p. 10 \cite nield2006 )
*
*
* \param element The current finite element
* \param scv The sub-control volume face where the
* \param fvGeometry The current finite volume geometry of the element
* intrinsic velocity ought to be calculated.
* \param scvIdx The index sub-control volume face where the
* intrinsic velocity ought to be calculated.
*/
*/
Scalar
forchCoeff
(
const
SubControlVolume
&
scv
)
const
Scalar
forchCoeff
(
const
SubControlVolume
Face
&
scv
f
)
const
{
{
static
Scalar
forchCoeff
=
getParamFromGroup
<
Scalar
>
(
GET_PROP_VALUE
(
TypeTag
,
ModelParameterGroup
),
"SpatialParams.ForchCoeff"
);
static
Scalar
forchCoeff
=
getParamFromGroup
<
Scalar
>
(
GET_PROP_VALUE
(
TypeTag
,
ModelParameterGroup
),
"SpatialParams.ForchCoeff"
,
0.55
);
return
forchCoeff
;
return
forchCoeff
;
}
}
...
...
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