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

set up tp example with gravity non dd

parent ee96dd41
No related branches found
No related tags found
No related merge requests found
...@@ -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-TP-2-patch-really-pure-dd-horizontal-interface-avoding-origin" use_case = "TP-TP-2-patch-really-pure-dd-horizontal-interface-avoding-origin-finer-dt"
# solver_tol = 5E-7 # solver_tol = 5E-7
max_iter_num = 1000 max_iter_num = 1000
FEM_Lagrange_degree = 1 FEM_Lagrange_degree = 1
......
...@@ -30,7 +30,7 @@ resolutions = { ...@@ -30,7 +30,7 @@ resolutions = {
# 4: 1e-6, # h=0.5590 # 4: 1e-6, # h=0.5590
# 8: 1e-6, # h=0.2814 # 8: 1e-6, # h=0.2814
# 16: 5e-7, # h=0.1412 # 16: 5e-7, # h=0.1412
32: 5e-8, 32: 2e-6,
# 64: 5e-7, # 64: 5e-7,
# 128: 5e-7 # 128: 5e-7
} }
...@@ -39,21 +39,21 @@ resolutions = { ...@@ -39,21 +39,21 @@ resolutions = {
############ GRID ####################### ############ GRID #######################
# mesh_resolution = 20 # mesh_resolution = 20
timestep_size = 0.001 timestep_size = 0.001
number_of_timesteps = 10 number_of_timesteps = 1300
plot_timestep_every = 1 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 = 1 number_of_timesteps_to_analyse = 5
starttime = 0.0 starttime = 0.0
Lw = 0.03 #/timestep_size Lw = 0.05 #/timestep_size
Lnw=Lw Lnw=Lw
lambda_w = 0.4 lambda_w = 0.4
lambda_nw = 0.4 lambda_nw = 0.4
include_gravity = False include_gravity = True
debugflag = True debugflag = False
analyse_condition = True analyse_condition = True
if mesh_study: if mesh_study:
...@@ -386,7 +386,7 @@ p_e_sym = { ...@@ -386,7 +386,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.0 - (1.0 + t*t)*(1.0 + x*x)), #*(sym.sin((1+y)/2*sym.pi)*sym.sin((1+x)/2*sym.pi))**2, 2: {'wetting': (-6.0 - (1.0 + t*t)*(1.0 + x*x)), #*(sym.sin((1+y)/2*sym.pi)*sym.sin((1+x)/2*sym.pi))**2,
'nonwetting': (-1 -t*(1.1 + y*y) - sym.sqrt(2+t**2)*(1.1+y)**2*y**2)}, #*(sym.sin((1+y)/2*sym.pi)*sym.sin((1+x)/2*sym.pi))**2}, 'nonwetting': (-1 -t*(1.1 + y*y) - sym.sin((x*y-0.5*t)*y**2)**2)}, #*(sym.sin((1+y)/2*sym.pi)*sym.sin((1+x)/2*sym.pi))**2},
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment