Skip to content

Commit e1c3b3f

Browse files
added hooks for a rotation matrix
1 parent 734b649 commit e1c3b3f

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/common/m_derived_types.fpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,7 @@ module m_derived_types
295295

296296
real(wp), dimension(1:3) :: angles
297297
real(wp), dimension(1:3) :: step_angles
298+
real(wp), dimension(3:3) :: rotaiton_matrix !< matrix that converts from IB reference frame to fluid reference frame
298299

299300
real(wp) :: c, p, t, m
300301

src/pre_process/m_global_parameters.fpp

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -541,9 +541,15 @@ contains
541541

542542
! Variables to handle moving imersed boundaries, defaulting to no movement
543543
patch_ib(i)%moving_ibm = 0
544-
patch_ib(i)%vel(1) = 0._wp
545-
patch_ib(i)%vel(2) = 0._wp
546-
patch_ib(i)%vel(3) = 0._wp
544+
patch_ib(i)%vel(:) = 0._wp
545+
patch_ib(i)%angles(:) = 0._wp
546+
patch_ib(i)%angular_vel(:) = 0._wp
547+
548+
! sets values of a rotation matrix which can be used when calculating rotaitons
549+
patch_ib(i)%rotation_matrix(:) = 0._wp
550+
patch_ib(i)%rotation_matrix(1, 1) = 1._wp
551+
patch_ib(i)%rotation_matrix(2, 2) = 1._wp
552+
patch_ib(i)%rotation_matrix(3, 3) = 1._wp
547553
end do
548554

549555
! Fluids physical parameters

0 commit comments

Comments
 (0)