ADflow  v1.0
ADflow is a finite volume RANS solver tailored for gradient-based aerodynamic design optimization.
Functions/Subroutines
flowutils Module Reference

Functions/Subroutines

subroutine computettot (rho, u, v, w, p, Ttot)
 
subroutine computegamma (T, gamma, mm)
 
subroutine computeptot (rho, u, v, w, p, ptot)
 
subroutine computespeedofsoundsquared
 
subroutine computeetotblock (iStart, iEnd, jStart, jEnd, kStart, kEnd, correctForK)
 
subroutine etot (rho, u, v, w, p, k, etotal, correctForK)
 
subroutine eint (rho, p, k, einternal, correctForK)
 
subroutine computepressuresimple (includeHalos)
 
subroutine computepressure (iBeg, iEnd, jBeg, jEnd, kBeg, kEnd, pointerOffset)
 
subroutine computelamviscosity (includeHalos)
 
subroutine adjustinflowangle ()
 
subroutine derivativerotmatrixrigid (rotationMatrix, rotationPoint, t)
 
subroutine getdirvector (refDirection, alpha, beta, windDirection, liftIndex)
 
subroutine vectorrotation (xp, yp, zp, iaxis, angle, x, y, z)
 
subroutine allnodalgradients
 
subroutine fixallnodalgradientsfromad
 
subroutine computeetotcellcpfit (i, j, k, scale, correctForK)
 
subroutine updategamma
 

Function/Subroutine Documentation

◆ adjustinflowangle()

subroutine flowutils::adjustinflowangle

◆ allnodalgradients()

subroutine flowutils::allnodalgradients

◆ computeetotblock()

subroutine flowutils::computeetotblock ( integer(kind=inttype), intent(in)  iStart,
integer(kind=inttype), intent(in)  iEnd,
integer(kind=inttype), intent(in)  jStart,
integer(kind=inttype), intent(in)  jEnd,
integer(kind=inttype), intent(in)  kStart,
integer(kind=inttype), intent(in)  kEnd,
logical, intent(in)  correctForK 
)

◆ computeetotcellcpfit()

subroutine flowutils::computeetotcellcpfit ( integer(kind=inttype), intent(in)  i,
integer(kind=inttype), intent(in)  j,
integer(kind=inttype), intent(in)  k,
real(kind=realtype), intent(in)  scale,
logical, intent(in)  correctForK 
)

◆ computegamma()

subroutine flowutils::computegamma ( real(kind=realtype), dimension(mm), intent(in)  T,
real(kind=realtype), dimension(mm), intent(out)  gamma,
integer(kind=inttype), intent(in)  mm 
)

◆ computelamviscosity()

subroutine flowutils::computelamviscosity ( logical, intent(in)  includeHalos)

◆ computepressure()

subroutine flowutils::computepressure ( integer(kind=inttype), intent(in)  iBeg,
integer(kind=inttype), intent(in)  iEnd,
integer(kind=inttype), intent(in)  jBeg,
integer(kind=inttype), intent(in)  jEnd,
integer(kind=inttype), intent(in)  kBeg,
integer(kind=inttype), intent(in)  kEnd,
integer(kind=inttype), intent(in)  pointerOffset 
)

◆ computepressuresimple()

subroutine flowutils::computepressuresimple ( logical, intent(in)  includeHalos)

◆ computeptot()

subroutine flowutils::computeptot ( real(kind=realtype), intent(in)  rho,
real(kind=realtype), intent(in)  u,
real(kind=realtype), intent(in)  v,
real(kind=realtype), intent(in)  w,
real(kind=realtype), intent(in)  p,
real(kind=realtype), intent(out)  ptot 
)

◆ computespeedofsoundsquared()

subroutine flowutils::computespeedofsoundsquared

◆ computettot()

subroutine flowutils::computettot ( real(kind=realtype), intent(in)  rho,
real(kind=realtype), intent(in)  u,
real(kind=realtype), intent(in)  v,
real(kind=realtype), intent(in)  w,
real(kind=realtype), intent(in)  p,
real(kind=realtype), intent(out)  Ttot 
)

◆ derivativerotmatrixrigid()

subroutine flowutils::derivativerotmatrixrigid ( real(kind=realtype), dimension(3, 3), intent(out)  rotationMatrix,
real(kind=realtype), dimension(3), intent(out)  rotationPoint,
real(kind=realtype), intent(in)  t 
)

◆ eint()

subroutine flowutils::eint ( real(kind=realtype), intent(in)  rho,
real(kind=realtype), intent(in)  p,
real(kind=realtype), intent(in)  k,
real(kind=realtype), intent(out)  einternal,
logical, intent(in)  correctForK 
)

◆ etot()

subroutine flowutils::etot ( real(kind=realtype), intent(in)  rho,
real(kind=realtype), intent(in)  u,
real(kind=realtype), intent(in)  v,
real(kind=realtype), intent(in)  w,
real(kind=realtype), intent(in)  p,
real(kind=realtype), intent(in)  k,
real(kind=realtype), intent(out)  etotal,
logical, intent(in)  correctForK 
)

Definition at line 674 of file flowUtils.F90.

References eint(), and constants::half.

Referenced by blockette::inviscidupwindflux(), fluxes::inviscidupwindflux(), variablereading::readenergy(), initializeflow::referencestate(), and riemannflux().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ fixallnodalgradientsfromad()

subroutine flowutils::fixallnodalgradientsfromad

◆ getdirvector()

subroutine flowutils::getdirvector ( real(kind=realtype), dimension(3), intent(in)  refDirection,
real(kind=realtype)  alpha,
real(kind=realtype)  beta,
real(kind=realtype), dimension(3), intent(out)  windDirection,
integer(kind=inttype)  liftIndex 
)

Definition at line 1531 of file flowUtils.F90.

References utils::terminate(), and vectorrotation().

Referenced by adjustinflowangle(), surfaceintegrations::getcostfunctions(), solverutils::gridvelocitiesfinelevel_block(), solverutils::gridvelocitiesfinelevelpart1_block(), and solverutils::slipvelocitiesfinelevel_block().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updategamma()

subroutine flowutils::updategamma

Definition at line 2217 of file flowUtils.F90.

References blockpointers::gamma, inputphysics::gammaconstant, inputtimespectral::ntimeintervalsspectral, and utils::setpointers().

Here is the call graph for this function:

◆ vectorrotation()

subroutine flowutils::vectorrotation ( real(kind=realtype), intent(out)  xp,
real(kind=realtype), intent(out)  yp,
real(kind=realtype), intent(out)  zp,
integer(kind=inttype), intent(in)  iaxis,
real(kind=realtype), intent(in)  angle,
real(kind=realtype), intent(in)  x,
real(kind=realtype), intent(in)  y,
real(kind=realtype), intent(in)  z 
)

Definition at line 1623 of file flowUtils.F90.

Referenced by getdirvector().

Here is the caller graph for this function: