Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LDD-for-two-phase-flow-systems
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Seus
LDD-for-two-phase-flow-systems
Commits
775a80b5
Commit
775a80b5
authored
Oct 26, 2019
by
David Seus
Browse files
Options
Downloads
Patches
Plain Diff
run a few TPR testcases
parent
0cd38141
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
LDDsimulation/boundary_and_interface.py
+1
-0
1 addition, 0 deletions
LDDsimulation/boundary_and_interface.py
Two-phase-Richards/two-patch/TP-R-two-patch-test-case/TP-R-2-patch-pure-dd.py
+10
-10
10 additions, 10 deletions
...wo-patch/TP-R-two-patch-test-case/TP-R-2-patch-pure-dd.py
with
11 additions
and
10 deletions
LDDsimulation/boundary_and_interface.py
+
1
−
0
View file @
775a80b5
...
@@ -61,6 +61,7 @@ class BoundaryPart(df.SubDomain):
...
@@ -61,6 +61,7 @@ class BoundaryPart(df.SubDomain):
else
:
else
:
self
.
marker_value
=
marker_value
self
.
marker_value
=
marker_value
###### Public interface
###### Public interface
def
inside
(
self
,
x
:
np
.
ndarray
,
on_boundary
)
->
bool
:
def
inside
(
self
,
x
:
np
.
ndarray
,
on_boundary
)
->
bool
:
"""
inside returns true if x is on_boundary and on the part of the boundary
"""
inside returns true if x is on_boundary and on the part of the boundary
...
...
This diff is collapsed.
Click to expand it.
Two-phase-Richards/two-patch/TP-R-two-patch-test-case/TP-R-2-patch-pure-dd.py
+
10
−
10
View file @
775a80b5
...
@@ -19,7 +19,7 @@ datestr = date.strftime("%Y-%m-%d")
...
@@ -19,7 +19,7 @@ datestr = date.strftime("%Y-%m-%d")
# init sympy session
# init sympy session
sym
.
init_printing
()
sym
.
init_printing
()
use_case
=
"
TP-R-2-patch-pure-dd
-new-gravity-rhs
"
use_case
=
"
TP-R-2-patch-pure-dd
"
# solver_tol = 6E-7
# solver_tol = 6E-7
max_iter_num
=
1000
max_iter_num
=
1000
FEM_Lagrange_degree
=
1
FEM_Lagrange_degree
=
1
...
@@ -29,9 +29,9 @@ resolutions = {
...
@@ -29,9 +29,9 @@ resolutions = {
# 2: 7e-7,
# 2: 7e-7,
# 4: 7e-7,
# 4: 7e-7,
# 8: 7e-7,
# 8: 7e-7,
#
16:
7
e-7,
16
:
5
e-7
,
# 32: 1e-
6
,
# 32: 1e-
7
,
64
:
7e-7
,
#
64: 7e-7,
# 128: 7e-7,
# 128: 7e-7,
# 256: 7e-7
# 256: 7e-7
}
}
...
@@ -39,21 +39,21 @@ resolutions = {
...
@@ -39,21 +39,21 @@ resolutions = {
############ GRID #######################
############ GRID #######################
# mesh_resolution = 20
# mesh_resolution = 20
timestep_size
=
0.005
timestep_size
=
0.005
number_of_timesteps
=
25
0
number_of_timesteps
=
25
plot_timestep_every
=
1
plot_timestep_every
=
1
# decide how many timesteps you want analysed. Analysed means, that we write out
# decide how many timesteps you want analysed. Analysed means, that we write out
# subsequent errors of the L-iteration within the timestep.
# subsequent errors of the L-iteration within the timestep.
number_of_timesteps_to_analyse
=
5
number_of_timesteps_to_analyse
=
0
starttimes
=
[
0.0
]
starttimes
=
[
0.0
]
Lw
=
0.025
#/timestep_size
Lw
=
0.025
#/timestep_size
Lnw
=
0.025
Lnw
=
0.025
lambda_w
=
2
lambda_w
=
2
0
lambda_nw
=
2
lambda_nw
=
2
0
include_gravity
=
True
include_gravity
=
True
debugflag
=
False
debugflag
=
False
analyse_condition
=
Tru
e
analyse_condition
=
Fals
e
output_string
=
"
./output/{}-{}_timesteps{}_P{}
"
.
format
(
datestr
,
use_case
,
number_of_timesteps
,
FEM_Lagrange_degree
)
output_string
=
"
./output/{}-{}_timesteps{}_P{}
"
.
format
(
datestr
,
use_case
,
number_of_timesteps
,
FEM_Lagrange_degree
)
...
@@ -376,7 +376,7 @@ p_e_sym = {
...
@@ -376,7 +376,7 @@ p_e_sym = {
1
:
{
'
wetting
'
:
(
-
6
-
(
1
+
t
*
t
)
*
(
1
+
x
*
x
+
y
*
y
))},
#*cutoff,
1
:
{
'
wetting
'
:
(
-
6
-
(
1
+
t
*
t
)
*
(
1
+
x
*
x
+
y
*
y
))},
#*cutoff,
# 'nonwetting': (-1 -t*(1.1+ y*y))}, #*(sym.sin((1+y)/2*sym.pi)*sym.sin((1+x)/2*sym.pi))**2},
# 'nonwetting': (-1 -t*(1.1+ y*y))}, #*(sym.sin((1+y)/2*sym.pi)*sym.sin((1+x)/2*sym.pi))**2},
2
:
{
'
wetting
'
:
(
-
6
-
(
1
+
t
*
t
)
*
(
1
+
x
*
x
+
y
*
y
)),
#*(sym.sin((1+y)/2*sym.pi)*sym.sin((1+x)/2*sym.pi))**2,
2
:
{
'
wetting
'
:
(
-
6
-
(
1
+
t
*
t
)
*
(
1
+
x
*
x
+
y
*
y
)),
#*(sym.sin((1+y)/2*sym.pi)*sym.sin((1+x)/2*sym.pi))**2,
'
nonwetting
'
:
-
t
*
(
1.1
+
y
*
x
)
*
(
sym
.
sin
((
x
*
y
-
0.5
*
t
)
*
y
**
3
))
**
4
},
#*(sym.sin((1+y)/2*sym.pi)*sym.sin((1+x)/2*sym.pi))**2},
'
nonwetting
'
:
-
t
*
*
2
*
(
1.1
+
y
*
x
)
*
y
**
4
},
#*
(sym.sin((x*y-0.5*t)*y**3))**4}, #*(sym.sin((1+y)/2*sym.pi)*sym.sin((1+x)/2*sym.pi))**2},
}
}
pc_e_sym
=
dict
()
pc_e_sym
=
dict
()
...
...
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