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

Functions/Subroutines

subroutine referencestate
 
subroutine infchangecorrection (oldWinf, correctionTol, correctionType)
 
subroutine updatebcdataalllevels
 
subroutine initflow
 
subroutine allocmemflovarpart1 (sps, level)
 
subroutine allocmemflovarpart2 (sps, level)
 
subroutine allocrestartfiles (nFiles)
 
subroutine copyspectralsolution
 
subroutine determinesolfilenames
 
subroutine setsolfilenames
 
subroutine checksolfilenames
 
subroutine initdepvarandhalos (halosRead)
 
subroutine initflowrestart
 
subroutine initflowfield
 
subroutine initializehalos (halosRead)
 
subroutine interpolatespectralsolution
 
subroutine releaseextramembcs
 
subroutine setiovar
 
subroutine setpressureandcomputeenergy (halosRead)
 
subroutine setrestartfiles (fileName, i)
 
subroutine setuniformflow
 
subroutine velmagnanddirectionsubface (vmag, dir, BCData, mm)
 
subroutine timespectralcoef (coefSpectral, matrixCoefSpectral, diagMatCoefSpectral)
 
subroutine timespectralmatrices
 
subroutine readrestartfile ()
 
subroutine getsortedzonenumbers
 
subroutine getsortedvarnumbers
 

Function/Subroutine Documentation

◆ allocmemflovarpart1()

subroutine initializeflow::allocmemflovarpart1 ( integer(kind=inttype), intent(in)  sps,
integer(kind=inttype), intent(in)  level 
)

◆ allocmemflovarpart2()

subroutine initializeflow::allocmemflovarpart2 ( integer(kind=inttype), intent(in)  sps,
integer(kind=inttype), intent(in)  level 
)

◆ allocrestartfiles()

subroutine initializeflow::allocrestartfiles ( integer(kind=inttype)  nFiles)

Definition at line 767 of file initializeFlow.F90.

References inputio::restartfiles, and utils::terminate().

Here is the call graph for this function:

◆ checksolfilenames()

subroutine initializeflow::checksolfilenames

Definition at line 1197 of file initializeFlow.F90.

References communication::myid, variablereading::nsolsread, variablereading::solfiles, commonformats::strings, and utils::terminate().

Referenced by determinesolfilenames().

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

◆ copyspectralsolution()

subroutine initializeflow::copyspectralsolution

◆ determinesolfilenames()

subroutine initializeflow::determinesolfilenames

◆ getsortedvarnumbers()

subroutine initializeflow::getsortedvarnumbers

◆ getsortedzonenumbers()

subroutine initializeflow::getsortedzonenumbers

Definition at line 3230 of file initializeFlow.F90.

References sorting::bsearchstrings(), variablereading::cgnsbase, variablereading::cgnsind, cgnsgrid::cgnsndom, sorting::qsortstrings(), commonformats::strings, utils::terminate(), variablereading::zonenames, and variablereading::zonenumbers.

Referenced by readrestartfile().

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

◆ infchangecorrection()

subroutine initializeflow::infchangecorrection ( real(kind=realtype), dimension(nwf), intent(in)  oldWinf,
real(kind=realtype), intent(in)  correctionTol,
character*(*), intent(in)  correctionType 
)

◆ initdepvarandhalos()

subroutine initializeflow::initdepvarandhalos ( logical, intent(in)  halosRead)

◆ initflow()

subroutine initializeflow::initflow

◆ initflowfield()

subroutine initializeflow::initflowfield

◆ initflowrestart()

subroutine initializeflow::initflowrestart

◆ initializehalos()

subroutine initializeflow::initializehalos ( logical, intent(in)  halosRead)

◆ interpolatespectralsolution()

subroutine initializeflow::interpolatespectralsolution

◆ readrestartfile()

subroutine initializeflow::readrestartfile

Definition at line 2803 of file initializeFlow.F90.

References communication::adflow_comm_world, sorting::bsearchstrings(), variablereading::buffer, variablereading::buffervertex, variablereading::cgnsbase, cgnsgrid::cgnsdoms, variablereading::cgnsind, cgnsgrid::cgnsndom, variablereading::cgnssol, variablereading::cgnszone, inputphysics::equationmode, getsortedvarnumbers(), getsortedzonenumbers(), variablereading::halosread, blockpointers::ibegor, blockpointers::il, blockpointers::jbegor, blockpointers::jl, blockpointers::kbegor, blockpointers::kl, variablereading::location, communication::myid, blockpointers::nbkglobal, variablereading::nsolsread, inputtimespectral::ntimeintervalsspectral, monitor::ntimestepsrestart, blockpointers::nx, blockpointers::ny, blockpointers::nz, variablereading::rangemax, variablereading::rangemin, variablereading::readdensity(), variablereading::readenergy(), variablereading::readpressure(), variablereading::readturbvar(), variablereading::readxmomentum(), variablereading::readxvelocity(), variablereading::readymomentum(), variablereading::readyvelocity(), variablereading::readzmomentum(), variablereading::readzvelocity(), variablereading::scalefactors(), utils::setpointers(), variablereading::solfiles, variablereading::solid, commonformats::stringint1, commonformats::strings, utils::terminate(), constants::timespectral, monitor::timeunsteadyrestart, variablereading::varnames, variablereading::vartypes, variablereading::zonenames, and variablereading::zonenumbers.

