Skip to content

Commit 4d9c5c7

Browse files
author
LasNikas
committed
fix PST factor
1 parent 5d2ce54 commit 4d9c5c7

2 files changed

Lines changed: 14 additions & 13 deletions

File tree

examples/fluid/vortex_street_2d.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ density_diffusion = DensityDiffusionMolteniColagrossi(delta=0.1)
7575
# shifting_technique = TransportVelocityAdami(background_pressure=5 * fluid_density *
7676
# sound_speed^2)
7777

78-
shifting_technique = ParticleShiftingTechnique(; sound_speed_factor=0.1, v_max_factor=0)
78+
shifting_technique = ParticleShiftingTechnique(; sound_speed_factor=0.2, v_max_factor=0)
7979

8080
fluid_system = WeaklyCompressibleSPHSystem(fluid, fluid_density_calculator,
8181
state_equation, smoothing_kernel,

validation/vortex_street_2d/validation_vortex_street_2d.jl

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,20 +13,24 @@ reynolds_number = 200
1313
open_boundary_model = BoundaryModelMirroringTafuni(; mirror_method=ZerothOrderMirroring())
1414
# open_boundary_model = BoundaryModelDynamicalPressureZhang()
1515

16+
trixi_include(joinpath(examples_dir(), "fluid", "vortex_street_2d.jl"),
17+
reynolds_number=reynolds_number, saving_callback=nothing,
18+
open_boundary_model=open_boundary_model, factor_d=resolution_factor,
19+
sol=nothing)
20+
21+
shifting_technique = TransportVelocityAdami(background_pressure=5 * fluid_density *
22+
sound_speed^2)
23+
# shifting_technique = ParticleShiftingTechnique(; sound_speed_factor=0.2, v_max_factor=0)
24+
1625
model = nameof(typeof(open_boundary_model))
17-
output_directory = joinpath(validation_dir(), "vortex_street_2d", "tvf",
26+
output_directory = joinpath(validation_dir(), "vortex_street_2d",
27+
shifting_technique isa TransportVelocityAdami ? "tvf" : "pst",
1828
"$(model)_dp_$(resolution_factor)D_Re_$reynolds_number")
1929

2030
# ==========================================================================================
2131
# ==== Postprocessing
22-
trixi_include(joinpath(examples_dir(), "fluid", "vortex_street_2d.jl"),
23-
reynolds_number=reynolds_number, saving_callback=nothing,
24-
open_boundary_model=open_boundary_model,
25-
output_directory=output_directory, factor_d=resolution_factor, sol=nothing)
26-
27-
circle = SphereShape(0.001, cylinder_diameter / 2,
28-
cylinder_center, fluid_density, n_layers=1,
29-
sphere_type=RoundSphere())
32+
circle = SphereShape(0.002, cylinder_diameter / 2, cylinder_center, fluid_density,
33+
n_layers=1, sphere_type=RoundSphere())
3034

3135
# Points for pressure interpolation, located at the wall interface
3236
const data_points = copy(circle.coordinates)
@@ -78,9 +82,6 @@ pp_callback = PostprocessCallback(; dt=0.02,
7882
output_directory, filename="resulting_force",
7983
write_csv=true, write_file_interval=10)
8084

81-
shifting_technique = TransportVelocityAdami(background_pressure=5 * fluid_density *
82-
sound_speed^2)
83-
8485
# ======================================================================================
8586
# ==== Run the simulation
8687
trixi_include(joinpath(examples_dir(), "fluid", "vortex_street_2d.jl"),

0 commit comments

Comments
 (0)