Skip to content

Commit 195f5bc

Browse files
authored
Merge pull request #229 from keiyamamo/fix_predeform_p
fix pressure value in the predeformation problem file
2 parents 356aa3f + 479c39d commit 195f5bc

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/vasp/simulations/predeform.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ def set_problem_parameters(default_variables, **namespace):
3737
T=1.0, # Simulation end time
3838
dt=0.01, # Time step size
3939
theta=1.0, # backward Euler time integration
40-
save_step=10, # Save frequency of files for visualisation
40+
save_step=10, # Save frequency of files for visualization
4141
checkpoint_step=50, # Save frequency of checkpoint files
4242
# Linear solver parameters
4343
linear_solver="mumps",
4444
atol=1e-6, # Absolute tolerance in the Newton solver
4545
rtol=1e-6, # Relative tolerance in the Newton solver
46-
recompute=20, # Recompute the Jacobian matix within time steps
47-
recompute_tstep=20, # Recompute the Jacobian matix over time steps
46+
recompute=20, # Recompute the Jacobian matrix within time steps
47+
recompute_tstep=20, # Recompute the Jacobian matrix over time steps
4848
lmbda=0.5, # Damping parameter for the Newton solver
4949
# boundary condition parameters
5050
mesh_path="mesh/cylinder.h5",
@@ -56,11 +56,11 @@ def set_problem_parameters(default_variables, **namespace):
5656
# Fluid parameters
5757
rho_f=1.025e3, # Fluid density [kg/m3]
5858
mu_f=3.5e-3, # Fluid dynamic viscosity [Pa.s]
59-
dx_f_id=1, # ID of marker in the fluid domain. When reading the mesh, the fuid domain is assigned with a 1.
59+
dx_f_id=1, # ID of marker in the fluid domain.
6060
# Pre-deform parameters
61-
v_max_final=0.75, # Final max centerline velocity of parabolic profile
61+
v_max_final=0.1, # Final max centerline velocity of parabolic profile
6262
# should be the cycle-averaged average velocity for your main simulation
63-
P_final=10000, # Steady State pressure applied to wall
63+
P_final=11332.4, # Steady State pressure applied to wall
6464
# should be your cycle-averaged gage pressure for your main simulation
6565
t_start_v=0.0, # Start time for ramping up velocity
6666
t_end_v=0.2, # End time for ramping up velocity

tests/test_simulations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ def test_predeform_problem(input_mesh, tmpdir):
7171

7272
assert output_match is not None, "Regular expression did not match the output."
7373

74-
expected_velocity = 0.0716186271093947
74+
expected_velocity = 0.009549150281252628
7575
velocity_at_inlet = float(output_match[-1])
7676

7777
print("Velocity: {}".format(velocity_at_inlet))

0 commit comments

Comments
 (0)