Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The lifting flux at the boundary is not computed correctly for Navier-Stokes #1

Open
amrueda opened this issue Nov 15, 2024 · 0 comments

Comments

@amrueda
Copy link
Contributor

amrueda commented Nov 15, 2024

The lifting flux for Navier-Stokes is computed with the conservative variables and not converted to the other possible "lifting variables". In MHD, this is done correcty:

DO SideID=1,nBCSides
!for BR1 and BR2, lifting is in strong form: Flux=Flux-U_master
#if PP_Lifting_Var==1
P_m(:,:,:)=U_master(:,:,:,SideID)
Floc(:,:,:)=Flux(:,:,:,SideID)
#elif PP_Lifting_Var==2
!convert BC lifting flux to primitive variables
CALL ConsToPrimVec(nTotal_face,P_m,U_master(:,:,:,SideID)) !prim_var
CALL ConsToPrimVec(nTotal_face,Floc,Flux(:,:,:,SideID)) !prim_var
#elif PP_Lifting_Var==3
!convert BC lifting flux to entropy variables,
CALL ConsToEntropyVec(nTotal_face,P_m,U_master(:,:,:,SideID)) !entropy_var
CALL ConsToEntropyVec(nTotal_face,Floc,Flux(:,:,:,SideID)) !entropy_var
#endif /*PP_Lifting_Var**/
DO q=0,PP_N; DO p=0,PP_N
Flux(:,p,q,SideID)=(Floc(:,p,q)-P_m(:,p,q))*SurfElem(p,q,SideID)
END DO; END DO
END DO ! iSide

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant