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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David Seus
LDD-for-two-phase-flow-systems
Commits
c7999e3e
Commit
c7999e3e
authored
4 years ago
by
David Seus
Browse files
Options
Downloads
Patches
Plain Diff
setup different permeabilites
parent
4ca1172f
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
Two-phase-Richards/multi-patch/layered_soil_with_inner_patch/TP-R-layered_soil_with_inner_patch-realistic-different-permeabilties.py
+54
-45
54 additions, 45 deletions
...oil_with_inner_patch-realistic-different-permeabilties.py
with
54 additions
and
45 deletions
Two-phase-Richards/multi-patch/layered_soil_with_inner_patch/TP-R-layered_soil_with_inner_patch-realistic-different-permeabilties.py
+
54
−
45
View file @
c7999e3e
...
@@ -43,10 +43,10 @@ mesh_study = False
...
@@ -43,10 +43,10 @@ mesh_study = False
resolutions
=
{
resolutions
=
{
# 1: 5e-5, # h=2
# 1: 5e-5, # h=2
# 2: 5e-5, # h=1.1180
# 2: 5e-5, # h=1.1180
# 4: 5e-5, # h=0.5590
# 4: 5e-5, # h=0.5
1
590
# 8: 5e-5, # h=0.2814
# 8: 5e-5, # h=0.2814
# 16: 3e-5, # h=0.1412
# 16: 3e-5, # h=0.1412
32
:
5
e-6
,
32
:
2
e-6
,
# 64: 3e-6,
# 64: 3e-6,
# 128: 2e-6
# 128: 2e-6
}
}
...
@@ -55,55 +55,55 @@ resolutions = {
...
@@ -55,55 +55,55 @@ resolutions = {
# The list is looped over and a simulation is run with t_0 as initial time
# The list is looped over and a simulation is run with t_0 as initial time
# for each element t_0 in starttimes.
# for each element t_0 in starttimes.
starttimes
=
{
0
:
0.0
}
starttimes
=
{
0
:
0.0
}
timestep_size
=
0.0025
# starttimes = {0: 0.0, 1:0.3, 2:0.6, 3:0.9}
number_of_timesteps
=
400
timestep_size
=
0.001
number_of_timesteps
=
1500
# LDD scheme parameters ######################################################
# LDD scheme parameters ######################################################
Lw1
=
0.01
# /timestep_size
Lnw1
=
Lw1
Lw
1
=
0.
25
# /timestep_size
Lw
2
=
0.
01
# /timestep_size
Lnw
1
=
0.025
Lnw
2
=
Lw2
Lw
2
=
0.
25
# /timestep_size
Lw
3
=
0.
002
# /timestep_size
Lnw
2
=
0.02
5
Lnw
3
=
0.0
0
2
Lw
3
=
0.
25
# /timestep_size
Lw
4
=
0.
002
# /timestep_size
Lnw
3
=
0.02
5
Lnw
4
=
0.0
0
2
Lw
4
=
0.
25
# /timestep_size
Lw
5
=
0.
002
# /timestep_size
Lnw
4
=
0.02
5
Lnw
5
=
0.0
0
2
Lw
5
=
0.2
5
# /timestep_size
Lw
6
=
0.
00
2
# /timestep_size
Lnw
5
=
0.02
5
Lnw
6
=
0.0
0
2
Lw6
=
0.25
# /timestep_size
lambda12_w
=
1
L
nw
6
=
0.
025
lambda12_
nw
=
0.
4
lambda
1
2_w
=
40
lambda2
3
_w
=
1
lambda
1
2_nw
=
4
0
lambda2
3
_nw
=
0
.4
lambda2
3
_w
=
40
lambda2
4
_w
=
1
lambda2
3
_nw
=
4
0
lambda2
4
_nw
=
0
.4
lambda2
4
_w
=
40
lambda2
5
_w
=
1
lambda2
4
_nw
=
4
0
lambda2
5
_nw
=
0
.4
lambda
25
_w
=
40
lambda
34
_w
=
1
lambda
25
_nw
=
4
0
lambda
34
_nw
=
0
.4
lambda3
4
_w
=
40
lambda3
6
_w
=
1
lambda3
4
_nw
=
4
0
lambda3
6
_nw
=
0
.4
lambda
36
_w
=
40
lambda
45
_w
=
1
lambda
36
_nw
=
4
0
lambda
45
_nw
=
0
.4
lambda4
5
_w
=
40
lambda4
6
_w
=
1
lambda4
5
_nw
=
4
0
lambda4
6
_nw
=
0
.4
lambda46_w
=
40
lambda56_w
=
1
lambda46_nw
=
40
lambda56_nw
=
0.4
lambda56_w
=
40
lambda56_nw
=
40
include_gravity
=
False
include_gravity
=
False
debugflag
=
False
debugflag
=
False
...
@@ -113,7 +113,7 @@ analyse_condition = False
...
@@ -113,7 +113,7 @@ analyse_condition = False
# when number_of_timesteps is high, it might take a long time to write all
# when number_of_timesteps is high, it might take a long time to write all
# timesteps to disk. Therefore, you can choose to only write data of every
# timesteps to disk. Therefore, you can choose to only write data of every
# plot_timestep_every timestep to disk.
# plot_timestep_every timestep to disk.
plot_timestep_every
=
1
plot_timestep_every
=
3
# Decide how many timesteps you want analysed. Analysed means, that
# Decide how many timesteps you want analysed. Analysed means, that
# subsequent errors of the L-iteration within the timestep are written out.
# subsequent errors of the L-iteration within the timestep are written out.
number_of_timesteps_to_analyse
=
5
number_of_timesteps_to_analyse
=
5
...
@@ -222,11 +222,11 @@ gravity_acceleration = 9.81
...
@@ -222,11 +222,11 @@ gravity_acceleration = 9.81
# https://www.geotechdata.info/parameter/soil-porosity.html
# https://www.geotechdata.info/parameter/soil-porosity.html
# Dict of the form: { subdom_num : porosity }
# Dict of the form: { subdom_num : porosity }
porosity
=
{
porosity
=
{
1
:
0.
3
7
,
#0.2, # Clayey gravels, clayey sandy gravels
1
:
0.
5
7
,
#0.2, # Clayey gravels, clayey sandy gravels
2
:
0.
3
7
,
#0.22, # Silty gravels, silty sandy gravels
2
:
0.
5
7
,
#0.22, # Silty gravels, silty sandy gravels
3
:
0.
2
,
#0.
3
7, # Clayey sands
3
:
0.
005
,
#0.
5
7, # Clayey sands
4
:
0.0
1
,
#0.2 # Silty or sandy clay
4
:
0.0
05
,
#0.2 # Silty or sandy clay
5
:
0.0
2
5
,
#
5
:
0.0
0
5
,
#
6
:
0.005
,
#
6
:
0.005
,
#
}
}
...
@@ -291,10 +291,10 @@ lambda_param = {
...
@@ -291,10 +291,10 @@ lambda_param = {
intrinsic_permeability
=
{
intrinsic_permeability
=
{
1
:
0.1
,
# sand
1
:
0.1
,
# sand
2
:
0.1
,
# sand, there is a range
2
:
0.1
,
# sand, there is a range
3
:
0.0
5
,
#10e-2, # clay has a range
3
:
0.0
01
,
#10e-2, # clay has a range
4
:
0.0
25
,
#10e-3
4
:
0.0
01
,
#10e-3
5
:
0.0
5
,
#10e-2, # clay has a range
5
:
0.0
01
,
#10e-2, # clay has a range
6
:
0.0
25
,
#10e-3
6
:
0.0
01
,
#10e-3
}
}
# relative permeabilties
# relative permeabilties
...
@@ -453,10 +453,12 @@ if __name__ == '__main__':
...
@@ -453,10 +453,12 @@ if __name__ == '__main__':
for
mesh_resolution
,
solver_tol
in
resolutions
.
items
():
for
mesh_resolution
,
solver_tol
in
resolutions
.
items
():
simulation_parameter
.
update
({
"
solver_tol
"
:
solver_tol
})
simulation_parameter
.
update
({
"
solver_tol
"
:
solver_tol
})
hlp
.
info
(
simulation_parameter
[
"
use_case
"
])
hlp
.
info
(
simulation_parameter
[
"
use_case
"
])
processQueue
=
mp
.
Queue
()
LDDsim
=
mp
.
Process
(
LDDsim
=
mp
.
Process
(
target
=
hlp
.
run_simulation
,
target
=
hlp
.
run_simulation
,
args
=
(
args
=
(
simulation_parameter
,
simulation_parameter
,
processQueue
,
starttime
,
starttime
,
mesh_resolution
mesh_resolution
)
)
...
@@ -468,3 +470,10 @@ if __name__ == '__main__':
...
@@ -468,3 +470,10 @@ if __name__ == '__main__':
# starttime=starttime,
# starttime=starttime,
# parameter=simulation_parameter
# parameter=simulation_parameter
# )
# )
# LDDsim.join()
if
mesh_study
:
simulation_output_dir
=
processQueue
.
get
()
hlp
.
merge_spacetime_errornorms
(
isRichards
=
isRichards
,
resolutions
=
resolutions
,
output_dir
=
simulation_output_dir
)
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