You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/common/m_ib_patches.fpp
+13-14Lines changed: 13 additions & 14 deletions
Original file line number
Diff line number
Diff line change
@@ -207,10 +207,9 @@ contains
207
207
Np = Np1 + Np2 +1
208
208
209
209
if (.not. allocated(airfoil_grid_u)) then
210
-
allocate (airfoil_grid_u(1:Np))
211
-
allocate (airfoil_grid_l(1:Np))
210
+
allocate (airfoil_grid_u(1:Np))
211
+
allocate (airfoil_grid_l(1:Np))
212
212
end if
213
-
214
213
215
214
! TODO :: The below instantiations are already handles by the loop below
216
215
airfoil_grid_u(1)%x =0._wp
@@ -222,7 +221,7 @@ contains
222
221
eta =1._wp
223
222
224
223
do i =1, Np1 + Np2 -1
225
-
! TODO :: This allcoated the upper and lower airfoil arrays, and does not need to be performed each time the IB markers are updated. Place this as a separate subroutine.
224
+
! TODO :: This allocated the upper and lower airfoil arrays, and does not need to be performed each time the IB markers are updated. Place this as a separate subroutine.
226
225
if (i <= Np1) then
227
226
xc = i*(pa*ca_in/Np1)
228
227
xa = xc/ca_in
@@ -268,7 +267,7 @@ contains
268
267
do j =0, n
269
268
do i =0, m
270
269
xy_local = [x_cc(i) - x_centroid, y_cc(j) - y_centroid, 0._wp] ! get coordinate frame centered on IB
271
-
xy_local =matmul(inverse_rotation, xy_local) ! rotate the frame into the IB's coordiantes
270
+
xy_local =matmul(inverse_rotation, xy_local) ! rotate the frame into the IB's coordinates
272
271
273
272
if (xy_local(1) >= 0._wp .and. xy_local(1) <= ca_in) then
274
273
xa = xy_local(1)/ca_in
@@ -417,7 +416,7 @@ contains
417
416
do j = 0, n
418
417
do i = 0, m
419
418
xyz_local = [x_cc(i) - x_centroid, y_cc(j) - y_centroid, z_cc(l) - z_centroid] ! get coordinate frame centered on IB
420
-
xyz_local = matmul(inverse_rotation, xyz_local) ! rotate the frame into the IB's coordiantes
419
+
xyz_local = matmul(inverse_rotation, xyz_local) ! rotate the frame into the IB's coordinates
421
420
422
421
if (xyz_local(3) >= z_min .and. xyz_local(3) <= z_max) then
423
422
@@ -630,11 +629,11 @@ contains
630
629
! Computing the beginning and the end x-, y- and z-coordinates of
631
630
! the cuboid based on its centroid and lengths
632
631
x_boundary%beg =-0.5_wp*length_x
633
-
x_boundary%end =0.5_wp*length_x
632
+
x_boundary%end =0.5_wp*length_x
634
633
y_boundary%beg =-0.5_wp*length_y
635
-
y_boundary%end =0.5_wp*length_y
634
+
y_boundary%end =0.5_wp*length_y
636
635
z_boundary%beg =-0.5_wp*length_z
637
-
z_boundary%end =0.5_wp*length_z
636
+
z_boundary%end =0.5_wp*length_z
638
637
639
638
! Since the cuboidal patch does not allow for its boundaries to get
640
639
! smoothed out, the pseudo volume fraction is set to1to make sure
@@ -658,7 +657,7 @@ contains
658
657
cart_z = z_cc(k)
659
658
end if
660
659
xyz_local = [x_cc(i) - x_centroid, cart_y - y_centroid, cart_z - z_centroid] ! get coordinate frame centered on IB
661
-
xyz_local =matmul(inverse_rotation, xyz_local) ! rotate the frame into the IB's coordiantes
660
+
xyz_local =matmul(inverse_rotation, xyz_local) ! rotate the frame into the IB's coordinates
662
661
663
662
if (x_boundary%beg <= xyz_local(1) .and. &
664
663
x_boundary%end >= xyz_local(1) .and. &
@@ -712,11 +711,11 @@ contains
712
711
! Computing the beginning and the end x-, y- and z-coordinates of
713
712
! the cylinder based on its centroid and lengths
714
713
x_boundary%beg = -0.5_wp*length_x
715
-
x_boundary%end = 0.5_wp*length_x
714
+
x_boundary%end = 0.5_wp*length_x
716
715
y_boundary%beg = -0.5_wp*length_y
717
-
y_boundary%end = 0.5_wp*length_y
716
+
y_boundary%end = 0.5_wp*length_y
718
717
z_boundary%beg = -0.5_wp*length_z
719
-
z_boundary%end = 0.5_wp*length_z
718
+
z_boundary%end = 0.5_wp*length_z
720
719
721
720
! Initializing the pseudo volume fraction value to 1. The value will
722
721
! be modified as the patch is laid out on the grid, but only in the
@@ -738,7 +737,7 @@ contains
738
737
cart_z = z_cc(k)
739
738
end if
740
739
xyz_local = [x_cc(i) - x_centroid, cart_y - y_centroid, cart_z - z_centroid] ! get coordinate frame centered on IB
741
-
xyz_local =matmul(inverse_rotation, xyz_local) ! rotate the frame into the IB's coordiantes
740
+
xyz_local =matmul(inverse_rotation, xyz_local) ! rotate the frame into the IB's coordinates
0 commit comments