Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dune-mmdg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Hörl, Maximilian
dune-mmdg
Commits
43180f03
Commit
43180f03
authored
5 years ago
by
Hörl, Maximilian
Browse files
Options
Downloads
Patches
Plain Diff
modify problem mmdg4
parent
cb4b857c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/mmdg/problems/mmdgproblem4.hh
+24
-8
24 additions, 8 deletions
dune/mmdg/problems/mmdgproblem4.hh
with
24 additions
and
8 deletions
dune/mmdg/problems/mmdgproblem4.hh
+
24
−
8
View file @
43180f03
...
...
@@ -10,6 +10,7 @@ class MMDGProblem4 : public CoupledDGProblem<Coordinate, Scalar>
{
public:
static
constexpr
int
dim
=
Coordinate
::
dimension
;
static
constexpr
Scalar
jump
=
1.0
;
using
Base
=
CoupledDGProblem
<
Coordinate
,
Scalar
>
;
using
Matrix
=
typename
Base
::
Matrix
;
...
...
@@ -23,7 +24,7 @@ public:
if
(
pos
[
0
]
>
0.5
)
{
return
solution
+=
d_
;
return
solution
+=
jump
;
}
return
solution
;
...
...
@@ -32,7 +33,7 @@ public:
//the exact solution on the interface at position pos
Scalar
exactInterfaceSolution
(
const
Coordinate
&
pos
)
const
{
return
0.25
-
pos
[
1
]
*
pos
[
1
]
+
0.5
*
d_
;
return
0.25
-
pos
[
1
]
*
pos
[
1
]
+
0.5
*
jump
;
}
//indicates whether an exact solution is implemented for the problem
...
...
@@ -44,19 +45,34 @@ public:
//interface source term at position pos
Scalar
qInterface
(
const
Coordinate
&
pos
)
const
{
return
2.0
*
d_
;
// return 2.0 * d_ * d_;
const
Scalar
de
=
aperture
(
pos
);
const
Scalar
dPrime
=
sqrt
(
gradAperture
(
pos
)
*
gradAperture
(
pos
));
const
Scalar
dPrimePrime
=
0.
;
return
(
d_
*
d_
*
(
10.
*
pos
[
1
]
*
0.01
+
9.
*
pos
[
1
]
*
pos
[
1
]
+
2.
*
0.01
*
0.01
-
0.5
*
(
jump
+
0.5
)))
*
de
;
}
//aperture d of the fracture at position pos
Scalar
aperture
(
const
Coordinate
&
pos
)
const
{
return
d_
;
return
d_
*
(
pos
[
1
]
+
0.01
);;
}
//tangential gradient of the aperture d of the fracture at position pos
Coordinate
gradAperture
(
const
Coordinate
&
pos
)
const
{
Coordinate
gradD
(
0.0
);
gradD
[
1
]
=
d_
;
return
gradD
;
return
Coordinate
(
0.0
);
}
//permeability of the fracture in normal direction at position pos
Scalar
Kperp
(
const
Coordinate
&
pos
)
const
{
return
Scalar
(
1.0
)
/
d_
;
return
Scalar
(
1.0
)
/
jump
;
}
//tangential permeability tensor of the interface at position pos
...
...
@@ -66,7 +82,7 @@ public:
for
(
int
i
=
0
;
i
<
dim
;
i
++
)
{
permeability
[
i
][
i
]
=
1.0
/
d_
;
permeability
[
i
][
i
]
=
1.0
*
aperture
(
pos
);
/
/d_;
}
return
permeability
;
...
...
@@ -76,7 +92,7 @@ public:
//over x * boundary(x)
int
quadratureOrderBoundary
()
const
{
return
3
;
return
10
;
//
3;
}
//returns the recommended quadrature order to compute an integral
...
...
@@ -85,7 +101,7 @@ public:
//and d^2 * interfaceBoundary(x) * Kpar
int
quadratureOrderInterfaceBoundary
()
const
{
return
3
;
return
10
;
//
3;
}
private
:
...
...
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