Referenced by initflowrestart().

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

◆ referencestate()

subroutine initializeflow::referencestate

Definition at line 10 of file initializeFlow.F90.

References flowutils::computegamma(), inputphysics::eddyvisinfratio, inputphysics::equations, flowutils::etot(), flowvarrefstate::gammainf, flowvarrefstate::href, constants::irho, constants::irhoe, constants::itu1, constants::itu2, constants::itu3, constants::itu4, constants::ivx, constants::ivy, constants::ivz, constants::komegamodified, constants::komegawilcox, flowvarrefstate::kpresent, constants::ktau, inputphysics::mach, inputphysics::machcoef, constants::mentersst, flowvarrefstate::muinf, flowvarrefstate::muinfdim, flowvarrefstate::muref, inputphysics::musuthdim, flowvarrefstate::nw, flowvarrefstate::nwf, flowvarrefstate::pinf, flowvarrefstate::pinfcorr, flowvarrefstate::pinfdim, flowvarrefstate::pref, flowvarrefstate::rgas, inputphysics::rgasdim, flowvarrefstate::rhoinf, flowvarrefstate::rhoinfdim, flowvarrefstate::rhoref, turbutils::sanuknowneddyratio(), constants::spalartallmaras, constants::spalartallmarasedwards, inputphysics::ssuthdim, constants::third, flowvarrefstate::timeref, flowvarrefstate::tinfdim, flowvarrefstate::tref, inputphysics::tsuthdim, inputphysics::turbintensityinf, inputphysics::turbmodel, constants::two, flowvarrefstate::uinf, flowvarrefstate::uref, constants::v2f, inputphysics::veldirfreestream, flowvarrefstate::winf, and constants::zero.

Referenced by blockette::blocketteres(), infchangecorrection(), masterroutines::master(), and updatebcdataalllevels().

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

◆ releaseextramembcs()

subroutine initializeflow::releaseextramembcs

Definition at line 1828 of file initializeFlow.F90.

References blockpointers::bctype, constants::massflow, blockpointers::nbocos, inputtimespectral::ntimeintervalsspectral, utils::setpointers(), constants::subsonicinflow, utils::terminate(), and constants::totalconditions.

Referenced by initflow().

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

◆ setiovar()

subroutine initializeflow::setiovar

◆ setpressureandcomputeenergy()

subroutine initializeflow::setpressureandcomputeenergy ( logical, intent(in)  halosRead)

◆ setrestartfiles()

subroutine initializeflow::setrestartfiles ( character(len=*), intent(inout)  fileName,
integer(kind=inttype)  i 
)

Definition at line 2125 of file initializeFlow.F90.

References inputio::restartfiles.

◆ setsolfilenames()

subroutine initializeflow::setsolfilenames

Definition at line 1166 of file initializeFlow.F90.

References variablereading::nsolsread, inputio::restartfiles, variablereading::solfiles, and utils::terminate().

Referenced by determinesolfilenames().

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

◆ setuniformflow()

subroutine initializeflow::setuniformflow

◆ timespectralcoef()

subroutine initializeflow::timespectralcoef ( real(kind=realtype), dimension(nsections, ntimeintervalsspectral - 1), intent(out)  coefSpectral,
real(kind=realtype), dimension(nsections, ntimeintervalsspectral - 1, 3, 3), intent(out)  matrixCoefSpectral,
real(kind=realtype), dimension(nsections, 3, 3), intent(out)  diagMatCoefSpectral 
)

◆ timespectralmatrices()

subroutine initializeflow::timespectralmatrices

◆ updatebcdataalllevels()

subroutine initializeflow::updatebcdataalllevels

Definition at line 319 of file initializeFlow.F90.

References iteration::groundlevel, referencestate(), bcdata::setbcdatacoarsegrid(), and bcdata::setbcdatafinegrid().

Here is the call graph for this function:

◆ velmagnanddirectionsubface()

subroutine initializeflow::velmagnanddirectionsubface ( real(kind=realtype), intent(out)  vmag,
real(kind=realtype), dimension(3), intent(inout)  dir,
type(bcdatatype), dimension(:), pointer  BCData,
integer(kind=inttype), intent(in)  mm 
)

Definition at line 2292 of file initializeFlow.F90.

References constants::eps, and constants::one.

Referenced by setuniformflow().

Here is the caller graph for this function: