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
736402b0
Commit
736402b0
authored
6 years ago
by
Simon Emmert
Browse files
Options
Downloads
Patches
Plain Diff
[2p1c] cleanup fluidsystem and problem
parent
b7120f26
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1140
Feature/2p1c wettability
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
dumux/material/fluidsystems/2p1c.hh
+17
-18
17 additions, 18 deletions
dumux/material/fluidsystems/2p1c.hh
test/porousmediumflow/2p1c/implicit/steaminjectionproblem.hh
+5
-9
5 additions, 9 deletions
test/porousmediumflow/2p1c/implicit/steaminjectionproblem.hh
with
22 additions
and
27 deletions
dumux/material/fluidsystems/2p1c.hh
+
17
−
18
View file @
736402b0
...
...
@@ -259,7 +259,7 @@ public:
if
(
Component
::
isTabulated
)
{
Component
::
init
(
tempMin
,
tempMax
,
nTemp
,
pressMin
,
pressMax
,
nPress
);
pressMin
,
pressMax
,
nPress
);
}
}
...
...
@@ -287,8 +287,8 @@ public:
{
return
Component
::
gasDensity
(
temperature
,
pressure
);
}
else
DUNE_THROW
(
Dune
::
NotImplemented
,
"wrong index"
);
else
DUNE_THROW
(
Dune
::
NotImplemented
,
"wrong index"
);
}
using
Base
::
molarDensity
;
...
...
@@ -310,7 +310,6 @@ public:
return
Component
::
liquidMolarDensity
(
temperature
,
pressure
);
return
Component
::
gasMolarDensity
(
temperature
,
pressure
);
}
/*!
...
...
@@ -330,15 +329,16 @@ public:
Scalar
pressure
=
fluidState
.
pressure
(
phaseIdx
);
// liquid phase
if
(
phaseIdx
==
liquidPhaseIdx
)
{
if
(
phaseIdx
==
liquidPhaseIdx
)
{
return
Component
::
liquidViscosity
(
temperature
,
pressure
);
}
else
if
(
phaseIdx
==
gasPhaseIdx
)
// gas phase
{
return
Component
::
gasViscosity
(
temperature
,
pressure
)
;
return
Component
::
gasViscosity
(
temperature
,
pressure
);
}
else
DUNE_THROW
(
Dune
::
NotImplemented
,
"wrong index"
);
else
DUNE_THROW
(
Dune
::
NotImplemented
,
"wrong index"
);
}
/*!
...
...
@@ -352,9 +352,9 @@ public:
const
unsigned
int
phaseIdx
)
{
assert
(
0
<=
phaseIdx
&&
phaseIdx
<
numPhases
);
Scalar
pressure
=
fluidState
.
pressure
(
gasPhaseIdx
)
;
Scalar
pressure
=
fluidState
.
pressure
(
gasPhaseIdx
);
return
Component
::
vaporTemperature
(
pressure
)
;
return
Component
::
vaporTemperature
(
pressure
);
}
/*!
...
...
@@ -444,9 +444,7 @@ public:
int
compIIdx
,
int
compJIdx
)
{
DUNE_THROW
(
Dune
::
NotImplemented
,
"Binary Diffusion coefficients"
);
}
{
DUNE_THROW
(
Dune
::
NotImplemented
,
"Binary Diffusion coefficients"
);
}
/*!
* \brief Calculate specific enthalpy [J/kg].
...
...
@@ -462,7 +460,8 @@ public:
assert
(
0
<=
phaseIdx
&&
phaseIdx
<
numPhases
);
// liquid phase
if
(
phaseIdx
==
liquidPhaseIdx
)
{
if
(
phaseIdx
==
liquidPhaseIdx
)
{
return
Component
::
liquidEnthalpy
(
fluidState
.
temperature
(
phaseIdx
),
fluidState
.
pressure
(
phaseIdx
));
}
...
...
@@ -471,8 +470,8 @@ public:
return
Component
::
gasEnthalpy
(
fluidState
.
temperature
(
phaseIdx
),
fluidState
.
pressure
(
phaseIdx
));
}
else
DUNE_THROW
(
Dune
::
NotImplemented
,
"wrong index"
);
else
DUNE_THROW
(
Dune
::
NotImplemented
,
"wrong index"
);
}
/*!
...
...
@@ -499,8 +498,8 @@ public:
return
Component
::
gasThermalConductivity
(
fluidState
.
temperature
(
phaseIdx
),
fluidState
.
pressure
(
phaseIdx
));
//0.0248;
}
else
DUNE_THROW
(
Dune
::
NotImplemented
,
"wrong index"
);
else
DUNE_THROW
(
Dune
::
NotImplemented
,
"wrong index"
);
}
/*!
...
...
This diff is collapsed.
Click to expand it.
test/porousmediumflow/2p1c/implicit/steaminjectionproblem.hh
+
5
−
9
View file @
736402b0
...
...
@@ -118,9 +118,7 @@ public:
*/
InjectionProblem
(
std
::
shared_ptr
<
const
FVGridGeometry
>
fvGridGeometry
)
:
ParentType
(
fvGridGeometry
)
{
FluidSystem
::
init
();
}
{
FluidSystem
::
init
();
}
/*!
* \name Problem parameters
...
...
@@ -130,12 +128,10 @@ public:
//! \copydoc Dumux::FVProblem::source()
NumEqVector
source
(
const
Element
&
element
,
const
FVElementGeometry
&
fvGeometry
,
const
ElementVolumeVariables
&
elemVolVars
,
const
SubControlVolume
&
scv
)
const
{
return
NumEqVector
(
0.0
);
}
const
FVElementGeometry
&
fvGeometry
,
const
ElementVolumeVariables
&
elemVolVars
,
const
SubControlVolume
&
scv
)
const
{
return
NumEqVector
(
0.0
);
}
/*!
* \name Boundary conditions
...
...
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