ADflow  v1.0
ADflow is a finite volume RANS solver tailored for gradient-based aerodynamic design optimization.
Functions/Subroutines
utils_fast_b 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 (degreepolrot, coefpolrot, degreefourrot, omegafourrot, coscoeffourrot, sincoeffourrot, t)
 
subroutine mydim_fast_b (x, xd, y, yd, mydimd)
 
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 (x)
 
logical function iswalltype (btype)
 
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_fast_b::char2str ( character, dimension(maxcgnsnamelen), intent(in)  chararray,
integer(kind=inttype), intent(in)  n 
)

Definition at line 8 of file utils_fast_b.f90.

◆ computeleastsquaresregression()

subroutine utils_fast_b::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 944 of file utils_fast_b.f90.

Referenced by computetsderivatives().

Here is the caller graph for this function:

◆ computerootbendingmoment()

subroutine utils_fast_b::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_fast_b::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_fast_b::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 
)

Definition at line 1422 of file utils_fast_b.f90.

◆ derivativerigidrotangle()

real(kind=realtype) function utils_fast_b::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 
)

Definition at line 346 of file utils_fast_b.f90.

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

Referenced by computetsderivatives(), and flowutils_fast_b::derivativerotmatrixrigid().

Here is the caller graph for this function:

◆ getcorrectfork()

logical function utils_fast_b::getcorrectfork

◆ getdirangle()

subroutine utils_fast_b::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 1129 of file utils_fast_b.f90.

References terminate().

Referenced by solverutils_fast_b::gridvelocitiesfinelevel_block(), and solverutils_fast_b::slipvelocitiesfinelevel_block().

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

◆ iswalltype()

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

◆ mydim()

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

◆ mydim_fast_b()

subroutine utils_fast_b::mydim_fast_b ( real(kind=realtype)  x,
real(kind=realtype)  xd,
real(kind=realtype)  y,
real(kind=realtype)  yd,
real(kind=realtype)  mydimd 
)

Definition at line 403 of file utils_fast_b.f90.

References mydim().

Referenced by fluxes_fast_b::invisciddissfluxmatrix_fast_b(), and fluxes_fast_b::invisciddissfluxscalar_fast_b().

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

◆ mynorm2()

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

Definition at line 1403 of file utils_fast_b.f90.

Referenced by surfaceintegrations_fast_b::flowintegrationface().

Here is the caller graph for this function:

◆ rigidrotangle()

real(kind=realtype) function utils_fast_b::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 610 of file utils_fast_b.f90.

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

Referenced by flowutils_fast_b::derivativerotmatrixrigid(), and rotmatrixrigidbody().

Here is the caller graph for this function:

◆ rotmatrixrigidbody()

subroutine utils_fast_b::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_fast_b::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 556 of file utils_fast_b.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_fast_b::setbcpointers ( integer(kind=inttype), intent(in)  nn,
logical, intent(in)  spatialpointers 
)

Definition at line 664 of file utils_fast_b.f90.

References blockpointers::addgridvelocities, blockpointers::bcfaceid, inputphysics::cpmodel, blockpointers::d2wall, bcpointers::dd2wall, inputphysics::equations, blockpointers::gamma, bcpointers::gamma0, bcpointers::gamma1, bcpointers::gamma2, bcpointers::gamma3, bcpointers::gcp, blockpointers::globalcell, blockpointers::ib, blockpointers::ie, bcpointers::iend, blockpointers::il, constants::imax, constants::imin, bcpointers::isize, bcpointers::istart, blockpointers::jb, blockpointers::je, bcpointers::jend, blockpointers::jl, constants::jmax, constants::jmin, bcpointers::jsize, bcpointers::jstart, blockpointers::kb, blockpointers::ke, blockpointers::kl, constants::kmax, constants::kmin, blockpointers::nx, blockpointers::ny, blockpointers::nz, blockpointers::p, bcpointers::pp0, bcpointers::pp1, bcpointers::pp2, bcpointers::pp3, constants::ransequations, blockpointers::rev, bcpointers::rev0, bcpointers::rev1, bcpointers::rev2, bcpointers::rev3, blockpointers::rlv, bcpointers::rlv0, bcpointers::rlv1, bcpointers::rlv2, bcpointers::rlv3, blockpointers::s, bcpointers::sface, blockpointers::sfacei, blockpointers::sfacej, blockpointers::sfacek, blockpointers::si, blockpointers::sj, blockpointers::sk, bcpointers::ss, bcpointers::ssi, bcpointers::ssj, bcpointers::ssk, blockpointers::w, bcpointers::ww0, bcpointers::ww1, bcpointers::ww2, bcpointers::ww3, blockpointers::x, and bcpointers::xx.

Referenced by bcroutines_fast_b::applyallbc_block().

Here is the caller graph for this function:

◆ setcoeftimeintegrator()

subroutine utils_fast_b::setcoeftimeintegrator

◆ siangle()

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

Definition at line 1434 of file utils_fast_b.f90.

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

Here is the call graph for this function:

◆ sidensity()

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

Definition at line 1458 of file utils_fast_b.f90.

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

Here is the call graph for this function:

◆ silen()

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

Definition at line 1485 of file utils_fast_b.f90.

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

Here is the call graph for this function:

◆ sipressure()

subroutine utils_fast_b::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 
)

Definition at line 1522 of file utils_fast_b.f90.

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

Here is the call graph for this function:

◆ sitemperature()

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

Definition at line 1550 of file utils_fast_b.f90.

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

Here is the call graph for this function:

◆ siturb()

subroutine utils_fast_b::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 1594 of file utils_fast_b.f90.

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

Here is the call graph for this function:

◆ sivelocity()

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

Definition at line 1623 of file utils_fast_b.f90.

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

Here is the call graph for this function:

◆ stabilityderivativedriver()

subroutine utils_fast_b::stabilityderivativedriver

Definition at line 1258 of file utils_fast_b.f90.

◆ terminate()

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

◆ tsalpha()

real(kind=realtype) function utils_fast_b::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_fast_b::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_fast_b.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_fast_b::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_fast_b::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_fast_b.f90.

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

◆ tsmach()

real(kind=realtype) function utils_fast_b::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_fast_b::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_fast_b.f90.

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