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
a18bd49a
Commit
a18bd49a
authored
6 years ago
by
Dennis Gläser
Browse files
Options
Downloads
Patches
Plain Diff
[poroelastic][problem] respect dumux conventions, use M_PI and use default neumann bc
parent
c5b10140
No related branches found
No related tags found
1 merge request
!991
respect dumux conventions
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
test/geomechanics/poroelastic/problem.hh
+16
-13
16 additions, 13 deletions
test/geomechanics/poroelastic/problem.hh
with
16 additions
and
13 deletions
test/geomechanics/poroelastic/problem.hh
+
16
−
13
View file @
a18bd49a
...
...
@@ -70,6 +70,7 @@ class PoroElasticProblem : public GeomechanicsFVProblem<TypeTag>
using
Indices
=
typename
GET_PROP_TYPE
(
TypeTag
,
ModelTraits
)
::
Indices
;
using
BoundaryTypes
=
typename
GET_PROP_TYPE
(
TypeTag
,
BoundaryTypes
);
using
PrimaryVariables
=
typename
GET_PROP_TYPE
(
TypeTag
,
PrimaryVariables
);
using
NumEqVector
=
typename
GET_PROP_TYPE
(
TypeTag
,
NumEqVector
);
using
ElementVolumeVariables
=
typename
GET_PROP_TYPE
(
TypeTag
,
GridVolumeVariables
)
::
LocalView
;
using
FVGridGeometry
=
typename
GET_PROP_TYPE
(
TypeTag
,
FVGridGeometry
);
...
...
@@ -81,6 +82,7 @@ class PoroElasticProblem : public GeomechanicsFVProblem<TypeTag>
using
Element
=
typename
GridView
::
template
Codim
<
0
>
::
Entity
;
using
GlobalPosition
=
typename
Element
::
Geometry
::
GlobalCoordinate
;
static
constexpr
Scalar
pi
=
M_PI
;
static
constexpr
int
dim
=
GridView
::
dimension
;
static
constexpr
int
dimWorld
=
GridView
::
dimensionworld
;
using
GradU
=
Dune
::
FieldMatrix
<
Scalar
,
dim
,
dimWorld
>
;
...
...
@@ -88,16 +90,20 @@ class PoroElasticProblem : public GeomechanicsFVProblem<TypeTag>
public:
//! The constructor
PoroElasticProblem
(
std
::
shared_ptr
<
const
FVGridGeometry
>
fvGridGeometry
)
:
ParentType
(
fvGridGeometry
)
{}
:
ParentType
(
fvGridGeometry
)
{}
//! The temperature in the domain
static
constexpr
Scalar
temperature
()
{
return
273.15
;
}
static
constexpr
Scalar
temperature
()
{
return
273.15
;
}
//! Evaluate the initial value for a control volume.
PrimaryVariables
initialAtPos
(
const
GlobalPosition
&
globalPos
)
const
{
return
PrimaryVariables
(
0.0
);
}
PrimaryVariables
initialAtPos
(
const
GlobalPosition
&
globalPos
)
const
{
return
PrimaryVariables
(
0.0
);
}
//! Evaluate the boundary conditions for a Dirichlet boundary segment.
PrimaryVariables
dirichletAtPos
(
const
GlobalPosition
&
globalPos
)
const
{
return
PrimaryVariables
(
0.0
);
}
//! Evaluate the boundary conditions for a Neumannboundary segment.
PrimaryVariables
neumannAtPos
(
const
GlobalPosition
&
globalPos
)
const
{
return
PrimaryVariables
(
0.0
);
}
PrimaryVariables
dirichletAtPos
(
const
GlobalPosition
&
globalPos
)
const
{
return
PrimaryVariables
(
0.0
);
}
/*!
* \brief Returns the effective fluid density
...
...
@@ -137,15 +143,14 @@ public:
* \brief Evaluate the source term for all phases within a given
* sub-control-volume.
*/
PrimaryVariables
source
(
const
Element
&
element
,
const
FVElementGeometry
&
fvGeometry
,
const
ElementVolumeVariables
&
elemVolVars
,
const
SubControlVolume
&
scv
)
const
NumEqVector
source
(
const
Element
&
element
,
const
FVElementGeometry
&
fvGeometry
,
const
ElementVolumeVariables
&
elemVolVars
,
const
SubControlVolume
&
scv
)
const
{
using
std
::
sin
;
using
std
::
cos
;
static
const
Scalar
pi
=
3.14159265358979323846
;
const
auto
ipGlobal
=
scv
.
center
();
const
auto
x
=
ipGlobal
[
0
];
const
auto
y
=
ipGlobal
[
1
];
...
...
@@ -184,7 +189,6 @@ public:
{
using
std
::
sin
;
static
const
Scalar
pi
=
3.14159265358979323846
;
const
auto
x
=
globalPos
[
0
];
const
auto
y
=
globalPos
[
1
];
...
...
@@ -202,7 +206,6 @@ public:
using
std
::
sin
;
using
std
::
cos
;
static
const
Scalar
pi
=
3.14159265358979323846
;
const
auto
x
=
globalPos
[
0
];
const
auto
y
=
globalPos
[
1
];
...
...
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