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
006f9a1e
Commit
006f9a1e
authored
4 years ago
by
David
Browse files
Options
Downloads
Patches
Plain Diff
setup TPR analysing timesteps
parent
dc4630dd
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Usecases/Two-phase-Richards/multi-patch/layered_soil/TP-R-layered_soil-g-but-same-perm.py
+16
-9
16 additions, 9 deletions
...i-patch/layered_soil/TP-R-layered_soil-g-but-same-perm.py
with
16 additions
and
9 deletions
Usecases/Two-phase-Richards/multi-patch/layered_soil/TP-R-layered_soil-g-but-same-perm.py
+
16
−
9
View file @
006f9a1e
...
@@ -49,7 +49,7 @@ datestr = date.strftime("%Y-%m-%d")
...
@@ -49,7 +49,7 @@ datestr = date.strftime("%Y-%m-%d")
# Name of the usecase that will be printed during simulation.
# Name of the usecase that will be printed during simulation.
use_case
=
"
TP-R-layered-soil-realistic-
g-
same-perm-vanG-Mualem
"
use_case
=
"
TP-R-layered-soil-realistic-same-perm-vanG-Mualem
-analyise-timesteps
"
# The name of this very file. Needed for creating log output.
# The name of this very file. Needed for creating log output.
thisfile
=
"
TP-R-layered_soil-g-but-same-perm.py
"
thisfile
=
"
TP-R-layered_soil-g-but-same-perm.py
"
...
@@ -78,10 +78,17 @@ resolutions = {
...
@@ -78,10 +78,17 @@ resolutions = {
# that this initial timestep should be counted as.
# that this initial timestep should be counted as.
# Format:
# Format:
# timestep_num: initial_time
# timestep_num: initial_time
starttimes
=
{
0
:
0.0
}
# starttimes = {0: 0.0}
starttimes
=
{
190
:
0.19
,
440
:
0.44
,
690
:
0.69
,
940
:
0.94
,
1140
:
1.14
,
# 1440: 1.440
}
timestep_size
=
0.001
timestep_size
=
0.001
number_of_timesteps
=
1200
number_of_timesteps
=
60
# LDD scheme parameters ######################################################
# LDD scheme parameters ######################################################
Lw1
=
0.025
# /timestep_size
Lw1
=
0.025
# /timestep_size
...
@@ -111,7 +118,7 @@ analyse_condition = False
...
@@ -111,7 +118,7 @@ analyse_condition = False
plot_timestep_every
=
1
plot_timestep_every
=
1
# 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
=
1
number_of_timesteps_to_analyse
=
2
# fine grained control over data to be written to disk in the mesh study case
# fine grained control over data to be written to disk in the mesh study case
# as well as for a regular simuation for a fixed grid.
# as well as for a regular simuation for a fixed grid.
...
@@ -119,14 +126,14 @@ if mesh_study:
...
@@ -119,14 +126,14 @@ if mesh_study:
write_to_file
=
{
write_to_file
=
{
# output the relative errornorm (integration in space) w.r.t. an exact
# output the relative errornorm (integration in space) w.r.t. an exact
# solution for each timestep into a csv file.
# solution for each timestep into a csv file.
'
space_errornorms
'
:
Tru
e
,
'
space_errornorms
'
:
Fals
e
,
# save the mesh and marker functions to disk
# save the mesh and marker functions to disk
'
meshes_and_markers
'
:
Tru
e
,
'
meshes_and_markers
'
:
Fals
e
,
# save xdmf/h5 data for each LDD iteration for timesteps determined by
# save xdmf/h5 data for each LDD iteration for timesteps determined by
# number_of_timesteps_to_analyse. I/O intensive!
# number_of_timesteps_to_analyse. I/O intensive!
'
L_iterations_per_timestep
'
:
False
,
'
L_iterations_per_timestep
'
:
False
,
# save solution to xdmf/h5.
# save solution to xdmf/h5.
'
solutions
'
:
Tru
e
,
'
solutions
'
:
Fals
e
,
# save absolute differences w.r.t an exact solution to xdmf/h5 file
# save absolute differences w.r.t an exact solution to xdmf/h5 file
# to monitor where on the domains errors happen
# to monitor where on the domains errors happen
'
absolute_differences
'
:
True
,
'
absolute_differences
'
:
True
,
...
@@ -428,7 +435,7 @@ if __name__ == '__main__':
...
@@ -428,7 +435,7 @@ if __name__ == '__main__':
# parameter=simulation_parameter
# parameter=simulation_parameter
# )
# )
LDDsim
.
join
()
#
LDDsim.join()
if
mesh_study
:
if
mesh_study
:
simulation_output_dir
=
processQueue
.
get
()
simulation_output_dir
=
processQueue
.
get
()
hlp
.
merge_spacetime_errornorms
(
isRichards
=
isRichards
,
hlp
.
merge_spacetime_errornorms
(
isRichards
=
isRichards
,
...
...
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