From b07d2e562f09730763ceb987f344433baf813f0c Mon Sep 17 00:00:00 2001 From: Xiangyu Hu Date: Thu, 7 Sep 2023 13:58:20 +0200 Subject: [PATCH] correct bug in fish case and update comment on body relation --- .../opencascade/tests/test_3d_aortic_valve/aortic_valve.cpp | 3 +++ .../2d_examples/test_0d_regression_test/regression_test.cpp | 3 +++ .../2d_examples/test_2d_T_shaped_pipe/src/T_shaped_pipe.cpp | 3 +++ .../test_2d_ball_shell_collision/ball_shell_collision.cpp | 3 +++ tests/2d_examples/test_2d_collision/collision.cpp | 3 +++ tests/2d_examples/test_2d_dambreak/Dambreak.cpp | 3 +++ .../2d_examples/test_2d_dambreak_python/dambreak_python.cpp | 3 +++ tests/2d_examples/test_2d_depolarization/depolarization.cpp | 3 +++ tests/2d_examples/test_2d_diffusion/diffusion.cpp | 3 +++ tests/2d_examples/test_2d_elastic_gate/elastic_gate.cpp | 3 +++ .../2d_eulerian_taylor_green.cpp | 3 +++ tests/2d_examples/test_2d_filling_tank/filling_tank.cpp | 3 +++ .../2d_flow_around_cylinder.cpp | 3 +++ .../2d_free_stream_around_cylinder.cpp | 3 +++ .../mr_free_stream_around_cylinder.cpp | 3 +++ tests/2d_examples/test_2d_fsi2/fsi2.cpp | 3 +++ tests/2d_examples/test_2d_heat_transfer/heat_transfer.cpp | 3 +++ .../2d_examples/test_2d_hydrostatic_fsi/hydrostatic_fsi.cpp | 3 +++ .../test_2d_nonlinear_wave_fsi/nonlinear_wave_fsi.cpp | 3 +++ .../test_2d_oscillating_beam/oscillating_beam.cpp | 3 +++ .../cauchy_oscillating_beam.cpp | 3 +++ tests/2d_examples/test_2d_owsc/owsc.cpp | 3 +++ .../particle_generator_single_resolution.cpp | 3 +++ tests/2d_examples/test_2d_plate/2d_plate.cpp | 3 +++ tests/2d_examples/test_2d_self_contact/self_contact.cpp | 3 +++ .../src/shell_beam_collision.cpp | 3 +++ tests/2d_examples/test_2d_sliding/sliding.cpp | 3 +++ tests/2d_examples/test_2d_square_droplet/src/droplet.cpp | 3 +++ tests/2d_examples/test_2d_standing_wave/standing_wave.cpp | 3 +++ .../test_2d_static_confinement/static_confinement.cpp | 3 +++ tests/2d_examples/test_2d_stfb/stfb.cpp | 3 +++ tests/2d_examples/test_2d_stlw/stlw.cpp | 3 +++ tests/2d_examples/test_2d_taylor_green/taylor_green.cpp | 3 +++ tests/2d_examples/test_2d_throat/throat.cpp | 3 +++ .../test_2d_two_phase_dambreak/two_phase_dambreak.cpp | 3 +++ tests/2d_examples/test_2d_wetting_effects/src/wetting.cpp | 3 +++ tests/3d_examples/test_3d_dambreak/dambreak.cpp | 3 +++ tests/3d_examples/test_3d_load_image/load_image.cpp | 3 +++ .../test_3d_muscle_activation/src/muscle_activation.cpp | 3 +++ .../test_3d_nonlinear_wave_fsi/nonlinear_wave_fsi.cpp | 3 +++ .../test_3d_particle_relaxation/particle_relaxation.cpp | 3 +++ .../particle_relaxation_single_resolution_3D.cpp | 3 +++ tests/3d_examples/test_3d_self_contact/3d_self_contact.cpp | 3 +++ .../test_3d_shell_particle_relaxation.cpp | 3 +++ tests/3d_examples/test_3d_stfb/stfb.cpp | 3 +++ tests/3d_examples/test_3d_stlw/stlw.cpp | 3 +++ .../2d_eulerian_taylor_green_LG.cpp | 4 +++- .../2d_flow_stream_around_fish.cpp | 6 +++++- tests/user_examples/test_2d_membrane/2d_membrane.cpp | 3 +++ .../test_2d_oscillating_beam_UL/oscillating_beam_UL.cpp | 3 +++ tests/user_examples/test_2d_stretching/stretching.cpp | 3 +++ .../test_2d_water_entry_exit/test_2d_water_entry_exit.cpp | 3 +++ tests/user_examples/test_3d_repose_angle/repose_angle.cpp | 3 +++ 53 files changed, 161 insertions(+), 2 deletions(-) diff --git a/modules/opencascade/tests/test_3d_aortic_valve/aortic_valve.cpp b/modules/opencascade/tests/test_3d_aortic_valve/aortic_valve.cpp index f35a52dec7..a56ccadbe1 100644 --- a/modules/opencascade/tests/test_3d_aortic_valve/aortic_valve.cpp +++ b/modules/opencascade/tests/test_3d_aortic_valve/aortic_valve.cpp @@ -139,6 +139,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation leaflet_inner(leaflet); //---------------------------------------------------------------------- diff --git a/tests/2d_examples/test_0d_regression_test/regression_test.cpp b/tests/2d_examples/test_0d_regression_test/regression_test.cpp index c7bad2ca38..593d776533 100644 --- a/tests/2d_examples/test_0d_regression_test/regression_test.cpp +++ b/tests/2d_examples/test_0d_regression_test/regression_test.cpp @@ -209,6 +209,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation diffusion_body_inner_relation(diffusion_body); ContactRelation temperature_observer_contact(temperature_observer, {&diffusion_body}); diff --git a/tests/2d_examples/test_2d_T_shaped_pipe/src/T_shaped_pipe.cpp b/tests/2d_examples/test_2d_T_shaped_pipe/src/T_shaped_pipe.cpp index fbabe61bbf..805cff445e 100644 --- a/tests/2d_examples/test_2d_T_shaped_pipe/src/T_shaped_pipe.cpp +++ b/tests/2d_examples/test_2d_T_shaped_pipe/src/T_shaped_pipe.cpp @@ -115,6 +115,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation water_block_inner(water_block); ComplexRelation water_block_complex_relation(water_block_inner, {&wall_boundary}); diff --git a/tests/2d_examples/test_2d_ball_shell_collision/ball_shell_collision.cpp b/tests/2d_examples/test_2d_ball_shell_collision/ball_shell_collision.cpp index ca87c65d67..639d3a758e 100644 --- a/tests/2d_examples/test_2d_ball_shell_collision/ball_shell_collision.cpp +++ b/tests/2d_examples/test_2d_ball_shell_collision/ball_shell_collision.cpp @@ -159,6 +159,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation ball_inner(ball); SurfaceContactRelation ball_contact(ball, {&wall_boundary}); diff --git a/tests/2d_examples/test_2d_collision/collision.cpp b/tests/2d_examples/test_2d_collision/collision.cpp index 1cd56cafe0..9245142b82 100644 --- a/tests/2d_examples/test_2d_collision/collision.cpp +++ b/tests/2d_examples/test_2d_collision/collision.cpp @@ -163,6 +163,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation free_ball_inner(free_ball); SurfaceContactRelation free_ball_contact(free_ball, {&wall_boundary}); diff --git a/tests/2d_examples/test_2d_dambreak/Dambreak.cpp b/tests/2d_examples/test_2d_dambreak/Dambreak.cpp index 0cee2b5495..128e078f05 100644 --- a/tests/2d_examples/test_2d_dambreak/Dambreak.cpp +++ b/tests/2d_examples/test_2d_dambreak/Dambreak.cpp @@ -78,6 +78,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- ComplexRelation water_block_complex(water_block, {&wall_boundary}); ContactRelation fluid_observer_contact(fluid_observer, {&water_block}); diff --git a/tests/2d_examples/test_2d_dambreak_python/dambreak_python.cpp b/tests/2d_examples/test_2d_dambreak_python/dambreak_python.cpp index 3e4aab9dc8..3a56788556 100644 --- a/tests/2d_examples/test_2d_dambreak_python/dambreak_python.cpp +++ b/tests/2d_examples/test_2d_dambreak_python/dambreak_python.cpp @@ -98,6 +98,9 @@ class Environment : public PreSettingCase // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- ComplexRelation water_block_complex; ContactRelation fluid_observer_contact; diff --git a/tests/2d_examples/test_2d_depolarization/depolarization.cpp b/tests/2d_examples/test_2d_depolarization/depolarization.cpp index 706fd50ecc..2b4ed8022c 100644 --- a/tests/2d_examples/test_2d_depolarization/depolarization.cpp +++ b/tests/2d_examples/test_2d_depolarization/depolarization.cpp @@ -93,6 +93,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation muscle_body_inner_relation(muscle_body); ContactRelation voltage_observer_contact_relation(voltage_observer, {&muscle_body}); diff --git a/tests/2d_examples/test_2d_diffusion/diffusion.cpp b/tests/2d_examples/test_2d_diffusion/diffusion.cpp index 241eaa931e..91d4af6a0a 100644 --- a/tests/2d_examples/test_2d_diffusion/diffusion.cpp +++ b/tests/2d_examples/test_2d_diffusion/diffusion.cpp @@ -135,6 +135,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation diffusion_body_inner_relation(diffusion_body); ContactRelation temperature_observer_contact(temperature_observer, {&diffusion_body}); diff --git a/tests/2d_examples/test_2d_elastic_gate/elastic_gate.cpp b/tests/2d_examples/test_2d_elastic_gate/elastic_gate.cpp index 86699f3ce5..8698e947f3 100644 --- a/tests/2d_examples/test_2d_elastic_gate/elastic_gate.cpp +++ b/tests/2d_examples/test_2d_elastic_gate/elastic_gate.cpp @@ -166,6 +166,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- ComplexRelation water_block_complex_relation(water_block, RealBodyVector{&wall_boundary, &gate}); InnerRelation gate_inner_relation(gate); diff --git a/tests/2d_examples/test_2d_eulerian_taylor_green/2d_eulerian_taylor_green.cpp b/tests/2d_examples/test_2d_eulerian_taylor_green/2d_eulerian_taylor_green.cpp index 67a24c5d89..6ec6d66e99 100644 --- a/tests/2d_examples/test_2d_eulerian_taylor_green/2d_eulerian_taylor_green.cpp +++ b/tests/2d_examples/test_2d_eulerian_taylor_green/2d_eulerian_taylor_green.cpp @@ -30,6 +30,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation water_body_inner(water_body); InteractionWithUpdate kernel_gradient_update(water_body_inner); diff --git a/tests/2d_examples/test_2d_filling_tank/filling_tank.cpp b/tests/2d_examples/test_2d_filling_tank/filling_tank.cpp index 5e34c9a194..3bc486ebe4 100644 --- a/tests/2d_examples/test_2d_filling_tank/filling_tank.cpp +++ b/tests/2d_examples/test_2d_filling_tank/filling_tank.cpp @@ -112,6 +112,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- ComplexRelation water_body_complex(water_body, {&wall}); ContactRelation fluid_observer_contact_relation(fluid_observer, {&water_body}); diff --git a/tests/2d_examples/test_2d_flow_around_cylinder/2d_flow_around_cylinder.cpp b/tests/2d_examples/test_2d_flow_around_cylinder/2d_flow_around_cylinder.cpp index bcbdb0891e..257a57dd7d 100644 --- a/tests/2d_examples/test_2d_flow_around_cylinder/2d_flow_around_cylinder.cpp +++ b/tests/2d_examples/test_2d_flow_around_cylinder/2d_flow_around_cylinder.cpp @@ -46,6 +46,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- ComplexRelation water_block_complex(water_block, {&cylinder}); ContactRelation cylinder_contact(cylinder, {&water_block}); diff --git a/tests/2d_examples/test_2d_free_stream_around_cylinder/2d_free_stream_around_cylinder.cpp b/tests/2d_examples/test_2d_free_stream_around_cylinder/2d_free_stream_around_cylinder.cpp index 54e6708c35..021c058b11 100644 --- a/tests/2d_examples/test_2d_free_stream_around_cylinder/2d_free_stream_around_cylinder.cpp +++ b/tests/2d_examples/test_2d_free_stream_around_cylinder/2d_free_stream_around_cylinder.cpp @@ -43,6 +43,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation water_block_inner(water_block); ComplexRelation water_block_complex(water_block_inner, {&cylinder}); diff --git a/tests/2d_examples/test_2d_free_stream_around_cylinder_mr/mr_free_stream_around_cylinder.cpp b/tests/2d_examples/test_2d_free_stream_around_cylinder_mr/mr_free_stream_around_cylinder.cpp index bb04303e93..afd08dbb8c 100644 --- a/tests/2d_examples/test_2d_free_stream_around_cylinder_mr/mr_free_stream_around_cylinder.cpp +++ b/tests/2d_examples/test_2d_free_stream_around_cylinder_mr/mr_free_stream_around_cylinder.cpp @@ -49,6 +49,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- AdaptiveInnerRelation water_block_inner(water_block); AdaptiveContactRelation water_contact(water_block, {&cylinder}); diff --git a/tests/2d_examples/test_2d_fsi2/fsi2.cpp b/tests/2d_examples/test_2d_fsi2/fsi2.cpp index cb4ae06d52..dec3605770 100644 --- a/tests/2d_examples/test_2d_fsi2/fsi2.cpp +++ b/tests/2d_examples/test_2d_fsi2/fsi2.cpp @@ -96,6 +96,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation insert_body_inner(insert_body); ComplexRelation water_block_complex(water_block, RealBodyVector{&wall_boundary, &insert_body}); diff --git a/tests/2d_examples/test_2d_heat_transfer/heat_transfer.cpp b/tests/2d_examples/test_2d_heat_transfer/heat_transfer.cpp index ef85aa96dc..b5ce7978d1 100644 --- a/tests/2d_examples/test_2d_heat_transfer/heat_transfer.cpp +++ b/tests/2d_examples/test_2d_heat_transfer/heat_transfer.cpp @@ -241,6 +241,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation fluid_body_inner(thermofluid_body); InnerRelation solid_body_inner(thermosolid_body); diff --git a/tests/2d_examples/test_2d_hydrostatic_fsi/hydrostatic_fsi.cpp b/tests/2d_examples/test_2d_hydrostatic_fsi/hydrostatic_fsi.cpp index 97c56d6138..8e030414fc 100644 --- a/tests/2d_examples/test_2d_hydrostatic_fsi/hydrostatic_fsi.cpp +++ b/tests/2d_examples/test_2d_hydrostatic_fsi/hydrostatic_fsi.cpp @@ -220,6 +220,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation water_block_inner(water_block); InnerRelation gate_inner(gate); diff --git a/tests/2d_examples/test_2d_nonlinear_wave_fsi/nonlinear_wave_fsi.cpp b/tests/2d_examples/test_2d_nonlinear_wave_fsi/nonlinear_wave_fsi.cpp index 31961ff435..20827853cf 100644 --- a/tests/2d_examples/test_2d_nonlinear_wave_fsi/nonlinear_wave_fsi.cpp +++ b/tests/2d_examples/test_2d_nonlinear_wave_fsi/nonlinear_wave_fsi.cpp @@ -58,6 +58,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation water_block_inner(water_block); InnerRelation structure_inner(structure); diff --git a/tests/2d_examples/test_2d_oscillating_beam/oscillating_beam.cpp b/tests/2d_examples/test_2d_oscillating_beam/oscillating_beam.cpp index c90ff2545f..2db3b1f4a9 100644 --- a/tests/2d_examples/test_2d_oscillating_beam/oscillating_beam.cpp +++ b/tests/2d_examples/test_2d_oscillating_beam/oscillating_beam.cpp @@ -116,6 +116,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation beam_body_inner(beam_body); ContactRelation beam_observer_contact(beam_observer, {&beam_body}); diff --git a/tests/2d_examples/test_2d_oscillating_beam_cauchy/cauchy_oscillating_beam.cpp b/tests/2d_examples/test_2d_oscillating_beam_cauchy/cauchy_oscillating_beam.cpp index 98330f69bc..dc5fd2e254 100644 --- a/tests/2d_examples/test_2d_oscillating_beam_cauchy/cauchy_oscillating_beam.cpp +++ b/tests/2d_examples/test_2d_oscillating_beam_cauchy/cauchy_oscillating_beam.cpp @@ -117,6 +117,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation beam_body_inner(beam_body); ContactRelation beam_observer_contact(beam_observer, {&beam_body}); diff --git a/tests/2d_examples/test_2d_owsc/owsc.cpp b/tests/2d_examples/test_2d_owsc/owsc.cpp index 14c2e20c67..4f712d3fe9 100644 --- a/tests/2d_examples/test_2d_owsc/owsc.cpp +++ b/tests/2d_examples/test_2d_owsc/owsc.cpp @@ -36,6 +36,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation water_block_inner(water_block); InnerRelation flap_inner(flap); diff --git a/tests/2d_examples/test_2d_particle_generator_single_resolution/particle_generator_single_resolution.cpp b/tests/2d_examples/test_2d_particle_generator_single_resolution/particle_generator_single_resolution.cpp index 8c19d6d9d7..8130418f3b 100644 --- a/tests/2d_examples/test_2d_particle_generator_single_resolution/particle_generator_single_resolution.cpp +++ b/tests/2d_examples/test_2d_particle_generator_single_resolution/particle_generator_single_resolution.cpp @@ -59,6 +59,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation input_body_inner(input_body); //---------------------------------------------------------------------- diff --git a/tests/2d_examples/test_2d_plate/2d_plate.cpp b/tests/2d_examples/test_2d_plate/2d_plate.cpp index 4136854991..2188d85256 100644 --- a/tests/2d_examples/test_2d_plate/2d_plate.cpp +++ b/tests/2d_examples/test_2d_plate/2d_plate.cpp @@ -98,6 +98,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation plate_body_inner(plate_body); ContactRelation plate_observer_contact(plate_observer, {&plate_body}); diff --git a/tests/2d_examples/test_2d_self_contact/self_contact.cpp b/tests/2d_examples/test_2d_self_contact/self_contact.cpp index 5225b43472..ff691ae4b1 100644 --- a/tests/2d_examples/test_2d_self_contact/self_contact.cpp +++ b/tests/2d_examples/test_2d_self_contact/self_contact.cpp @@ -128,6 +128,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation beam_body_inner(beam_body); ContactRelation beam_observer_contact(beam_observer, {&beam_body}); diff --git a/tests/2d_examples/test_2d_shell_beam_collision/src/shell_beam_collision.cpp b/tests/2d_examples/test_2d_shell_beam_collision/src/shell_beam_collision.cpp index 5c27643815..4b91b68bc7 100644 --- a/tests/2d_examples/test_2d_shell_beam_collision/src/shell_beam_collision.cpp +++ b/tests/2d_examples/test_2d_shell_beam_collision/src/shell_beam_collision.cpp @@ -118,6 +118,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation beam_inner(beam); SurfaceContactRelation shell_contact(shell, {&beam}); diff --git a/tests/2d_examples/test_2d_sliding/sliding.cpp b/tests/2d_examples/test_2d_sliding/sliding.cpp index 4a9eb5626e..fed89e39dc 100644 --- a/tests/2d_examples/test_2d_sliding/sliding.cpp +++ b/tests/2d_examples/test_2d_sliding/sliding.cpp @@ -88,6 +88,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation free_cube_inner(free_cube); SurfaceContactRelation free_cube_contact(free_cube, {&wall_boundary}); diff --git a/tests/2d_examples/test_2d_square_droplet/src/droplet.cpp b/tests/2d_examples/test_2d_square_droplet/src/droplet.cpp index 5c97724dc5..ae3b09e04d 100644 --- a/tests/2d_examples/test_2d_square_droplet/src/droplet.cpp +++ b/tests/2d_examples/test_2d_square_droplet/src/droplet.cpp @@ -130,6 +130,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- ComplexRelation water_air_complex(water_block, {&air_block}); ContactRelation water_wall_contact(water_block, {&wall_boundary}); diff --git a/tests/2d_examples/test_2d_standing_wave/standing_wave.cpp b/tests/2d_examples/test_2d_standing_wave/standing_wave.cpp index 09935f6f35..5a8d8570af 100644 --- a/tests/2d_examples/test_2d_standing_wave/standing_wave.cpp +++ b/tests/2d_examples/test_2d_standing_wave/standing_wave.cpp @@ -137,6 +137,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- ComplexRelation water_block_complex(water_block, {&wall_boundary}); //---------------------------------------------------------------------- diff --git a/tests/2d_examples/test_2d_static_confinement/static_confinement.cpp b/tests/2d_examples/test_2d_static_confinement/static_confinement.cpp index 3d98eaf391..e11d58cc55 100644 --- a/tests/2d_examples/test_2d_static_confinement/static_confinement.cpp +++ b/tests/2d_examples/test_2d_static_confinement/static_confinement.cpp @@ -120,6 +120,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation water_block_inner(water_block); ContactRelation fluid_observer_contact(fluid_observer, {&water_block}); diff --git a/tests/2d_examples/test_2d_stfb/stfb.cpp b/tests/2d_examples/test_2d_stfb/stfb.cpp index d91df6807c..7cd5776b60 100644 --- a/tests/2d_examples/test_2d_stfb/stfb.cpp +++ b/tests/2d_examples/test_2d_stfb/stfb.cpp @@ -41,6 +41,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation water_block_inner(water_block); InnerRelation structure_inner(structure); diff --git a/tests/2d_examples/test_2d_stlw/stlw.cpp b/tests/2d_examples/test_2d_stlw/stlw.cpp index fd147296b1..d38f76a4ed 100644 --- a/tests/2d_examples/test_2d_stlw/stlw.cpp +++ b/tests/2d_examples/test_2d_stlw/stlw.cpp @@ -31,6 +31,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation water_block_inner(water_block); ComplexRelation water_block_complex(water_block_inner, {&wall_boundary}); diff --git a/tests/2d_examples/test_2d_taylor_green/taylor_green.cpp b/tests/2d_examples/test_2d_taylor_green/taylor_green.cpp index 943e13cba5..831fd3e0e0 100644 --- a/tests/2d_examples/test_2d_taylor_green/taylor_green.cpp +++ b/tests/2d_examples/test_2d_taylor_green/taylor_green.cpp @@ -84,6 +84,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation water_block_inner(water_block); //---------------------------------------------------------------------- diff --git a/tests/2d_examples/test_2d_throat/throat.cpp b/tests/2d_examples/test_2d_throat/throat.cpp index b2a26a47ee..75037cf023 100644 --- a/tests/2d_examples/test_2d_throat/throat.cpp +++ b/tests/2d_examples/test_2d_throat/throat.cpp @@ -146,6 +146,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation fluid_block_inner(fluid_block); ComplexRelation fluid_block_complex(fluid_block_inner, {&wall_boundary}); diff --git a/tests/2d_examples/test_2d_two_phase_dambreak/two_phase_dambreak.cpp b/tests/2d_examples/test_2d_two_phase_dambreak/two_phase_dambreak.cpp index c9af5d17a6..f3ec0f1539 100644 --- a/tests/2d_examples/test_2d_two_phase_dambreak/two_phase_dambreak.cpp +++ b/tests/2d_examples/test_2d_two_phase_dambreak/two_phase_dambreak.cpp @@ -39,6 +39,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- ComplexRelation water_air_complex(water_block, {&air_block}); ContactRelation water_wall_contact(water_block, {&wall_boundary}); diff --git a/tests/2d_examples/test_2d_wetting_effects/src/wetting.cpp b/tests/2d_examples/test_2d_wetting_effects/src/wetting.cpp index 72c52e30b3..c0f4020be9 100644 --- a/tests/2d_examples/test_2d_wetting_effects/src/wetting.cpp +++ b/tests/2d_examples/test_2d_wetting_effects/src/wetting.cpp @@ -34,6 +34,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- ComplexRelation water_air_complex(water_block, {&air_block}); ContactRelation water_wall_contact(water_block, {&wall_boundary}); diff --git a/tests/3d_examples/test_3d_dambreak/dambreak.cpp b/tests/3d_examples/test_3d_dambreak/dambreak.cpp index d8c5611497..4436be267f 100644 --- a/tests/3d_examples/test_3d_dambreak/dambreak.cpp +++ b/tests/3d_examples/test_3d_dambreak/dambreak.cpp @@ -92,6 +92,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- ComplexRelation water_block_complex(water_block, {&wall_boundary}); ContactRelation fluid_observer_contact(fluid_observer, {&water_block}); diff --git a/tests/3d_examples/test_3d_load_image/load_image.cpp b/tests/3d_examples/test_3d_load_image/load_image.cpp index be743faeef..458c8cd09c 100644 --- a/tests/3d_examples/test_3d_load_image/load_image.cpp +++ b/tests/3d_examples/test_3d_load_image/load_image.cpp @@ -60,6 +60,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- AdaptiveInnerRelation imported_model_inner(imported_model); // BaseInnerRelation* imported_model_inner(imported_model); diff --git a/tests/3d_examples/test_3d_muscle_activation/src/muscle_activation.cpp b/tests/3d_examples/test_3d_muscle_activation/src/muscle_activation.cpp index c80acfd10c..95bc57c9b0 100644 --- a/tests/3d_examples/test_3d_muscle_activation/src/muscle_activation.cpp +++ b/tests/3d_examples/test_3d_muscle_activation/src/muscle_activation.cpp @@ -70,6 +70,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation myocardium_muscle_body_inner(myocardium_muscle_body); //---------------------------------------------------------------------- diff --git a/tests/3d_examples/test_3d_nonlinear_wave_fsi/nonlinear_wave_fsi.cpp b/tests/3d_examples/test_3d_nonlinear_wave_fsi/nonlinear_wave_fsi.cpp index 8a645dabd7..63460f888b 100644 --- a/tests/3d_examples/test_3d_nonlinear_wave_fsi/nonlinear_wave_fsi.cpp +++ b/tests/3d_examples/test_3d_nonlinear_wave_fsi/nonlinear_wave_fsi.cpp @@ -124,6 +124,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation water_block_inner(water_block); InnerRelation structure_inner(structure); diff --git a/tests/3d_examples/test_3d_particle_relaxation/particle_relaxation.cpp b/tests/3d_examples/test_3d_particle_relaxation/particle_relaxation.cpp index 1167d3db91..cf996b00b6 100644 --- a/tests/3d_examples/test_3d_particle_relaxation/particle_relaxation.cpp +++ b/tests/3d_examples/test_3d_particle_relaxation/particle_relaxation.cpp @@ -62,6 +62,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- AdaptiveInnerRelation imported_model_inner(imported_model); //---------------------------------------------------------------------- diff --git a/tests/3d_examples/test_3d_particle_relaxation_single_resolution/particle_relaxation_single_resolution_3D.cpp b/tests/3d_examples/test_3d_particle_relaxation_single_resolution/particle_relaxation_single_resolution_3D.cpp index e26e2029a3..2388f13924 100644 --- a/tests/3d_examples/test_3d_particle_relaxation_single_resolution/particle_relaxation_single_resolution_3D.cpp +++ b/tests/3d_examples/test_3d_particle_relaxation_single_resolution/particle_relaxation_single_resolution_3D.cpp @@ -80,6 +80,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation imported_model_inner(imported_model); //---------------------------------------------------------------------- diff --git a/tests/3d_examples/test_3d_self_contact/3d_self_contact.cpp b/tests/3d_examples/test_3d_self_contact/3d_self_contact.cpp index 9115da0a40..6510c809aa 100644 --- a/tests/3d_examples/test_3d_self_contact/3d_self_contact.cpp +++ b/tests/3d_examples/test_3d_self_contact/3d_self_contact.cpp @@ -87,6 +87,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation coil_inner(coil); SelfSurfaceContactRelation coil_self_contact(coil); diff --git a/tests/3d_examples/test_3d_shell_particle_relaxation/test_3d_shell_particle_relaxation.cpp b/tests/3d_examples/test_3d_shell_particle_relaxation/test_3d_shell_particle_relaxation.cpp index 156cd001d4..4e733db152 100644 --- a/tests/3d_examples/test_3d_shell_particle_relaxation/test_3d_shell_particle_relaxation.cpp +++ b/tests/3d_examples/test_3d_shell_particle_relaxation/test_3d_shell_particle_relaxation.cpp @@ -63,6 +63,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation imported_model_inner(imported_model); //---------------------------------------------------------------------- diff --git a/tests/3d_examples/test_3d_stfb/stfb.cpp b/tests/3d_examples/test_3d_stfb/stfb.cpp index 6d0fb2fce8..44c9d34b8e 100644 --- a/tests/3d_examples/test_3d_stfb/stfb.cpp +++ b/tests/3d_examples/test_3d_stfb/stfb.cpp @@ -39,6 +39,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation water_block_inner(water_block); InnerRelation structure_inner(structure); diff --git a/tests/3d_examples/test_3d_stlw/stlw.cpp b/tests/3d_examples/test_3d_stlw/stlw.cpp index f15b42dc82..a0b82128b4 100644 --- a/tests/3d_examples/test_3d_stlw/stlw.cpp +++ b/tests/3d_examples/test_3d_stlw/stlw.cpp @@ -30,6 +30,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation water_block_inner(water_block); ComplexRelation water_block_complex(water_block_inner, {&wall_boundary}); diff --git a/tests/user_examples/test_2d_eulerian_taylor_green_LG/2d_eulerian_taylor_green_LG.cpp b/tests/user_examples/test_2d_eulerian_taylor_green_LG/2d_eulerian_taylor_green_LG.cpp index 276bd934bb..0e9e0ab27b 100644 --- a/tests/user_examples/test_2d_eulerian_taylor_green_LG/2d_eulerian_taylor_green_LG.cpp +++ b/tests/user_examples/test_2d_eulerian_taylor_green_LG/2d_eulerian_taylor_green_LG.cpp @@ -31,6 +31,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation water_body_inner(water_body); InteractionWithUpdate kernel_gradient_update(water_body_inner); @@ -137,6 +140,5 @@ int main(int ac, char *av[]) write_total_mechanical_energy.testResult(); write_maximum_speed.testResult(); - return 0; } diff --git a/tests/user_examples/test_2d_flow_stream_around_fish/2d_flow_stream_around_fish.cpp b/tests/user_examples/test_2d_flow_stream_around_fish/2d_flow_stream_around_fish.cpp index ce97ac7798..1935f138e6 100644 --- a/tests/user_examples/test_2d_flow_stream_around_fish/2d_flow_stream_around_fish.cpp +++ b/tests/user_examples/test_2d_flow_stream_around_fish/2d_flow_stream_around_fish.cpp @@ -44,11 +44,15 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation fish_inner(fish_body); InnerRelation water_block_inner(water_block); - ComplexRelation water_block_complex(water_block, {&fish_body}); + ContactRelation water_block_contact(water_block, {&fish_body}); ContactRelation fish_contact(fish_body, {&water_block}); + ComplexRelation water_block_complex(water_block_inner, water_block_contact); //---------------------------------------------------------------------- // Run particle relaxation for body-fitted distribution if chosen. //---------------------------------------------------------------------- diff --git a/tests/user_examples/test_2d_membrane/2d_membrane.cpp b/tests/user_examples/test_2d_membrane/2d_membrane.cpp index 87ddd2ec1e..f8c01223d1 100644 --- a/tests/user_examples/test_2d_membrane/2d_membrane.cpp +++ b/tests/user_examples/test_2d_membrane/2d_membrane.cpp @@ -148,6 +148,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation beam_body_inner(beam_body); ContactRelation beam_observer_contact(beam_observer, {&beam_body}); diff --git a/tests/user_examples/test_2d_oscillating_beam_UL/oscillating_beam_UL.cpp b/tests/user_examples/test_2d_oscillating_beam_UL/oscillating_beam_UL.cpp index bc8657ba9e..0be315aa3b 100644 --- a/tests/user_examples/test_2d_oscillating_beam_UL/oscillating_beam_UL.cpp +++ b/tests/user_examples/test_2d_oscillating_beam_UL/oscillating_beam_UL.cpp @@ -129,6 +129,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- ContactRelation beam_observer_contact(beam_observer, {&beam_body}); InnerRelation beam_body_inner(beam_body); diff --git a/tests/user_examples/test_2d_stretching/stretching.cpp b/tests/user_examples/test_2d_stretching/stretching.cpp index d48028d9fb..fa398942ea 100644 --- a/tests/user_examples/test_2d_stretching/stretching.cpp +++ b/tests/user_examples/test_2d_stretching/stretching.cpp @@ -199,6 +199,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- if (system.RunParticleRelaxation()) { diff --git a/tests/user_examples/test_2d_water_entry_exit/test_2d_water_entry_exit.cpp b/tests/user_examples/test_2d_water_entry_exit/test_2d_water_entry_exit.cpp index 8aed27fa35..325eb44089 100644 --- a/tests/user_examples/test_2d_water_entry_exit/test_2d_water_entry_exit.cpp +++ b/tests/user_examples/test_2d_water_entry_exit/test_2d_water_entry_exit.cpp @@ -252,6 +252,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- InnerRelation water_block_inner(water_block); InnerRelation cylinder_inner(cylinder); diff --git a/tests/user_examples/test_3d_repose_angle/repose_angle.cpp b/tests/user_examples/test_3d_repose_angle/repose_angle.cpp index 3de86e3694..4d19fde4e6 100644 --- a/tests/user_examples/test_3d_repose_angle/repose_angle.cpp +++ b/tests/user_examples/test_3d_repose_angle/repose_angle.cpp @@ -98,6 +98,9 @@ int main(int ac, char *av[]) // Define body relation map. // The contact map gives the topological connections between the bodies. // Basically the the range of bodies to build neighbor particle lists. + // Generally, we first define all the inner relations, then the contact relations. + // At last, we define the complex relaxations by combining previous defined + // inner and contact relations. //---------------------------------------------------------------------- ComplexRelation soil_block_complex(soil_block, {&wall_boundary}); BodyStatesRecordingToVtp body_states_recording(io_environment, sph_system.real_bodies_);