#include <hydro_NodalProjector.H>
|
| | NodalProjector (amrex::Vector< amrex::MultiFab * > a_vel, amrex::Vector< const amrex::MultiFab * > a_sigma, amrex::Vector< amrex::Geometry > a_geom, const amrex::LPInfo &a_lpinfo, amrex::Vector< amrex::MultiFab * > a_S_cc={}, amrex::Vector< const amrex::MultiFab * > a_S_nd={}) |
| | NodalProjector (amrex::Vector< amrex::MultiFab * > a_vel, amrex::Vector< const amrex::MultiFab * > a_sigma, amrex::Vector< amrex::Geometry > a_geom, amrex::Vector< amrex::MultiFab * > a_S_cc={}, amrex::Vector< const amrex::MultiFab * > a_S_nd={}) |
| | NodalProjector (amrex::Vector< amrex::MultiFab * > a_vel, amrex::Real a_const_sigma, amrex::Vector< amrex::Geometry > a_geom, const amrex::LPInfo &a_lpinfo, amrex::Vector< amrex::MultiFab * > a_S_cc={}, amrex::Vector< const amrex::MultiFab * > a_S_nd={}) |
| void | project (amrex::Real a_rtol=amrex::Real(1.0e-11), amrex::Real a_atol=amrex::Real(1.0e-14)) |
| void | project (const amrex::Vector< amrex::MultiFab * > &a_phi, amrex::Real a_rtol=amrex::Real(1.0e-11), amrex::Real a_atol=amrex::Real(1.0e-14)) |
| amrex::Vector< amrex::MultiFab * > | getGradPhi () |
| amrex::Vector< const amrex::MultiFab * > | getGradPhiConst () const |
| amrex::Vector< amrex::MultiFab * > | getPhi () |
| amrex::Vector< const amrex::MultiFab * > | getPhiConst () const |
| amrex::Vector< amrex::MultiFab * > | getRHS () |
| amrex::Vector< const amrex::MultiFab * > | getRHSConst () const |
| amrex::Vector< amrex::MultiFab * > | calcGradPhi (const amrex::Vector< amrex::MultiFab * > &a_phi) |
| void | computeRHS (const amrex::Vector< amrex::MultiFab * > &a_rhs, const amrex::Vector< amrex::MultiFab * > &a_vel, const amrex::Vector< amrex::MultiFab * > &a_S_cc={}, const amrex::Vector< const amrex::MultiFab * > &a_S_nd={}) |
| void | setAlpha (const amrex::Vector< const amrex::MultiFab * > &a_alpha) |
| void | setCustomRHS (amrex::Vector< const amrex::MultiFab * > a_rhs) |
| void | setVerbose (int v) noexcept |
| void | setDomainBC (std::array< amrex::LinOpBCType, AMREX_SPACEDIM > a_bc_lo, std::array< amrex::LinOpBCType, AMREX_SPACEDIM > a_bc_hi) |
| void | setThrowException (bool t) |
| | Throw std::runtime_error instead of aborting when the solve fails.
|
| int | getNumIters () const noexcept |
| | Iterations of the last projection (MLMG, or hypre with use_mlhypre).
|
| amrex::MLNodeLaplacian & | getLinOp () noexcept |
| amrex::MLMG & | getMLMG () noexcept |
| void | setSyncResidualFine (amrex::MultiFab *a_sync_resid_fine) |
| void | setSyncResidualCrse (amrex::MultiFab *a_sync_resid_crse, amrex::IntVect a_ref_ratio, amrex::BoxArray a_fine_grids) |
◆ NodalProjector() [1/3]
◆ NodalProjector() [2/3]
◆ NodalProjector() [3/3]
◆ averageDown()
◆ calcGradPhi()
◆ computeRHS()
◆ computeSyncResidual()
| void Hydro::NodalProjector::computeSyncResidual |
( |
| ) |
|
|
private |
◆ define()
| void Hydro::NodalProjector::define |
( |
amrex::LPInfo const & | a_lpinfo | ) |
|
|
private |
◆ getGradPhi()
◆ getGradPhiConst()
◆ getLinOp()
◆ getMLMG()
◆ getNumIters()
| int Hydro::NodalProjector::getNumIters |
( |
| ) |
const |
|
inlinenodiscardnoexcept |
Iterations of the last projection (MLMG, or hypre with use_mlhypre).
◆ getPhi()
◆ getPhiConst()
◆ getRHS()
◆ getRHSConst()
◆ printInfo()
| void Hydro::NodalProjector::printInfo |
( |
| ) |
|
|
private |
◆ project() [1/2]
◆ project() [2/2]
◆ setAlpha()
Set alpha for the custom mode. alpha is stored as raw pointers, so it must outlive the projector, and it persists until it is reset. Pass an empty vector to go back to the default alpha = 1.
◆ setCoarseBoundaryVelocityForSync()
| void Hydro::NodalProjector::setCoarseBoundaryVelocityForSync |
( |
| ) |
|
|
private |
◆ setCustomRHS()
Set a custom RHS. It persists until it is reset; pass an empty vector to go back to computing "div(vel) + S_nd + S_cc" in project().
◆ setDomainBC()
◆ setOptions()
| void Hydro::NodalProjector::setOptions |
( |
| ) |
|
|
private |
◆ setSyncResidualCrse()
◆ setSyncResidualFine()
| void Hydro::NodalProjector::setSyncResidualFine |
( |
amrex::MultiFab * | a_sync_resid_fine | ) |
|
|
inline |
◆ setThrowException()
| void Hydro::NodalProjector::setThrowException |
( |
bool | t | ) |
|
|
inline |
Throw std::runtime_error instead of aborting when the solve fails.
◆ setVerbose()
| void Hydro::NodalProjector::setVerbose |
( |
int | v | ) |
|
|
inlinenoexcept |
◆ m_alpha
◆ m_bc_hi
◆ m_bc_lo
◆ m_const_sigma
◆ m_ebfactory
◆ m_fine_grids
◆ m_fluxes
◆ m_geom
◆ m_has_alpha
| bool Hydro::NodalProjector::m_has_alpha = false |
|
private |
◆ m_has_rhs
| bool Hydro::NodalProjector::m_has_rhs = false |
|
private |
◆ m_linop
◆ m_maxiter
| int Hydro::NodalProjector::m_maxiter = 100 |
|
private |
◆ m_mlhypre_prefix
| std::string Hydro::NodalProjector::m_mlhypre_prefix = "hypre_mlnodelap" |
|
private |
◆ m_mlmg
| std::unique_ptr< amrex::MLMG > Hydro::NodalProjector::m_mlmg |
|
private |
◆ m_need_bcs
| bool Hydro::NodalProjector::m_need_bcs = true |
|
private |
◆ m_num_iters
| int Hydro::NodalProjector::m_num_iters = 0 |
|
private |
◆ m_phi
◆ m_ref_ratio
◆ m_rhs
◆ m_S_cc
◆ m_S_nd
◆ m_sigma
◆ m_sync_resid_crse
◆ m_sync_resid_fine
◆ m_throw_exception
| bool Hydro::NodalProjector::m_throw_exception = false |
|
private |
◆ m_use_mlhypre
| bool Hydro::NodalProjector::m_use_mlhypre = false |
|
private |
◆ m_vel
◆ m_verbose
| int Hydro::NodalProjector::m_verbose = 0 |
|
private |
The documentation for this class was generated from the following files: