module that holds all routines to calculate the flux for hyperbolic linearzied gas dynamic equations.
VK use atl_laxFriedrichFlux_module, only: atl_laxFriedAcoustic
Interface for fluxes of acoustic equations.
VK leftstate = faceRep(left,iDof,var,2) VK rightstate = faceRep(right,iDof,var,1) VK VK ! call lax friedrich flux VK call atl_laxFriedAcoustic(left = leftstate, & VK & right = rightstate, & VK & acoustic = acoustic, & VK & flux = flux, & VK & iDir = idir ) VK VK faceFlux(left,iDof,var,2) = flux
VK !upwind case (at the moment not needed, since U0=0) VK faceFlux(left, iDof,var,2)= faceRep(left,iDof,var,2) VK faceFlux(right,iDof,var,1) = faceFlux(left,iDof,var,2) VK
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | nTotalFaces | |||
integer, | intent(in) | :: | nSides | |||
integer, | intent(in) | :: | nFaceDofs | |||
real(kind=rk), | intent(in) | :: | faceRep(nTotalFaces,nFaceDofs,4,2) | |||
real(kind=rk), | intent(inout) | :: | faceFlux(nTotalFaces,nFaceDofs,4,2) | |||
integer, | intent(in) | :: | leftPos(nSides) | |||
integer, | intent(in) | :: | rightPos(nsides) | |||
integer, | intent(in) | :: | var(4) | |||
type(atl_acoustic_type), | intent(in) | :: | acoustic |
Datatype for acoustic equation include all background data |
||
integer, | intent(in) | :: | idir |
Direction of the flow, used for background velocity |
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=rk), | intent(in) | :: | left(4) |
State to compute the fluxes (rho, u, v, w) |
||
real(kind=rk), | intent(in) | :: | right(4) |
State to compute the fluxes (rho, u, v, w) |
||
type(atl_acoustic_type), | intent(in) | :: | acoustic |
Datatype for acoustic equation include all background data |
||
integer, | intent(in) | :: | iDir |
Direction of flux, used fot background velocity |
The resulting flux in x direction
c a l c u l a t e
f l u x
o f
p u r e
a c o u s t i c
e q u a t i o n
d i r e c t l y
o n
t h e
f a c e - v e c t o r
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | nTotalFaces | |||
integer, | intent(in) | :: | nSides | |||
integer, | intent(in) | :: | nFaceDofs | |||
real(kind=rk), | intent(in) | :: | faceRep(nTotalFaces,nFaceDofs,4,2) | |||
real(kind=rk), | intent(inout) | :: | faceFlux(nTotalFaces,nFaceDofs,4,2) | |||
integer, | intent(in) | :: | leftPos(nSides) | |||
integer, | intent(in) | :: | rightPos(nsides) | |||
integer, | intent(in) | :: | var(4) | |||
type(atl_acoustic_type), | intent(in) | :: | acoustic |
Datatype for acoustic equation include all background data |
||
integer, | intent(in) | :: | idir |
Direction of the flow, used for background velocity |