@@ -13,20 +13,24 @@ reynolds_number = 200
1313open_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+
1625model = 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
3236const 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
8687trixi_include (joinpath (examples_dir (), " fluid" , " vortex_street_2d.jl" ),
0 commit comments