Skip to content

Commit b7a2eff

Browse files
committed
set initial values of k_s, c_s to be zero
1 parent 6b31be2 commit b7a2eff

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

turtleFSI/problems/RobinBC_validation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def set_problem_parameters(default_variables, **namespace):
5353
lambda_s=lambda_s_val, # Solid 1rst Lamé coef. [Pa]
5454
robin_bc = True, # Robin BC
5555
k_s = 1.0E5, # elastic response necesary for RobinBC
56-
c_s = 1.0E2, # viscoelastic response necesary for RobinBC
56+
c_s = 1.0E2, # viscoelastic response necesary for RobinBC
5757
dx_f_id=1, # ID of marker in the fluid domain
5858
dx_s_id=1002, # ID of marker in the solid domain
5959
extrapolation="laplace", # laplace, elastic, biharmonic, no-extrapolation

turtleFSI/problems/Stenosis_2D.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ def set_problem_parameters(default_variables, **namespace):
4343
mu_s=mu_s_val, # Solid shear modulus or 2nd Lame Coef. [Pa]
4444
nu_s=nu_s_val, # Solid Poisson ratio [-]
4545
lambda_s=lambda_s_val, # Solid 1rst Lamé coef. [Pa]
46+
k_s = 1.0E8, # elastic response necesary for RobinBC
47+
c_s = 1.0E2, # viscoelastic response necesary for RobinBC
4648
u_max= 0.75, # max inlet flow velocity value [m/s]
4749
p_val= 5000, # inner pressure for initialisation [Pa]
4850
vel_t_ramp= 0.2, # time for velocity ramp
@@ -53,7 +55,7 @@ def set_problem_parameters(default_variables, **namespace):
5355
recompute=30, # Number of iterations before recompute Jacobian.
5456
recompute_tstep=10, # Number of time steps before recompute Jacobian.
5557
save_step=1, # Save frequency of files for visualisation
56-
folder="stenosis_test", # Folder where the results will be stored
58+
folder="stenosis_2d", # Folder where the results will be stored
5759
checkpoint_step=50, # checkpoint frequency
5860
kill_time=100000, # in seconds, after this time start dumping checkpoints every timestep
5961
save_deg=1 # Default could be 1. 1 saves the nodal values only while 2 takes full advantage of the mide side nodes available in the P2 solution. P2 for nice visualisations
@@ -66,7 +68,7 @@ def set_problem_parameters(default_variables, **namespace):
6668
def get_mesh_domain_and_boundaries(folder, **namespace):
6769
# Import mesh file
6870
mesh = Mesh()
69-
with XDMFFile("mesh/2D_stenosis/mesh_correct_id.xdmf") as infile:
71+
with XDMFFile("mesh/Stenosis_2D/mesh_correct_id.xdmf") as infile:
7072
infile.read(mesh)
7173
# Rescale the mesh coordinated from [mm] to [m]
7274
x = mesh.coordinates()

turtleFSI/problems/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def info_red(s, check=True):
5757
# Domain settings
5858
dx_f_id=1, # Domain id of the fluid domain
5959
dx_s_id=2, # Domain id of the solid domain
60-
ds_s_id=None, # Domain id of the solid boundary necessary for
60+
ds_s_id=None, # Domain id of the solid boundary necessary for RobinBC
6161

6262
# Meterial settings
6363
fluid_properties=[],
@@ -77,15 +77,15 @@ def info_red(s, check=True):
7777
mu_s=5.0E4, # Shear modulus or 2nd Lame Coef. for the solid
7878
nu_s=0.45, # Poisson ratio
7979
lambda_s=4.5E5, # 1st Lame Coef. for the solid
80-
k_s = 1.0E8, # elastic response necesary for RobinBC
81-
c_s = 1.0E2, # viscoelastic response necesary for RobinBC
80+
k_s = 0.0, # elastic response necesary for RobinBC
81+
c_s = 0.0, # viscoelastic response necesary for RobinBC
8282
gravity=None, # Gravitational force on the solid
8383
Um=0.8, # Maximum velocity at inlet
8484

8585
# Variational formulations
8686
fluid="fluid", # ["fluid", "no_fluid"] Turn off fluid and only solve the solid problem
8787
solid="solid", # ["solid", "no_solid"] Turn off solid and only solve the fluid problem
88-
robin_bc = False, # [True, False] Use Robin boundary conditions for solid
88+
robin_bc = False, # [True, False] Use Robin boundary conditions for solid
8989
extrapolation="laplace", # laplace, elastic, biharmonic, no_extrapolation
9090
extrapolation_sub_type="constant", # small_constant, volume, constant, constrained_disp, constrained_disp_vel
9191
bc_ids=[], # List of ids for weak form of biharmonic mesh lifting operator with 'constrained_disp_vel'

0 commit comments

Comments
 (0)