Skip to content
Snippets Groups Projects
Commit db2df9b0 authored by David Seus's avatar David Seus
Browse files

setup other example

parent cc66ddc9
No related branches found
No related tags found
No related merge requests found
...@@ -30,28 +30,28 @@ sym.init_printing() ...@@ -30,28 +30,28 @@ sym.init_printing()
use_case = "TP-TP-layered-soil-realistic-model-change-at-interface12" use_case = "TP-TP-layered-soil-realistic-model-change-at-interface12"
max_iter_num = 300 max_iter_num = 300
FEM_Lagrange_degree = 1 FEM_Lagrange_degree = 1
mesh_study = False mesh_study = True
resolutions = { resolutions = {
1: 5e-4, # h=2 1: 5e-4, # h=2
2: 5e-4, # h=1.1180 2: 5e-4, # h=1.1180
4: 3e-4, # h=0.5590 4: 3e-4, # h=0.5590
8: 1e-6, # h=0.2814 8: 1e-6, # h=0.2814
16: 1e-6, # h=0.1412 16: 9e-7, # h=0.1412
32: 1e-6, # h=0.0706 32: 9e-7, # h=0.0706
64: 1e-6, # 0.03535 64: 9e-7, # 0.03535
128: 1e-6, # 0.01768 128: 9e-7, # 0.01768
# 256: 1e-6 # 0.00884 # 256: 1e-6 # 0.00884
} }
############ GRID ####################### ############ GRID #######################
# mesh_resolution = 20 # mesh_resolution = 20
timestep_size = 0.0005 timestep_size = 0.001
number_of_timesteps = 1100 number_of_timesteps = 11
plot_timestep_every = 5 plot_timestep_every = 5
# 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 = 6 number_of_timesteps_to_analyse = 6
starttime = 0.0 starttimes = [0.0]
Lw = 0.025 #/timestep_size Lw = 0.025 #/timestep_size
Lnw=Lw Lnw=Lw
...@@ -60,7 +60,7 @@ lambda_w = 20 ...@@ -60,7 +60,7 @@ lambda_w = 20
lambda_nw = 20 lambda_nw = 20
include_gravity = False include_gravity = False
debugflag = False debugflag = True
analyse_condition = True analyse_condition = True
if mesh_study: if mesh_study:
...@@ -75,11 +75,11 @@ if mesh_study: ...@@ -75,11 +75,11 @@ if mesh_study:
write_to_file = { write_to_file = {
'space_errornorms': True, 'space_errornorms': True,
'meshes_and_markers': True, 'meshes_and_markers': True,
'L_iterations_per_timestep': False, 'L_iterations_per_timestep': True,
'solutions': False, 'solutions': True,
'absolute_differences': False, 'absolute_differences': True,
'condition_numbers': analyse_condition, 'condition_numbers': analyse_condition,
'subsequent_errors': False 'subsequent_errors': True
} }
else: else:
write_to_file = { write_to_file = {
...@@ -752,6 +752,7 @@ for subdomain in isRichards.keys(): ...@@ -752,6 +752,7 @@ for subdomain in isRichards.keys():
) )
for starttime in starttimes:
for mesh_resolution, solver_tol in resolutions.items(): for mesh_resolution, solver_tol in resolutions.items():
# initialise LDD simulation class # initialise LDD simulation class
simulation = ldd.LDDsimulation( simulation = ldd.LDDsimulation(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment