Skip to content

Commit 734b649

Browse files
Addded handlers for new case file parameters
1 parent 8d3941d commit 734b649

File tree

2 files changed

+13
-4
lines changed

2 files changed

+13
-4
lines changed

src/common/m_derived_types.fpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,9 @@ module m_derived_types
293293
real(wp) :: step_x_centroid, step_y_centroid, step_z_centroid !<
294294
!! Centroid locations of intermediate steps in the time_stepper module
295295

296+
real(wp), dimension(1:3) :: angles
297+
real(wp), dimension(1:3) :: step_angles
298+
296299
real(wp) :: c, p, t, m
297300

298301
real(wp) :: length_x, length_y, length_z !< Dimensions of the patch. x,y,z Lengths.
@@ -325,6 +328,8 @@ module m_derived_types
325328
integer :: moving_ibm ! 0 for no moving, 1 for moving, 2 for moving on forced path
326329
real(wp), dimension(1:3) :: vel
327330
real(wp), dimension(1:3) :: step_vel ! velcoity array used to store intermediate steps in the time_stepper module
331+
real(wp), dimension(1:3) :: angular_vel
332+
real(wp), dimension(1:3) :: step_angular_vel ! velcoity array used to store intermediate steps in the time_stepper module
328333

329334
end type ib_patch_parameters
330335

toolchain/mfc/run/case_dicts.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,10 @@ def analytic(self):
116116
("moving_ibm", ParamType.INT)]:
117117
PRE_PROCESS[f"patch_ib({ib_id})%{real_attr}"] = ty
118118

119-
for vel_id in range(1, 4):
120-
PRE_PROCESS[f"patch_ib({ib_id})%vel({vel_id})"] = ParamType.REAL
119+
for dir_id in range(1, 4):
120+
PRE_PROCESS[f"patch_ib({ib_id})%vel({dir_id})"] = ParamType.REAL
121+
PRE_PROCESS[f"patch_ib({ib_id})%angles({dir_id})"] = ParamType.REAL
122+
PRE_PROCESS[f"patch_ib({ib_id})%angular_vel({dir_id})"] = ParamType.REAL
121123

122124
for cmp_id, cmp in enumerate(["x", "y", "z"]):
123125
cmp_id += 1
@@ -347,8 +349,10 @@ def analytic(self):
347349
("moving_ibm", ParamType.INT)]:
348350
SIMULATION[f"patch_ib({ib_id})%{real_attr}"] = ty
349351

350-
for vel_id in range(1, 4):
351-
SIMULATION[f"patch_ib({ib_id})%vel({vel_id})"] = ParamType.REAL
352+
for dir_id in range(1, 4):
353+
SIMULATION[f"patch_ib({ib_id})%vel({dir_id})"] = ParamType.REAL
354+
SIMULATION[f"patch_ib({ib_id})%angles({dir_id})"] = ParamType.REAL
355+
SIMULATION[f"patch_ib({ib_id})%angular_vel({dir_id})"] = ParamType.REAL
352356

353357
for cmp_id, cmp in enumerate(["x", "y", "z"]):
354358
cmp_id += 1

0 commit comments

Comments
 (0)