ADflow  v1.0
ADflow is a finite volume RANS solver tailored for gradient-based aerodynamic design optimization.
Modules | Functions/Subroutines | Variables
NKSolvers.F90 File Reference
#include <petsc/finclude/petsc.h>
Include dependency graph for NKSolvers.F90:

Go to the source code of this file.

Modules

module  nksolver
 
module  anksolver
 

Functions/Subroutines

subroutine nksolver::setupnksolver
 
subroutine nksolver::linearresidualmonitor (myKSP, n, rnorm, dummy, ierr)
 
subroutine nksolver::nkmatmult (A, vecX, vecY, ierr)
 
subroutine nksolver::getfreestreamresidual (rhoRes, totalRRes)
 
subroutine nksolver::getcurrentresidual (rhoRes, totalRRes)
 
subroutine nksolver::formjacobiannk
 
subroutine nksolver::formfunction_mf (ctx, wVec, rVec, ierr)
 
subroutine nksolver::destroynksolver
 
subroutine nksolver::nkstep (firstCall)
 
subroutine nksolver::lscubic (x, f, g, y, w, fnorm, ynorm, gnorm, nfevals, flag, lambda)
 
subroutine nksolver::lsnone (x, f, g, y, w, nfevals, flag, step)
 
subroutine nksolver::lsnm (x, f, g, y, w, fnorm, ynorm, gnorm, nfevals, flag, step)
 
subroutine nksolver::computeresidualnk (useUpdateIntermed)
 
subroutine nksolver::applypc (in_vec, out_vec, ndof)
 
subroutine nksolver::applyadjointpc (in_vec, out_vec, ndof)
 
subroutine nksolver::setwvec (wVec)
 
subroutine nksolver::setrvec (rVec, flowRes, turbRes, totalRes)
 
subroutine nksolver::setw (wVec)
 
subroutine nksolver::getstates (states, ndimw)
 
subroutine nksolver::getres (res, ndimw)
 
subroutine nksolver::setstates (states, ndimw)
 
subroutine nksolver::getinfosize (iSize)
 
subroutine nksolver::setinfo (info, iSize)
 
subroutine nksolver::getinfo (info, iSize)
 
subroutine nksolver::getewtol (norm, old_norm, rtol_last, rtol)
 
subroutine anksolver::setupanksolver
 
subroutine anksolver::formjacobianank
 
subroutine anksolver::computetimestepmat (usePC)
 
subroutine anksolver::computetimestepblock (i, j, k, timeStepBlock)
 
subroutine anksolver::formjacobianankturb
 
subroutine setblock ()
 
subroutine anksolver::formfunction_mf (ctx, inVec, rVec, ierr)
 
subroutine anksolver::formfunction_mf_turb (ctx, inVec, rVec, ierr)
 
subroutine anksolver::computeunsteadyresank (omega)
 
subroutine anksolver::computeunsteadyresankturb (omega)
 
subroutine anksolver::destroyanksolver
 
subroutine anksolver::setwvecank (wVec, lStart, lEnd)
 
subroutine anksolver::setrvecank (rVec)
 
subroutine anksolver::setrvecankturb (rVecTurb)
 
subroutine anksolver::setwank (wVec, lStart, lEnd)
 
subroutine anksolver::physicalitycheckank (lambdaP)
 
subroutine anksolver::physicalitycheckankturb (lambdaP)
 
subroutine anksolver::ankturbsolveksp
 
subroutine anksolver::ankstep (firstCall)
 

Variables

logical nksolver::usenksolver
 
integer(kind=inttype) nksolver::nk_jacobianlag
 
integer(kind=inttype) nksolver::nk_subspace
 
integer(kind=inttype) nksolver::nk_asmoverlap
 
integer(kind=inttype) nksolver::nk_asmoverlapcoarse
 
integer(kind=inttype) nksolver::nk_ilufill
 
integer(kind=inttype) nksolver::nk_ilufillcoarse
 
integer(kind=inttype) nksolver::nk_innerpreconits
 
integer(kind=inttype) nksolver::nk_innerpreconitscoarse
 
integer(kind=inttype) nksolver::nk_outerpreconits
 
integer(kind=inttype) nksolver::nk_amglevels
 
integer(kind=inttype) nksolver::nk_amgnsmooth
 
integer(kind=inttype) nksolver::nk_ls
 
character(len=maxstringlen) nksolver::nk_precondtype
 
logical nksolver::nk_useew
 
logical nksolver::nk_adpc
 
logical nksolver::nk_viscpc
 
real(kind=realtype) nksolver::nk_cfl0
 
real(kind=realtype) nksolver::nk_switchtol
 
real(kind=realtype) nksolver::nk_rtolinit
 
real(kind=realtype) nksolver::nk_divtol = 10
 
real(kind=realtype) nksolver::nk_fixedstep
 
logical nksolver::nk_solversetup = .False.
 
integer(kind=inttype) nksolver::nk_iter
 
integer(kind=inttype) nksolver::ew_version
 
real(kind=realtype) nksolver::ew_rtol_0
 
