Skip to content

Commit 59dde3b

Browse files
Resolved some prohibit statements with airfoils from an untested example
1 parent 0d27a5e commit 59dde3b

5 files changed

Lines changed: 11 additions & 10 deletions

File tree

examples/2D_ibm_airfoil/case.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,11 @@
9090
"patch_ib(1)%geometry": 4,
9191
"patch_ib(1)%x_centroid": 1.0e-03,
9292
"patch_ib(1)%y_centroid": 3.0e-03,
93-
"patch_ib(1)%c": 1.0e-03,
94-
"patch_ib(1)%t": 0.15,
95-
"patch_ib(1)%p": 0.4,
96-
"patch_ib(1)%m": 0.02,
93+
"patch_ib(1)%airfoil_id": 1,
94+
"ib_airfoil(1)%c": 1.0e-03,
95+
"ib_airfoil(1)%t": 0.15,
96+
"ib_airfoil(1)%p": 0.4,
97+
"ib_airfoil(1)%m": 0.02,
9798
"patch_ib(1)%angles(3)": -0.5235987756, # 30 degrees clockwise rotation, in radians
9899
# Fluids Physical Parameters
99100
# Use the same stiffness as the air bubble

src/pre_process/m_global_parameters.fpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,9 @@ module m_global_parameters
9393

9494
!> @name Immersed Boundaries
9595
!> @{
96-
type(ib_patch_parameters), dimension(num_ib_patches_max_namelist) :: patch_ib !< Immersed boundary patch parameters
97-
type(ib_airfoil_parameters), dimension(num_ib_airfoils_max) :: ib_airfoil !< Per-airfoil NACA parameters
98-
type(ib_stl_parameters), dimension(num_stl_models_max) :: stl_models !< Per-STL model parameters (namelist)
99-
integer :: num_stl_models !< Number of STL models
96+
type(ib_patch_parameters), dimension(num_ib_patches_max_namelist) :: patch_ib !< Immersed boundary patch parameters
97+
type(ib_airfoil_parameters), dimension(num_ib_airfoils_max) :: ib_airfoil !< Per-airfoil NACA parameters
98+
type(ib_stl_parameters), dimension(num_stl_models_max) :: stl_models !< Per-STL model parameters (namelist)
10099
!> @}
101100

102101
!> @name Non-polytropic bubble gas compression

src/simulation/m_global_parameters.fpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,6 @@ module m_global_parameters
268268
type(ib_airfoil_parameters), dimension(num_ib_airfoils_max) :: ib_airfoil !< Per-airfoil NACA user inputs (namelist)
269269
type(ib_airfoil_grid), dimension(num_ib_airfoils_max) :: ib_airfoil_grids !< Per-airfoil computed surface grids
270270
type(ib_stl_parameters), dimension(num_stl_models_max) :: stl_models !< Per-STL model parameters (namelist)
271-
integer :: num_stl_models !< Number of STL models
272271

273272
$:GPU_DECLARE(create='[ib, num_ibs, patch_ib, ib_airfoil, ib_airfoil_grids]')
274273
$:GPU_DECLARE(create='[ib_coefficient_of_friction]')

src/simulation/m_ibm.fpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1529,6 +1529,8 @@ contains
15291529
!> Finalize the IBM module
15301530
impure subroutine s_finalize_ibm_module()
15311531

1532+
integer :: i
1533+
15321534
@:DEALLOCATE(ib_markers%sf)
15331535
@:DEALLOCATE(ib_gbl_idx_lookup)
15341536
do i = 1, num_ib_airfoils_max

src/simulation/m_start_up.fpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -819,7 +819,6 @@ contains
819819
if (bubbles_euler) call s_initialize_bubbles_EE_module()
820820
if (ib) then
821821
call s_initialize_ibm_module()
822-
call s_initialize_ib_airfoils()
823822
end if
824823
if (qbmm) call s_initialize_qbmm_module()
825824

@@ -885,6 +884,7 @@ contains
885884
call s_generate_particle_beds(particle_bed_ibs)
886885
end if
887886
call s_instantiate_STL_models()
887+
call s_initialize_ib_airfoils()
888888
call s_reduce_ib_patch_array(particle_bed_ibs)
889889
deallocate (particle_bed_ibs)
890890
end block

0 commit comments

Comments
 (0)