Struct2D  1.0
Solution of 2-D Euler- and Navier-Stokes Equations on Structured Grids
 All Classes Files Functions Variables
bcondFarfield.f90 File Reference

Treatment of far-field boundaries. More...

Functions/Subroutines

subroutine bcondfarfield (lb, lbeg, lend, rhof, uf, vf, pf)
 Applies far-field boundary condition to dummy cells. Values are prescribed in the first layer and extrapolated to the second dummy layer. Characteristic boundary conditions are employed in the case of subsonic flow. Conservative variables are inter- / extrapolated in the case of supersonic flow. Vortex correction is optionally applied to the flow variables (subsonic only). More...
 

Function/Subroutine Documentation

subroutine bcondfarfield ( integer, intent(in)  lb,
integer, intent(in)  lbeg,
integer, intent(in)  lend,
real(rtype), dimension(0:)  rhof,
real(rtype), dimension(0:)  uf,
real(rtype), dimension(0:)  vf,
real(rtype), dimension(0:)  pf 
)
Parameters
lbside of the computational domain (1: j=2, 2: i=i2, 3: j=j2,4: i=2)
lbegstart index of the boundary segment
lendend index of the boundary segment
rhofwork array for density at the boundary
ufwork array for u-velocity at the boundary
vfwork array for v-velocity at the boundary
pfwork array for pressure at the boundary