Skip to content

Commit 845c9b5

Browse files
author
Mark Zhang
committed
Minor fixes and formatting
1 parent 27ea826 commit 845c9b5

File tree

3 files changed

+11
-8
lines changed

3 files changed

+11
-8
lines changed

examples/2D_IGR_forward_facing_step/case.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -68,23 +68,23 @@
6868
"patch_icpp(1)%pres": p0,
6969
"patch_icpp(1)%alpha_rho(1)": rho0,
7070
"patch_icpp(1)%alpha(1)": 1.0,
71-
# Patch: Slip rectangle with rouded corner
71+
# Patch: Slip rectangle with rounded corner
7272
"patch_ib(1)%geometry": 3,
7373
"patch_ib(1)%x_centroid": (9 + rc / 2) * h,
7474
"patch_ib(1)%y_centroid": 0.5 * h,
7575
"patch_ib(1)%length_x": (12 - rc) * h,
7676
"patch_ib(1)%length_y": h,
7777
"patch_ib(1)%slip": "T",
7878
"patch_ib(2)%geometry": 3,
79-
"patch_ib(2)%x_centroid": (3 + rc/2) * h,
80-
"patch_ib(2)%y_centroid": (0.5 - rc/2) * h,
79+
"patch_ib(2)%x_centroid": (3 + rc / 2) * h,
80+
"patch_ib(2)%y_centroid": (0.5 - rc / 2) * h,
8181
"patch_ib(2)%length_x": rc * h,
8282
"patch_ib(2)%length_y": (1 - rc) * h,
8383
"patch_ib(2)%slip": "T",
8484
"patch_ib(3)%geometry": 2,
85-
"patch_ib(3)%x_centroid": (3 + rc)*h,
86-
"patch_ib(3)%y_centroid": (1 - rc)*h,
87-
"patch_ib(3)%radius" : rc * h,
85+
"patch_ib(3)%x_centroid": (3 + rc) * h,
86+
"patch_ib(3)%y_centroid": (1 - rc) * h,
87+
"patch_ib(3)%radius": rc * h,
8888
"patch_ib(3)%slip": "T",
8989
# Fluids Physical Parameters
9090
"fluid_pp(1)%gamma": 1.0 / (gam_a - 1.0),

src/simulation/m_ibm.fpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -970,6 +970,9 @@ contains
970970
if (igr) then
971971
! For IGR, we will need to perform operations on
972972
! the conservative variables instead
973+
if (.not. present(q_cons_vf)) then
974+
stop 'q_cons_vf is required inside s_interpolate_image_point when running with IGR'
975+
end if
973976
alpha_sum = 0._wp
974977
dyn_pres = 0._wp
975978
if (num_fluids == 1) then
@@ -1030,7 +1033,7 @@ contains
10301033
alpha_sum = alpha_sum + coeff*q_cons_vf(E_idx + l)%sf(i, j, k)
10311034
end do
10321035
alpha_rho_IP(num_fluids) = alpha_rho_IP(num_fluids) + coeff*q_cons_vf(num_fluids)%sf(i, j, k)
1033-
alpha_IP(num_fluids) = alpha_IP(num_fluids) + coeff*(1._wp - alpha_sum)
1036+
alpha_IP(num_fluids) = alpha_IP(num_fluids) + (1._wp - alpha_sum)
10341037
end if
10351038
else
10361039
pres_IP = pres_IP + coeff* &

src/simulation/m_igr.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module m_igr
1515

1616
use m_boundary_common
1717

18-
use m_ibm, only: ib, ib_markers, s_interpolate_sigma_igr
18+
use m_ibm, only: ib_markers, s_interpolate_sigma_igr
1919

2020
implicit none
2121

0 commit comments

Comments
 (0)