Chombo + EB
3.2
|
#include <AMRTGA.H>
Public Member Functions | |
TGAHelmOp< T > * | newOp (const ProblemDomain &a_indexSpace, const AMRLevelOpFactory< T > &a_opFact) |
~AMRTGA () | |
AMRTGA (const RefCountedPtr< AMRMultiGrid< T > > &a_solver, const AMRLevelOpFactory< T > &a_factory, const ProblemDomain &a_level0Domain, const Vector< int > &a_refRat, int a_numLevels=-1, int a_verbosity=0) | |
void | oneStep (Vector< T *> &a_phiNew, Vector< T *> &a_phiOld, Vector< T *> &a_source, const Real &a_dt, int a_lbase, int a_lmax, Real a_timeOld=0) |
void | resetAlphaAndBeta (const Real &a_alpha, const Real &a_beta) |
void | setTime (Real time) |
Protected Member Functions | |
void | solveHelm (Vector< T *> &a_ans, Vector< T *> &a_rhs, int a_lbase, int a_lmax, Real a_mu, Real a_dt) |
void | applyHelm (Vector< T *> &a_ans, Vector< T *> &a_source, int a_lbase, int a_lmax, Real a_mu, Real a_dt, bool a_homogeneousBC) |
void | setMu () |
void | createData (Vector< T * > &a_source, int a_lbase, int a_lmax) |
Private Member Functions | |
AMRTGA (const AMRTGA< T > &a_opin) | |
void | operator= (const AMRTGA< T > &a_opin) |
AMRTGA () | |
weak construction is bad. Ref Counted pointers are your friends. More... | |
Private Attributes | |
Vector< TGAHelmOp< T > *> | m_ops |
ProblemDomain | m_level0Domain |
Vector< int > | m_refRat |
RefCountedPtr< AMRMultiGrid< T > > | m_solver |
Real | m_mu1 |
Real | m_mu2 |
Real | m_mu3 |
Real | m_mu4 |
int | m_verbosity |
int | m_numLevels |
bool | m_dataCreated |
Vector< T * > | m_rhst |
Vector< T * > | m_srct |
Template implementation of the TGA algorithm to solve the heat equation.
References AMRTGA< T >::oneStep().
AMRTGA< T >::AMRTGA | ( | const RefCountedPtr< AMRMultiGrid< T > > & | a_solver, |
const AMRLevelOpFactory< T > & | a_factory, | ||
const ProblemDomain & | a_level0Domain, | ||
const Vector< int > & | a_refRat, | ||
int | a_numLevels = -1 , |
||
int | a_verbosity = 0 |
||
) |
References MayDay::Error(), AMRTGA< T >::setMu(), and Vector< T >::size().
References MayDay::Error().
weak construction is bad. Ref Counted pointers are your friends.
References MayDay::Error(), and AMRTGA< T >::resetAlphaAndBeta().
Referenced by AMRTGA< T >::setTime().
|
inline |
References AMRLevelOpFactory< T >::AMRnewOp(), createData(), and TGAHelmOp< T >::setTime().
void AMRTGA< T >::oneStep | ( | Vector< T *> & | a_phiNew, |
Vector< T *> & | a_phiOld, | ||
Vector< T *> & | a_source, | ||
const Real & | a_dt, | ||
int | a_lbase, | ||
int | a_lmax, | ||
Real | a_timeOld = 0 |
||
) |
This advances a parabolic pde from a_phiOld to a_phiNew using TGA on a non-moving domain with source term a_source If your operator is time-dependent, be sure to send the time.
References AMRTGA< T >::applyHelm(), createData(), pout(), and TGAHelmOp< T >::setTime().
Referenced by AMRTGA< T >::~AMRTGA().
void AMRTGA< T >::resetAlphaAndBeta | ( | const Real & | a_alpha, |
const Real & | a_beta | ||
) |
References TGAHelmOp< T >::setAlphaAndBeta(), AMRTGA< T >::setTime(), and Vector< T >::size().
Referenced by AMRTGA< T >::AMRTGA().
References AMRTGA< T >::AMRTGA(), TGAHelmOp< T >::setTime(), and Vector< T >::size().
Referenced by AMRTGA< T >::resetAlphaAndBeta().
|
protected |
References pout().
Referenced by AMRTGA< T >::applyHelm().
|
protected |
References AMRTGA< T >::solveHelm().
Referenced by AMRTGA< T >::oneStep().
|
protected |
References AMRTGA< T >::createData(), and pout().
Referenced by AMRTGA< T >::AMRTGA().
|
protected |
References Vector< T >::size().
Referenced by AMRTGA< T >::setMu().
References MayDay::Error().
|
private |
|
private |
|
private |
|
private |
|
private |