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
cff26152
Commit
cff26152
authored
7 years ago
by
Katharina Heck
Browse files
Options
Downloads
Patches
Plain Diff
[fix][tests] add forgotten setstate method
parent
b535063b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!617
[WIP] Next
,
!508
Feature/3p3c on next
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
test/porousmediumflow/3p3c/implicit/columnxylolproblem.hh
+3
-13
3 additions, 13 deletions
test/porousmediumflow/3p3c/implicit/columnxylolproblem.hh
test/porousmediumflow/3p3c/implicit/kuevetteproblem.hh
+7
-14
7 additions, 14 deletions
test/porousmediumflow/3p3c/implicit/kuevetteproblem.hh
with
10 additions
and
27 deletions
test/porousmediumflow/3p3c/implicit/columnxylolproblem.hh
+
3
−
13
View file @
cff26152
...
...
@@ -113,6 +113,7 @@ class ColumnProblem : public ImplicitPorousMediaProblem<TypeTag>
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
PrimaryVariables
)
PrimaryVariables
;
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
NumEqVector
)
NeumannFluxes
;
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
BoundaryTypes
)
BoundaryTypes
;
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
TimeManager
)
TimeManager
;
...
...
@@ -223,7 +224,7 @@ public:
* For this method, the \a values parameter stores the mass flux
* in normal direction of each phase. Negative values mean influx.
*/
PrimaryVariabl
es
neumann
(
const
Element
&
element
,
NeumannFlux
es
neumann
(
const
Element
&
element
,
const
FVElementGeometry
&
fvGeometry
,
const
ElementVolumeVariables
&
elemVolVars
,
const
SubControlVolumeFace
&
scvf
)
const
...
...
@@ -244,18 +245,6 @@ public:
// \}
/*!
* \name Volume terms
*/
// \{
/*!
* \brief Evaluate the initial phase state at a given position
*
* \param globalPos The global position
*/
int
initialPhasePresenceAtPos
(
const
GlobalPosition
&
globalPos
)
{
return
threePhases
;
}
/*!
* \brief Evaluate the initial value for a control volume.
...
...
@@ -308,6 +297,7 @@ private:
PrimaryVariables
initial_
(
const
GlobalPosition
&
globalPos
)
const
{
PrimaryVariables
values
;
values
.
setState
(
threePhases
);
Scalar
y
=
globalPos
[
1
];
values
[
temperatureIdx
]
=
296.15
;
...
...
This diff is collapsed.
Click to expand it.
test/porousmediumflow/3p3c/implicit/kuevetteproblem.hh
+
7
−
14
View file @
cff26152
...
...
@@ -127,6 +127,7 @@ class KuevetteProblem : public ImplicitPorousMediaProblem<TypeTag>
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
PrimaryVariables
)
PrimaryVariables
;
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
NumEqVector
)
NeumannFluxes
;
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
BoundaryTypes
)
BoundaryTypes
;
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
TimeManager
)
TimeManager
;
...
...
@@ -240,7 +241,7 @@ public:
* For this method, the \a values parameter stores the mass flux
* in normal direction of each phase. Negative values mean influx.
*/
PrimaryVariabl
es
neumann
(
const
Element
&
element
,
NeumannFlux
es
neumann
(
const
Element
&
element
,
const
FVElementGeometry
&
fvGeometry
,
const
ElementVolumeVariables
&
elemVolVars
,
const
SubControlVolumeFace
&
scvf
)
const
...
...
@@ -280,19 +281,6 @@ public:
return
initial_
(
globalPos
);
}
/*!
* \brief Evaluate the initial phase state at a given position
*
* \param globalPos The global position
*/
int
initialPhasePresenceAtPos
(
const
GlobalPosition
&
globalPos
)
{
if
(
isInContaminationZone
(
globalPos
))
return
threePhases
;
else
return
wgPhaseOnly
;
}
/*!
* \brief Append all quantities of interest which can be derived
* from the solution of the current time step to the VTK
...
...
@@ -355,6 +343,11 @@ private:
PrimaryVariables
initial_
(
const
GlobalPosition
&
globalPos
)
const
{
PrimaryVariables
values
;
if
(
isInContaminationZone
(
globalPos
))
values
.
setState
(
threePhases
);
else
values
.
setState
(
wgPhaseOnly
);
values
[
pressureIdx
]
=
1e5
;
values
[
switch1Idx
]
=
0.12
;
values
[
switch2Idx
]
=
1.e-6
;
...
...
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