File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments