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
14c232f7
Commit
14c232f7
authored
9 years ago
by
Dennis Gläser
Committed by
Timo Koch
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
[implicit][spatialparams1p] adjust interface methods
parent
de864e41
No related branches found
No related tags found
1 merge request
!617
[WIP] Next
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dumux/material/spatialparams/implicit1p.hh
+8
-25
8 additions, 25 deletions
dumux/material/spatialparams/implicit1p.hh
with
8 additions
and
25 deletions
dumux/material/spatialparams/implicit1p.hh
+
8
−
25
View file @
14c232f7
...
...
@@ -56,6 +56,7 @@ class ImplicitSpatialParamsOneP
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
Problem
)
Problem
;
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
GridView
)
GridView
;
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
SpatialParams
)
Implementation
;
typedef
typename
GET_PROP_TYPE
(
TypeTag
,
SubControlVolume
)
SubControlVolume
;
enum
{
dimWorld
=
GridView
::
dimensionworld
};
enum
{
dim
=
GridView
::
dimension
};
...
...
@@ -115,11 +116,9 @@ public:
* \param scvIdx The index of the sub-control volume.
* \return the intrinsic permeability
*/
const
DimWorldMatrix
&
intrinsicPermeability
(
const
Element
&
element
,
const
FVElementGeometry
&
fvGeometry
,
int
scvIdx
)
const
const
DimWorldMatrix
&
intrinsicPermeability
(
const
SubControlVolume
&
scv
)
const
{
return
asImp_
().
intrinsicPermeability
AtPos
(
element
.
geometry
().
center
());
return
asImp_
().
intrinsicPermeability
(
scv
.
dofPosition
());
}
/*!
...
...
@@ -143,11 +142,9 @@ public:
* \param scvIdx The index of the sub-control volume.
* \return porosity
*/
Scalar
porosity
(
const
Element
&
element
,
const
FVElementGeometry
&
fvGeometry
,
int
scvIdx
)
const
Scalar
porosity
(
const
SubControlVolume
&
scv
)
const
{
return
asImp_
().
porosityAtPos
(
element
.
geometry
().
center
());
return
asImp_
().
porosityAtPos
(
scv
.
dofPosition
());
}
/*!
...
...
@@ -190,24 +187,10 @@ public:
* \param scvIdx The index sub-control volume face where the
* intrinsic velocity ought to be calculated.
*/
Scalar
forchCoeff
(
const
Element
&
element
,
const
FVElementGeometry
&
fvGeometry
,
const
unsigned
int
scvIdx
)
const
Scalar
forchCoeff
(
const
SubControlVolume
&
scv
)
const
{
try
{
const
Scalar
forchCoeff
=
GET_PARAM_FROM_GROUP
(
TypeTag
,
Scalar
,
SpatialParams
,
ForchCoeff
);
return
forchCoeff
;
}
catch
(
ParameterException
&
e
)
{
std
::
cerr
<<
e
<<
". Aborted in file "
<<
__FILE__
<<
"!
\n
"
;
exit
(
1
)
;
}
catch
(...)
{
std
::
cerr
<<
"Unknown exception thrown!
\n
"
;
exit
(
1
)
;
}
static
Scalar
forchCoeff
=
GET_PARAM_FROM_GROUP
(
TypeTag
,
Scalar
,
SpatialParams
,
ForchCoeff
);
return
forchCoeff
;
}
const
Problem
&
problem_
()
...
...
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