Skip to content

Commit a26d9b4

Browse files
author
Daniel Vickers
committed
Small updates to code for strictness and updating case file to be well posed
1 parent caa2274 commit a26d9b4

4 files changed

Lines changed: 4 additions & 5 deletions

File tree

examples/3D_mibm_sphere_head_on_collision/case.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,9 @@
9292
# Patch: Constant Tube filled with air
9393
# Specify the cylindrical air tube grid geometry
9494
"patch_icpp(1)%geometry": 9,
95-
"patch_icpp(1)%x_centroid": 0.5 * domain_size,
95+
"patch_icpp(1)%x_centroid": 0.0,
9696
"patch_icpp(1)%y_centroid": 0.5 * domain_size,
97-
"patch_icpp(1)%z_centroid": 0.5 * domain_size,
97+
"patch_icpp(1)%z_centroid": 0.0,
9898
"patch_icpp(1)%length_x": domain_size,
9999
"patch_icpp(1)%length_y": domain_size,
100100
"patch_icpp(1)%length_z": domain_size,

src/simulation/m_collisions.fpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,6 @@ contains
222222
end do
223223
$:END_GPU_PARALLEL_LOOP()
224224

225-
print *, forces(1,1:3)
226-
227225
end subroutine s_apply_wall_collision_forces_soft_sphere
228226

229227
!> uses ghost-point/image-point information to determine if it is possible if two IBs are colliding, effectively an optimized

src/simulation/m_ibm.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ contains
915915

916916
$:GPU_PARALLEL_LOOP(private='[ib_idx, fluid_idx, radial_vector, local_force_contribution, cell_volume, &
917917
& local_torque_contribution, dynamic_viscosity, viscous_stress_div, viscous_stress_div_1, &
918-
& viscous_stress_div_2, dx, dy, dz]', copy='[forces, torques]', copyin='[ib_markers, patch_ib, &
918+
& viscous_stress_div_2, dx, dy, dz]', copy='[forces, torques]', copyin='[patch_ib, &
919919
& dynamic_viscosities]', collapse=3)
920920
do i = 0, m
921921
do j = 0, n

src/simulation/m_time_steppers.fpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,7 @@ contains
771771
end if
772772
end do
773773

774+
$:GPU_UPDATE(device='[patch_ib]')
774775
call s_update_mib(num_ibs)
775776

776777
call nvtxEndRange

0 commit comments

Comments
 (0)