@@ -711,8 +711,10 @@ subroutine s_2D_TaylorGreen_Vortex(patch_id, patch_id_fp, q_prim_vf) ! ---------
711711 ! ensure that only the current patch contributes to the fluid
712712 ! state in the cells that this patch covers.
713713 eta = 1d0
714- U0 = patch_icpp(patch_id)% vortex_vel
715- L0 = patch_icpp(patch_id)% vortex_l
714+ ! U0 is the characteristic velocity of the vortex
715+ U0 = patch_icpp(patch_id)% vel(1 )
716+ ! L0 is the characteristic length of the vortex
717+ L0 = patch_icpp(patch_id)% vel(2 )
716718 ! Checking whether the patch covers a particular cell in the
717719 ! domain and verifying whether the current patch has the
718720 ! permission to write to that cell. If both queries check out,
@@ -732,7 +734,7 @@ subroutine s_2D_TaylorGreen_Vortex(patch_id, patch_id_fp, q_prim_vf) ! ---------
732734 ! Assign Parameters =========================================================
733735 q_prim_vf(mom_idx% beg )% sf(i,j,0 ) = U0* SIN (x_cc(i)/ L0)* COS (y_cc(j)/ L0)
734736 q_prim_vf(mom_idx% end )% sf(i,j,0 ) = - U0* COS (x_cc(i)/ L0)* SIN (y_cc(j)/ L0)
735- q_prim_vf(E_idx )% sf(i,j,0 ) = 100000d0 + (COS (2 * x_cc(i))/ L0 + &
737+ q_prim_vf(E_idx )% sf(i,j,0 ) = patch_icpp(patch_id) % pres + (COS (2 * x_cc(i))/ L0 + &
736738 COS (2 * y_cc(j))/ L0)* &
737739 (q_prim_vf(1 )% sf(i,j,0 )* U0* U0)/ 16
738740 ! ================================================================================
@@ -1014,10 +1016,10 @@ subroutine s_2D_analytical(patch_id, patch_id_fp, q_prim_vf) ! -----------------
10141016 ! ================================================================================
10151017
10161018 ! Taylor Green Vortex===============================================
1017- q_prim_vf(mom_idx% beg )% sf(i,j,0 ) = U0* SIN (x_cc(i)/ l)* COS (y_cc(j)/ l)
1018- q_prim_vf(mom_idx% end )% sf(i,j,0 ) = - U0* COS (x_cc(i)/ l)* SIN (y_cc(j)/ l)
1019- q_prim_vf(E_idx )% sf(i,j,0 ) = 100000d0 + (COS (2 * x_cc(i))/ l + COS (2 * y_cc(j))/ l)* &
1020- (q_prim_vf(1 )% sf(i,j,0 )* U0* U0)/ 16
1019+ ! q_prim_vf(mom_idx%beg )%sf(i,j,0) = U0*SIN(x_cc(i)/l)*COS(y_cc(j)/l)
1020+ ! q_prim_vf(mom_idx%end )%sf(i,j,0) = -U0*COS(x_cc(i)/l)*SIN(y_cc(j)/l)
1021+ ! q_prim_vf(E_idx )%sf(i,j,0) = 100000d0 + (COS(2*x_cc(i))/l + COS(2*y_cc(j))/l)* &
1022+ ! (q_prim_vf(1)%sf(i,j,0)*U0*U0)/16
10211023 ! ================================================================================
10221024
10231025 end if
0 commit comments