Skip to content

Commit 24b25ec

Browse files
Need to generate new golden files for the locations of the airfoil arrays to pass test. I also found a major bug that may invalidate the previous method of computing airfoils that were rotated. We should consider regenerating golden files for this.
1 parent 367bea6 commit 24b25ec

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

examples/2D_ibm_airfoil/case.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@
9494
"patch_ib(1)%t": 0.15,
9595
"patch_ib(1)%p": 0.4,
9696
"patch_ib(1)%m": 0.02,
97-
"patch_ib(1)%theta": 30,
97+
"patch_ib(1)%angles(3)": -0.5235987756, # 30 degrees clockwise rotation, in radians
9898
# Fluids Physical Parameters
9999
# Use the same stiffness as the air bubble
100-
"fluid_pp(1)%gamma": 1.0e00 / (gam_a - 1.0e00), # 2.50(Not 1.40)
100+
"fluid_pp(1)%gamma": 1.0e00 / (gam_a - 1.0e00), # 2.50 (Not 1.40)
101101
"fluid_pp(1)%pi_inf": 0,
102-
"fluid_pp(2)%gamma": 1.0e00 / (gam_b - 1.0e00), # 2.50(Not 1.40)
102+
"fluid_pp(2)%gamma": 1.0e00 / (gam_b - 1.0e00), # 2.50 (Not 1.40)
103103
"fluid_pp(2)%pi_inf": 0,
104104
}
105105
)

src/common/m_ib_patches.fpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,8 +206,11 @@ contains
206206
#endif
207207
Np = Np1 + Np2 + 1
208208

209-
allocate (airfoil_grid_u(1:Np))
210-
allocate (airfoil_grid_l(1:Np))
209+
if (.not. allocated(airfoil_grid_u)) then
210+
allocate (airfoil_grid_u(1:Np))
211+
allocate (airfoil_grid_l(1:Np))
212+
end if
213+
211214

212215
! TODO :: The below instantiations are already handles by the loop below
213216
airfoil_grid_u(1)%x = 0._wp

src/pre_process/m_data_output.fpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,8 +550,6 @@ contains
550550
write (2, FMT) airfoil_grid_l(j)%x, airfoil_grid_l(j)%y
551551
end do
552552
close (2)
553-
554-
print *, "Np", Np
555553
end if
556554
end do
557555
end if

src/simulation/m_ibm.fpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,6 @@ contains
396396
integer :: index
397397

398398
do q = 1, num_gps
399-
print *, q, num_gps
400399
gp = ghost_points_in(q)
401400
i = gp%loc(1)
402401
j = gp%loc(2)

0 commit comments

Comments
 (0)