Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
dumux-course
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-course
Commits
265842dc
Commit
265842dc
authored
1 year ago
by
Dennis Gläser
Browse files
Options
Downloads
Patches
Plain Diff
[ex][fractures] streamline parameter names
parent
efe57aea
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!163
[ex][fractures] streamline parameter names
Pipeline
#30368
passed
1 year ago
Stage: trigger pipelines
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
exercises/exercise-fractures/fracturespatialparams.hh
+2
-2
2 additions, 2 deletions
exercises/exercise-fractures/fracturespatialparams.hh
exercises/solution/exercise-fractures/fracturespatialparams.hh
+4
-4
4 additions, 4 deletions
...ises/solution/exercise-fractures/fracturespatialparams.hh
with
6 additions
and
6 deletions
exercises/exercise-fractures/fracturespatialparams.hh
+
2
−
2
View file @
265842dc
...
...
@@ -70,7 +70,7 @@ public:
:
ParentType
(
gridGeometry
)
,
gridDataPtr_
(
gridData
)
,
pcKrSwCurve_
(
"Fracture.SpatialParams"
)
,
barrierP
cKrSwCurve_
(
"Fracture.SpatialParams.Barrier"
)
,
p
cKrSwCurve
Barrier
_
(
"Fracture.SpatialParams.Barrier"
)
{
porosity_
=
getParamFromGroup
<
Scalar
>
(
paramGroup
,
"SpatialParams.Porosity"
);
porosityBarrier_
=
getParamFromGroup
<
Scalar
>
(
paramGroup
,
"SpatialParams.PorosityBarrier"
);
...
...
@@ -159,7 +159,7 @@ private:
PermeabilityType
permeability_
;
PermeabilityType
permeabilityBarrier_
;
const
PcKrSwCurve
pcKrSwCurve_
;
const
PcKrSwCurve
barrierP
cKrSwCurve_
;
const
PcKrSwCurve
p
cKrSwCurve
Barrier
_
;
};
}
// end namespace Dumux
...
...
This diff is collapsed.
Click to expand it.
exercises/solution/exercise-fractures/fracturespatialparams.hh
+
4
−
4
View file @
265842dc
...
...
@@ -74,7 +74,7 @@ public:
,
isExercisePartB_
(
getParamFromGroup
<
bool
>
(
paramGroup
,
"Problem.IsExercisePartB"
))
,
isExercisePartC_
(
getParamFromGroup
<
bool
>
(
paramGroup
,
"Problem.IsExercisePartC"
))
,
pcKrSwCurve_
(
"Fracture.SpatialParams"
)
,
barrier
PcKrSwCurve_
(
"Fracture.SpatialParams.Barrier"
)
,
PcKrSwCurve
Barrier
_
(
"Fracture.SpatialParams.Barrier"
)
{
porosity_
=
getParamFromGroup
<
Scalar
>
(
paramGroup
,
"SpatialParams.Porosity"
);
porosityBarrier_
=
getParamFromGroup
<
Scalar
>
(
paramGroup
,
"SpatialParams.PorosityBarrier"
);
...
...
@@ -149,13 +149,13 @@ public:
// in exercise part b always return the barrier parameters
else
if
(
isExercisePartB_
)
return
makeFluidMatrixInteraction
(
barrier
PcKrSwCurve_
);
return
makeFluidMatrixInteraction
(
PcKrSwCurve
Barrier
_
);
// in exercise part 3 return parameters depending on domain marker
else
{
if
(
getElementDomainMarker
(
element
)
==
barriersDomainMarker
)
return
makeFluidMatrixInteraction
(
barrier
PcKrSwCurve_
);
return
makeFluidMatrixInteraction
(
PcKrSwCurve
Barrier
_
);
else
return
makeFluidMatrixInteraction
(
pcKrSwCurve_
);
}
...
...
@@ -201,7 +201,7 @@ private:
bool
isExercisePartC_
;
const
PcKrSwCurve
pcKrSwCurve_
;
const
PcKrSwCurve
barrier
PcKrSwCurve_
;
const
PcKrSwCurve
PcKrSwCurve
Barrier
_
;
Scalar
porosity_
;
Scalar
porosityBarrier_
;
...
...
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