real(kind=realtype) nksolver::ew_rtol_max
 
real(kind=realtype) nksolver::ew_gamma
 
real(kind=realtype) nksolver::ew_alpha
 
real(kind=realtype) nksolver::ew_alpha2
 
real(kind=realtype) nksolver::ew_threshold
 
real(kind=alwaysrealtype) nksolver::rtollast
 
real(kind=alwaysrealtype) nksolver::oldnorm
 
logical nksolver::freestreamresset = .False.
 
real(kind=realtype) nksolver::nk_cfl
 
real(kind=realtype), dimension(:), allocatable nksolver::nklsfuncevals
 
integer(kind=inttype) nksolver::mmax = 5
 
integer(kind=inttype) nksolver::iter_k
 
integer(kind=inttype) nksolver::iter_m
 
integer(kind=inttype) nksolver::applypcsubspacesize
 
logical anksolver::useanksolver
 
integer(kind=inttype) anksolver::ank_jacobianlag
 
integer(kind=inttype) anksolver::ank_subspace
 
integer(kind=inttype) anksolver::ank_maxiter
 
integer(kind=inttype) anksolver::ank_asmoverlap
 
integer(kind=inttype) anksolver::ank_asmoverlapcoarse
 
integer(kind=inttype) anksolver::ank_ilufill
 
integer(kind=inttype) anksolver::ank_ilufillcoarse
 
integer(kind=inttype) anksolver::ank_innerpreconits
 
integer(kind=inttype) anksolver::ank_innerpreconitscoarse
 
integer(kind=inttype) anksolver::ank_outerpreconits
 
integer(kind=inttype) anksolver::ank_amglevels
 
integer(kind=inttype) anksolver::ank_amgnsmooth
 
character(len=maxstringlen) anksolver::ank_precondtype
 
real(kind=realtype) anksolver::ank_rtol
 
real(kind=realtype) anksolver::ank_atol_buffer
 
real(kind=realtype) anksolver::ank_linresmax
 
real(kind=realtype) anksolver::ank_switchtol
 
real(kind=realtype) anksolver::ank_divtol = 10
 
logical anksolver::ank_useturbdadi
 
logical anksolver::ank_useapproxsa
 
real(kind=realtype) anksolver::ank_turbcflscale
 
logical anksolver::ank_usefullvisc
 
logical anksolver::ank_adpc
 
logical anksolver::ank_turbdebug
 
logical anksolver::ank_usematrixfree
 
character(len=maxstringlen) anksolver::ank_chartimesteptype
 
integer(kind=inttype) anksolver::ank_nsubiterturb
 
real(kind=realtype) anksolver::ank_cfl
 
real(kind=realtype) anksolver::ank_cfl0
 
real(kind=realtype) anksolver::ank_cfllimit
 
real(kind=realtype) anksolver::ank_cflfactor
 
real(kind=realtype) anksolver::ank_cflcutback
 
real(kind=realtype) anksolver::ank_cflmin0
 
real(kind=realtype) anksolver::ank_cflmin
 
real(kind=realtype) anksolver::ank_cflminbase
 
real(kind=realtype) anksolver::ank_cflexponent
 
real(kind=realtype) anksolver::ank_stepmin
 
real(kind=realtype) anksolver::ank_stepfactor
 
real(kind=realtype) anksolver::ank_constcflstep
 
real(kind=realtype) anksolver::ank_secondordswitchtol
 
real(kind=realtype) anksolver::ank_coupledswitchtol
 
real(kind=realtype) anksolver::ank_physlstol
 
real(kind=realtype) anksolver::ank_unstdylstol
 
real(kind=realtype) anksolver::ank_pcupdatetol
 
real(kind=realtype) anksolver::ank_pcupdatetol2
 
real(kind=realtype) anksolver::ank_pcupdatecutoff
 
real(kind=realtype) anksolver::lambda
 
logical anksolver::ank_solversetup = .False.
 
logical anksolver::ank_cflreset
 
integer(kind=inttype) anksolver::ank_iter
 
integer(kind=inttype) anksolver::nstate
 
real(kind=alwaysrealtype) anksolver::totalr_old
 
real(kind=alwaysrealtype) anksolver::totalr_pcupdate
 
real(kind=alwaysrealtype) anksolver::rtollast
 
real(kind=alwaysrealtype) anksolver::linresold
 
logical anksolver::ank_usedissapprox
 
logical anksolver::ank_coupled = .False.
 
logical anksolver::ank_turbsetup = .False.
 
integer(kind=inttype) anksolver::ank_iterturb
 
integer(kind=inttype) anksolver::nstateturb
 
real(kind=realtype) anksolver::lambdaturb
 
real(kind=realtype) anksolver::ank_physlstolturb
 
real(kind=alwaysrealtype) anksolver::linresoldturb
 

Function/Subroutine Documentation

◆ setblock()

subroutine formjacobianankturb::setblock

Definition at line 2455 of file NKSolvers.F90.

References utils::echk().

Here is the call graph for this function: