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

Functions/Subroutines

character(len=n) function char2str (chararray, n)
 
real(kind=realtype) function tsbeta (degreepolbeta, coefpolbeta, degreefourbeta, omegafourbeta, coscoeffourbeta, sincoeffourbeta, t)
 
real(kind=realtype) function tsbetadot (degreepolbeta, coefpolbeta, degreefourbeta, omegafourbeta, coscoeffourbeta, sincoeffourbeta, t)
 
real(kind=realtype) function tsmach (degreepolmach, coefpolmach, degreefourmach, omegafourmach, coscoeffourmach, sincoeffourmach, t)
 
real(kind=realtype) function tsmachdot (degreepolmach, coefpolmach, degreefourmach, omegafourmach, coscoeffourmach, sincoeffourmach, t)
 
real(kind=realtype) function tsalpha (degreepolalpha, coefpolalpha, degreefouralpha, omegafouralpha, coscoeffouralpha, sincoeffouralpha, t)
 
real(kind=realtype) function tsalphadot (degreepolalpha, coefpolalpha, degreefouralpha, omegafouralpha, coscoeffouralpha, sincoeffouralpha, t)
 
real(kind=realtype) function derivativerigidrotangle_d (degreepolrot, coefpolrot, degreefourrot, omegafourrot, coscoeffourrot, sincoeffourrot, t, derivativerigidrotangle)
 
real(kind=realtype) function derivativerigidrotangle (degreepolrot, coefpolrot, degreefourrot, omegafourrot, coscoeffourrot, sincoeffourrot, t)
 
real(kind=realtype) function mydim_d (x, xd, y, yd, mydim)
 
real(kind=realtype) function mydim (x, y)
 
logical function getcorrectfork ()
 
subroutine terminate (routinename, errormessage)
 
subroutine rotmatrixrigidbody (tnew, told, rotationmatrix, rotationpoint)
 
real(kind=realtype) function secondderivativerigidrotangle (degreepolrot, coefpolrot, degreefourrot, omegafourrot, coscoeffourrot, sincoeffourrot, t)
 
real(kind=realtype) function rigidrotangle (degreepolrot, coefpolrot, degreefourrot, omegafourrot, coscoeffourrot, sincoeffourrot, t)
 
subroutine setbcpointers (nn, spatialpointers)
 
subroutine computerootbendingmoment (cf, cm, bendingmoment)
 
subroutine computeleastsquaresregression (y, x, npts, m, b)
 
subroutine computetsderivatives (force, moment, coef0, dcdalpha, dcdalphadot, dcdq, dcdqdot)
 
subroutine getdirangle (freestreamaxis, liftaxis, liftindex, alpha, beta)
 
subroutine stabilityderivativedriver ()
 
subroutine setcoeftimeintegrator ()
 
real(kind=realtype) function mynorm2_d (x, xd, mynorm2)
 
real(kind=realtype) function mynorm2 (x)
 
logical function iswalltype (btype)
 
subroutine cross_prod_d (a, ad, b, bd, c, cd)
 
subroutine cross_prod (a, b, c)
 
subroutine siangle (angle, mult, trans)
 
subroutine sidensity (mass, len, mult, trans)
 
subroutine silen (len, mult, trans)
 
subroutine sipressure (mass, len, time, mult, trans)
 
subroutine sitemperature (temp, mult, trans)
 
subroutine siturb (mass, len, time, temp, turbname, mult, trans)
 
subroutine sivelocity (length, time, mult, trans)
 

Function/Subroutine Documentation

◆ char2str()

character(len=n) function utils_d::char2str ( character, dimension(maxcgnsnamelen), intent(in)  chararray,
integer(kind=inttype), intent(in)  n 
)

Definition at line 8 of file utils_d.f90.

◆ computeleastsquaresregression()

subroutine utils_d::computeleastsquaresregression ( real(kind=realtype), dimension(npts)  y,
real(kind=realtype), dimension(npts)  x,
integer(kind=inttype)  npts,
real(kind=realtype)  m,
real(kind=realtype)  b 
)

Definition at line 1009 of file utils_d.f90.

Referenced by computetsderivatives().

Here is the caller graph for this function:

◆ computerootbendingmoment()

subroutine utils_d::computerootbendingmoment ( real(kind=realtype), dimension(3), intent(in)  cf,
real(kind=realtype), dimension(3), intent(in)  cm,
real(kind=realtype), intent(out)  bendingmoment 
)

◆ computetsderivatives()

subroutine utils_d::computetsderivatives ( real(kind=realtype), dimension(3, ntimeintervalsspectral)  force,
real(kind=realtype), dimension(3, ntimeintervalsspectral)  moment,
real(kind=realtype), dimension(8)  coef0,
real(kind=realtype), dimension(8)  dcdalpha,
real(kind=realtype), dimension(8)  dcdalphadot,
real(kind=realtype), dimension(8)  dcdq,
real(kind=realtype), dimension(8)  dcdqdot 
)

◆ cross_prod()

subroutine utils_d::cross_prod ( real(kind=realtype), dimension(3), intent(in)  a,
real(kind=realtype), dimension(3), intent(in)  b,
real(kind=realtype), dimension(3), intent(out)  c 
)

◆ cross_prod_d()

subroutine utils_d::cross_prod_d ( real(kind=realtype), dimension(3), intent(in)  a,
real(kind=realtype), dimension(3), intent(in)  ad,
real(kind=realtype), dimension(3), intent(in)  b,
real(kind=realtype), dimension(3), intent(in)  bd,
real(kind=realtype), dimension(3), intent(out)  c,
real(kind=realtype), dimension(3), intent(out)  cd 
)

Definition at line 1520 of file utils_d.f90.

Referenced by zipperintegrations_d::flowintegrationzipper_d(), and zipperintegrations_d::wallintegrationzipper_d().

Here is the caller graph for this function:

◆ derivativerigidrotangle()

real(kind=realtype) function utils_d::derivativerigidrotangle ( integer(kind=inttype), intent(in)  degreepolrot,
real(kind=realtype), dimension(0:*), intent(in)  coefpolrot,
integer(kind=inttype), intent(in)  degreefourrot,
real(kind=realtype), intent(in)  omegafourrot,
real(kind=realtype), dimension(0:*), intent(in)  coscoeffourrot,
real(kind=realtype), dimension(*), intent(in)  sincoeffourrot,
real(kind=realtype), intent(in)  t 
)

◆ derivativerigidrotangle_d()

real(kind=realtype) function utils_d::derivativerigidrotangle_d ( integer(kind=inttype), intent(in)  degreepolrot,
real(kind=realtype), dimension(0:*), intent(in)  coefpolrot,
integer(kind=inttype), intent(in)  degreefourrot,
real(kind=realtype), intent(in)  omegafourrot,
real(kind=realtype), dimension(0:*), intent(in)  coscoeffourrot,
real(kind=realtype), dimension(*), intent(in)  sincoeffourrot,
real(kind=realtype), intent(in)  t,
real(kind=realtype)  derivativerigidrotangle 
)

Definition at line 349 of file utils_d.f90.

References derivativerigidrotangle(), inputphysics::equationmode, constants::steady, flowvarrefstate::timeref, flowvarrefstate::timerefd, and constants::zero.

Referenced by flowutils_d::derivativerotmatrixrigid_d().

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

◆ getcorrectfork()

logical function utils_d::getcorrectfork

◆ getdirangle()

subroutine utils_d::getdirangle ( real(kind=realtype), dimension(3), intent(in)  freestreamaxis,
real(kind=realtype), dimension(3), intent(in)  liftaxis,
integer(kind=inttype), intent(out)  liftindex,
real(kind=realtype), intent(out)  alpha,
real(kind=realtype), intent(out)  beta 
)

Definition at line 1196 of file utils_d.f90.

References terminate().

Referenced by solverutils_d::gridvelocitiesfinelevel_block(), solverutils_d::gridvelocitiesfinelevel_block_d(), solverutils_d::slipvelocitiesfinelevel_block(), and solverutils_d::slipvelocitiesfinelevel_block_d().

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

◆ iswalltype()

logical function utils_d::iswalltype ( integer(kind=inttype)  btype)

◆ mydim()

real(kind=realtype) function utils_d::mydim ( real(kind=realtype)  x,
real(kind=realtype)  y 
)

◆ mydim_d()

real(kind=realtype) function utils_d::mydim_d ( real(kind=realtype)  x,
real(kind=realtype)  xd,
real(kind=realtype)  y,
real(kind=realtype)  yd,
real(kind=realtype)  mydim 
)

Definition at line 463 of file utils_d.f90.

References mydim().

Referenced by bcroutines_d::bceulerwall_d(), fluxes_d::invisciddissfluxmatrix_d(), and fluxes_d::invisciddissfluxscalar_d().

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

◆ mynorm2()

real(kind=realtype) function utils_d::mynorm2 ( real(kind=realtype), dimension(3), intent(in)  x)

◆ mynorm2_d()

real(kind=realtype) function utils_d::mynorm2_d ( real(kind=realtype), dimension(3), intent(in)  x,
real(kind=realtype), dimension(3), intent(in)  xd,
real(kind=realtype)  mynorm2 
)

Definition at line 1475 of file utils_d.f90.

References mynorm2().

Referenced by zipperintegrations_d::wallintegrationzipper_d().

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

◆ rigidrotangle()

real(kind=realtype) function utils_d::rigidrotangle ( integer(kind=inttype), intent(in)  degreepolrot,
real(kind=realtype), dimension(0:*), intent(in)  coefpolrot,
integer(kind=inttype), intent(in)  degreefourrot,
real(kind=realtype), intent(in)  omegafourrot,
real(kind=realtype), dimension(0:*), intent(in)  coscoeffourrot,
real(kind=realtype), dimension(*), intent(in)  sincoeffourrot,
real(kind=realtype), intent(in)  t 
)

Definition at line 671 of file utils_d.f90.

References inputphysics::equationmode, constants::steady, and constants::zero.

Referenced by flowutils_d::derivativerotmatrixrigid(), flowutils_d::derivativerotmatrixrigid_d(), and rotmatrixrigidbody().

Here is the caller graph for this function:

◆ rotmatrixrigidbody()

subroutine utils_d::rotmatrixrigidbody ( real(kind=realtype), intent(in)  tnew,
real(kind=realtype), intent(in)  told,
real(kind=realtype), dimension(3, 3), intent(out)  rotationmatrix,
real(kind=realtype), dimension(3), intent(out)  rotationpoint 
)

◆ secondderivativerigidrotangle()

real(kind=realtype) function utils_d::secondderivativerigidrotangle ( integer(kind=inttype), intent(in)  degreepolrot,
real(kind=realtype), dimension(0:*), intent(in)  coefpolrot,
integer(kind=inttype), intent(in)  degreefourrot,
real(kind=realtype), intent(in)  omegafourrot,
real(kind=realtype), dimension(0:*), intent(in)  coscoeffourrot,
real(kind=realtype), dimension(*), intent(in)  sincoeffourrot,
real(kind=realtype), intent(in)  t 
)

Definition at line 617 of file utils_d.f90.

References inputphysics::equationmode, constants::steady, flowvarrefstate::timeref, and constants::zero.

Referenced by computetsderivatives().

Here is the caller graph for this function:

◆ setbcpointers()

subroutine utils_d::setbcpointers ( integer(kind=inttype), intent(in)  nn,
logical, intent(in)  spatialpointers 
)

◆ setcoeftimeintegrator()

subroutine utils_d::setcoeftimeintegrator

◆ siangle()

subroutine utils_d::siangle ( integer, intent(in)  angle,
real(kind=realtype), intent(out)  mult,
real(kind=realtype), intent(out)  trans 
)

Definition at line 1549 of file utils_d.f90.

References constants::one, constants::pi, terminate(), and constants::zero.

Referenced by bcdata_d::bcdatasubsonicinflow(), bcdata_d::bcdatasubsonicinflow_d(), totalsubsonicinlet(), and totalsubsonicinlet_d().

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

◆ sidensity()

subroutine utils_d::sidensity ( integer, intent(in)  mass,
integer, intent(in)  len,
real(kind=realtype), intent(out)  mult,
real(kind=realtype), intent(out)  trans 
)

◆ silen()

subroutine utils_d::silen ( integer, intent(in)  len,
real(kind=realtype), intent(out)  mult,
real(kind=realtype), intent(out)  trans 
)

Definition at line 1600 of file utils_d.f90.

References constants::one, terminate(), and constants::zero.

Here is the call graph for this function:

◆ sipressure()

subroutine utils_d::sipressure ( integer, intent(in)  mass,
integer, intent(in)  len,
integer, intent(in)  time,
real(kind=realtype), intent(out)  mult,
real(kind=realtype), intent(out)  trans 
)

◆ sitemperature()

subroutine utils_d::sitemperature ( integer, intent(in)  temp,
real(kind=realtype), intent(out)  mult,
real(kind=realtype), intent(out)  trans 
)

◆ siturb()

subroutine utils_d::siturb ( integer, intent(in)  mass,
integer, intent(in)  len,
integer, intent(in)  time,
integer, intent(in)  temp,
character(len=*), intent(in)  turbname,
real(kind=realtype), intent(out)  mult,
real(kind=realtype), intent(out)  trans 
)

Definition at line 1709 of file utils_d.f90.

References constants::one, terminate(), and constants::zero.

Referenced by bcdata_d::setbcvarturb(), and bcdata_d::setbcvarturb_d().

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

◆ sivelocity()

subroutine utils_d::sivelocity ( integer, intent(in)  length,
integer, intent(in)  time,
real(kind=realtype), intent(out)  mult,
real(kind=realtype), intent(out)  trans 
)

Definition at line 1738 of file utils_d.f90.

References constants::one, terminate(), and constants::zero.

Referenced by bcdata_d::bcdatasubsonicinflow(), bcdata_d::bcdatasubsonicinflow_d(), bcdata_d::bcdatasupersonicinflow(), bcdata_d::bcdatasupersonicinflow_d(), prescribedsupersonicinlet(), and prescribedsupersonicinlet_d().

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

◆ stabilityderivativedriver()

subroutine utils_d::stabilityderivativedriver

Definition at line 1327 of file utils_d.f90.

◆ terminate()

subroutine utils_d::terminate ( character(len=*), intent(in)  routinename,
character(len=*), intent(in)  errormessage 
)

◆ tsalpha()

real(kind=realtype) function utils_d::tsalpha ( integer(kind=inttype), intent(in)  degreepolalpha,
real(kind=realtype), dimension(0:*), intent(in)  coefpolalpha,
integer(kind=inttype), intent(in)  degreefouralpha,
real(kind=realtype), intent(in)  omegafouralpha,
real(kind=realtype), dimension(0:*), intent(in)  coscoeffouralpha,
real(kind=realtype), dimension(*), intent(in)  sincoeffouralpha,
real(kind=realtype), intent(in)  t 
)

◆ tsalphadot()

real(kind=realtype) function utils_d::tsalphadot ( integer(kind=inttype), intent(in)  degreepolalpha,
real(kind=realtype), dimension(0:*), intent(in)  coefpolalpha,
integer(kind=inttype), intent(in)  degreefouralpha,
real(kind=realtype), intent(in)  omegafouralpha,
real(kind=realtype), dimension(0:*), intent(in)  coscoeffouralpha,
real(kind=realtype), dimension(*), intent(in)  sincoeffouralpha,
real(kind=realtype), intent(in)  t 
)

Definition at line 294 of file utils_d.f90.

References inputphysics::equationmode, constants::steady, and constants::zero.

Referenced by computetsderivatives().

Here is the caller graph for this function:

◆ tsbeta()

real(kind=realtype) function utils_d::tsbeta ( integer(kind=inttype), intent(in)  degreepolbeta,
real(kind=realtype), dimension(0:*), intent(in)  coefpolbeta,
integer(kind=inttype), intent(in)  degreefourbeta,
real(kind=realtype), intent(in)  omegafourbeta,
real(kind=realtype), dimension(0:*), intent(in)  coscoeffourbeta,
real(kind=realtype), dimension(*), intent(in)  sincoeffourbeta,
real(kind=realtype), intent(in)  t 
)

◆ tsbetadot()

real(kind=realtype) function utils_d::tsbetadot ( integer(kind=inttype), intent(in)  degreepolbeta,
real(kind=realtype), dimension(0:*), intent(in)  coefpolbeta,
integer(kind=inttype), intent(in)  degreefourbeta,
real(kind=realtype), intent(in)  omegafourbeta,
real(kind=realtype), dimension(0:*), intent(in)  coscoeffourbeta,
real(kind=realtype), dimension(*), intent(in)  sincoeffourbeta,
real(kind=realtype), intent(in)  t 
)

Definition at line 82 of file utils_d.f90.

References inputphysics::equationmode, constants::steady, and constants::zero.

◆ tsmach()

real(kind=realtype) function utils_d::tsmach ( integer(kind=inttype), intent(in)  degreepolmach,
real(kind=realtype), dimension(0:*), intent(in)  coefpolmach,
integer(kind=inttype), intent(in)  degreefourmach,
real(kind=realtype), intent(in)  omegafourmach,
real(kind=realtype), dimension(0:*), intent(in)  coscoeffourmach,
real(kind=realtype), dimension(*), intent(in)  sincoeffourmach,
real(kind=realtype), intent(in)  t 
)

◆ tsmachdot()

real(kind=realtype) function utils_d::tsmachdot ( integer(kind=inttype), intent(in)  degreepolmach,
real(kind=realtype), dimension(0:*), intent(in)  coefpolmach,
integer(kind=inttype), intent(in)  degreefourmach,
real(kind=realtype), intent(in)  omegafourmach,
real(kind=realtype), dimension(0:*), intent(in)  coscoeffourmach,
real(kind=realtype), dimension(*), intent(in)  sincoeffourmach,
real(kind=realtype), intent(in)  t 
)

Definition at line 188 of file utils_d.f90.

References inputphysics::equationmode, constants::steady, and constants::zero.