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
1b3b66bf
Commit
1b3b66bf
authored
6 years ago
by
Timo Koch
Browse files
Options
Downloads
Patches
Plain Diff
[pmflow] Add problem constructor getting the spatial params
parent
62528103
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!938
[pmflow] Add problem constructor getting the spatial params
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/porousmediumflow/problem.hh
+19
-4
19 additions, 4 deletions
dumux/porousmediumflow/problem.hh
with
19 additions
and
4 deletions
dumux/porousmediumflow/problem.hh
+
19
−
4
View file @
1b3b66bf
...
...
@@ -52,22 +52,37 @@ public:
using
SpatialParams
=
typename
GET_PROP_TYPE
(
TypeTag
,
SpatialParams
);
/*!
* \brief
The c
onstructor
* \brief
C
onstructor
*
* \param fvGridGeometry The finite volume grid geometry
* \param spatialParams The spatial parameter class
* \param paramGroup The parameter group in which to look for runtime parameters first (default is "")
*/
PorousMediumFlowProblem
(
std
::
shared_ptr
<
const
FVGridGeometry
>
fvGridGeometry
,
const
std
::
string
&
paramGroup
=
""
)
PorousMediumFlowProblem
(
std
::
shared_ptr
<
const
FVGridGeometry
>
fvGridGeometry
,
std
::
shared_ptr
<
SpatialParams
>
spatialParams
,
const
std
::
string
&
paramGroup
=
""
)
:
ParentType
(
fvGridGeometry
,
paramGroup
)
,
gravity_
(
0.0
)
,
spatialParams_
(
s
td
::
make_shared
<
SpatialParams
>
(
this
->
asImp_
())
)
,
spatialParams_
(
s
patialParams
)
{
// TODO: spatial params init?
const
bool
enableGravity
=
getParamFromGroup
<
bool
>
(
paramGroup
,
"Problem.EnableGravity"
);
if
(
enableGravity
)
gravity_
[
dimWorld
-
1
]
=
-
9.81
;
}
/*!
* \brief (Delegating) constructor, constructing the spatial parameters
*
* \param fvGridGeometry The finite volume grid geometry
* \param paramGroup The parameter group in which to look for runtime parameters first (default is "")
*/
PorousMediumFlowProblem
(
std
::
shared_ptr
<
const
FVGridGeometry
>
fvGridGeometry
,
const
std
::
string
&
paramGroup
=
""
)
:
PorousMediumFlowProblem
(
fvGridGeometry
,
std
::
make_shared
<
SpatialParams
>
(
this
->
asImp_
()),
paramGroup
)
{}
/*!
* \name Physical parameters for porous media problems
*/
...
...
This diff is collapsed.
Click to expand it.
Bernd Flemisch
@bernd
mentioned in issue
#486 (closed)
·
6 years ago
mentioned in issue
#486 (closed)
mentioned in issue #486
Toggle commit list
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