|
Alamo
|
#include <Newton.H>
Public Member Functions | |
| Newton () | |
| Newton (Operator::Elastic< T::sym > &a_op) | |
| ~Newton () | |
| void | Define (Operator::Elastic< T::sym > &a_op) |
| void | Clear () |
| void | setNRIters (int a_nriters) |
| void | setPsi (Set::Field< Set::Scalar > &a_psi) |
| bool | usesConservativeFaceFlux () const |
| Set::Scalar | solve (const Set::Field< Set::Vector > &a_u_mf, const Set::Field< Set::Vector > &a_b_mf, Set::Field< T > &a_model_mf, Real a_tol_rel, Real a_tol_abs, const char *checkpoint_file=nullptr) |
| Set::Scalar | solve (const Set::Field< Set::Scalar > &a_u_mf, const Set::Field< Set::Scalar > &a_b_mf, Set::Field< T > &a_model_mf, Real a_tol_rel, Real a_tol_abs, const char *checkpoint_file=nullptr) |
| Set::Scalar | solve (const Set::Field< Set::Scalar > &a_u_mf, const Set::Field< Set::Scalar > &a_b_mf, Set::Field< T > &a_model_mf) |
| void | compResidual (Set::Field< Set::Scalar > &a_res_mf, Set::Field< Set::Scalar > &a_u_mf, Set::Field< Set::Scalar > &a_b_mf, Set::Field< T > &a_model_mf) |
| void | compResidual (Set::Field< Set::Vector > &a_res_mf, Set::Field< Set::Vector > &a_u_mf, Set::Field< Set::Vector > &a_b_mf, Set::Field< T > &a_model_mf) |
| void | compLinearSolverResidual (Set::Field< Set::Vector > &a_res_mf, Set::Field< Set::Vector > &a_u_mf, Set::Field< Set::Vector > &a_b_mf) |
| void | W (Set::Field< Set::Scalar > &a_w_mf, Set::Field< Set::Scalar > &a_u_mf, Set::Field< T > &a_model_mf) |
| void | DW (Set::Field< Set::Scalar > &a_dw_mf, Set::Field< Set::Scalar > &a_u_mf, Set::Field< T > &a_model_mf) |
Public Member Functions inherited from Solver::Nonlocal::Linear | |
| Linear () | |
| Linear (Operator::Operator< Grid::Node > &a_lp) | |
| ~Linear () | |
| void | Define (Operator::Operator< Grid::Node > &a_lp) |
| void | Clear () |
| Set::Scalar | solveaffine (amrex::Vector< std::unique_ptr< amrex::MultiFab > > &a_sol, amrex::Vector< std::unique_ptr< amrex::MultiFab > > &a_rhs, Real a_tol_rel, Real a_tol_abs, bool copyrhs=false, const char *checkpoint_file=nullptr) |
| Set::Scalar | solve (amrex::Vector< std::unique_ptr< amrex::MultiFab > > &a_sol, amrex::Vector< std::unique_ptr< amrex::MultiFab > > &a_rhs, Real a_tol_rel, Real a_tol_abs, const char *checkpoint_file=nullptr) |
| Set::Scalar | solve (amrex::Vector< std::unique_ptr< amrex::MultiFab > > &a_sol, amrex::Vector< std::unique_ptr< amrex::MultiFab > > &a_rhs) |
| void | apply (amrex::Vector< std::unique_ptr< amrex::MultiFab > > &a_rhs, amrex::Vector< std::unique_ptr< amrex::MultiFab > > &a_sol) |
| void | setMaxIter (const int a_max_iter) |
| void | setBottomMaxIter (const int a_bottom_max_iter) |
| void | setMaxFmgIter (const int a_max_fmg_iter) |
| void | setFixedIter (const int a_fixed_iter) |
| void | setVerbose (const int a_verbose) |
| void | setPreSmooth (const int a_pre_smooth) |
| void | setPostSmooth (const int a_post_smooth) |
| void | dumpOnConvergenceFail (const amrex::Vector< amrex::MultiFab * > &a_sol_mf, const amrex::Vector< amrex::MultiFab const * > &a_rhs_mf) |
Static Public Member Functions | |
| static void | Parse (Newton< T > &value, amrex::ParmParse &pp) |
Static Public Member Functions inherited from Solver::Nonlocal::Linear | |
| static void | Parse (Linear &value, amrex::ParmParse &pp) |
Data Fields | |
| int | m_nriters = 1 |
| Set::Scalar | m_nrtolerance = 0.0 |
| bool | m_line_search = false |
| bool | m_resync_coeffs = false |
| bool | m_nr_abort_on_fail = false |
| Operator::Elastic< T::sym > * | m_elastic |
| Set::Field< Set::Scalar > * | m_psi = nullptr |
| bool | m_conservative_face_flux = false |
Private Member Functions | |
| void | prepareForSolve (const Set::Field< Set::Scalar > &a_u_mf, const Set::Field< Set::Scalar > &a_b_mf, Set::Field< Set::Scalar > &a_rhs_mf, Set::Field< Set::Matrix > &a_dw_mf, Set::Field< Set::Matrix4< AMREX_SPACEDIM, T::sym > > &a_ddw_mf, Set::Field< T > &a_model_mf) |
| void | prepareForSolve (const Set::Field< Set::Vector > &a_u_mf, const Set::Field< Set::Vector > &a_b_mf, Set::Field< Set::Scalar > &a_rhs_mf, Set::Field< Set::Matrix > &a_dw_mf, Set::Field< Set::Matrix4< AMREX_SPACEDIM, T::sym > > &a_ddw_mf, Set::Field< T > &a_model_mf) |
| Set::Scalar | FieldNorm0 (const Set::Field< Set::Scalar > &a_mf) const |
Private Attributes | |
| bool | m_reported_psi_face_flux_conflict = false |
Additional Inherited Members | |
Protected Member Functions inherited from Solver::Nonlocal::Linear | |
| void | PrepareMLMG (amrex::MLMG &mlmg) |
Protected Attributes inherited from Solver::Nonlocal::Linear | |
| int | max_iter = -1 |
| int | bottom_max_iter = -1 |
| int | max_fmg_iter = -1 |
| int | fixed_iter = -1 |
| int | verbose = -1 |
| int | pre_smooth = -1 |
| int | post_smooth = -1 |
| int | final_smooth = -1 |
| int | bottom_smooth = -1 |
| std::string | bottom_solver |
| Set::Scalar | cg_tol_rel = -1.0 |
| Set::Scalar | cg_tol_abs = -1.0 |
| Set::Scalar | bottom_tol_rel = -1.0 |
| Set::Scalar | bottom_tol_abs = -1.0 |
| Set::Scalar | tol_rel = -1.0 |
| Set::Scalar | tol_abs = -1.0 |
| Set::Scalar | omega = -1.0 |
| bool | average_down_coeffs = false |
| bool | normalize_ddw = false |
| Operator::Operator< Grid::Node > * | linop |
| amrex::MLMG * | mlmg |
| bool | m_defined = false |
| bool | m_dump_on_fail = false |
| bool | m_abort_on_fail = true |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inlinestatic |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
| bool Solver::Nonlocal::Newton< T >::m_conservative_face_flux = false |
| Operator::Elastic<T::sym>* Solver::Nonlocal::Newton< T >::m_elastic |
| bool Solver::Nonlocal::Newton< T >::m_line_search = false |
| bool Solver::Nonlocal::Newton< T >::m_nr_abort_on_fail = false |
| int Solver::Nonlocal::Newton< T >::m_nriters = 1 |
| Set::Scalar Solver::Nonlocal::Newton< T >::m_nrtolerance = 0.0 |
| Set::Field<Set::Scalar>* Solver::Nonlocal::Newton< T >::m_psi = nullptr |
|
private |
| bool Solver::Nonlocal::Newton< T >::m_resync_coeffs = false |