OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
Public Member Functions | Protected Attributes | List of all members
AmrPoissonSolver< AmrObject > Class Template Reference

#include <AmrPoissonSolver.h>

Inheritance diagram for AmrPoissonSolver< AmrObject >:
Inheritance graph
[legend]
Collaboration diagram for AmrPoissonSolver< AmrObject >:
Collaboration graph
[legend]

Public Member Functions

 AmrPoissonSolver (AmrObject *itsAmrObject_p)
 
virtual ~AmrPoissonSolver ()
 
void computePotential (Field_t &, Vector_t)
 
void computePotential (Field_t &, Vector_t, double)
 
void test (PartBunchBase< double, 3 > *)
 
void hasToRegrid ()
 
- Public Member Functions inherited from PoissonSolver
virtual void solve (AmrScalarFieldContainer_t &, AmrScalarFieldContainer_t &, AmrVectorFieldContainer_t &, unsigned short, unsigned short, bool=true)
 
virtual double getXRangeMin (unsigned short level=0)=0
 
virtual double getXRangeMax (unsigned short level=0)=0
 
virtual double getYRangeMin (unsigned short level=0)=0
 
virtual double getYRangeMax (unsigned short level=0)=0
 
virtual double getZRangeMin (unsigned short level=0)=0
 
virtual double getZRangeMax (unsigned short level=0)=0
 
virtual ~PoissonSolver ()
 
virtual void resizeMesh (Vector_t &, Vector_t &, const Vector_t &, const Vector_t &, double)
 

Protected Attributes

AmrObjectitsAmrObject_mp
 
bool regrid_m
 is set to true by itsAmrObject_mp and reset to false by solver More...
 

Additional Inherited Members

- Protected Types inherited from PoissonSolver
typedef Field< int, 3, Mesh_t, Center_tIField_t
 
typedef Field< std::complex< double >, 3, Mesh_t, Center_tCxField_t
 

Detailed Description

template<class AmrObject>
class AmrPoissonSolver< AmrObject >

Definition at line 30 of file AmrPoissonSolver.h.

Constructor & Destructor Documentation

◆ AmrPoissonSolver()

template<class AmrObject >
AmrPoissonSolver< AmrObject >::AmrPoissonSolver ( AmrObject itsAmrObject_p)
inline
Parameters
itsAmrObject_pholds information about grids and domain

Definition at line 36 of file AmrPoissonSolver.h.

◆ ~AmrPoissonSolver()

template<class AmrObject >
virtual AmrPoissonSolver< AmrObject >::~AmrPoissonSolver ( )
inlinevirtual

Definition at line 39 of file AmrPoissonSolver.h.

Member Function Documentation

◆ computePotential() [1/2]

template<class AmrObject >
void AmrPoissonSolver< AmrObject >::computePotential ( Field_t ,
Vector_t   
)
inlinevirtual

Implements PoissonSolver.

Definition at line 42 of file AmrPoissonSolver.h.

◆ computePotential() [2/2]

template<class AmrObject >
void AmrPoissonSolver< AmrObject >::computePotential ( Field_t ,
Vector_t  ,
double   
)
inlinevirtual

Implements PoissonSolver.

Definition at line 47 of file AmrPoissonSolver.h.

◆ hasToRegrid()

template<class AmrObject >
void AmrPoissonSolver< AmrObject >::hasToRegrid ( )
inlinevirtual

Tell solver to regrid

Reimplemented from PoissonSolver.

Definition at line 56 of file AmrPoissonSolver.h.

References AmrPoissonSolver< AmrObject >::regrid_m.

◆ test()

template<class AmrObject >
void AmrPoissonSolver< AmrObject >::test ( PartBunchBase< double, 3 > *  )
inlinevirtual

Implements PoissonSolver.

Definition at line 52 of file AmrPoissonSolver.h.

Member Data Documentation

◆ itsAmrObject_mp

template<class AmrObject >
AmrObject* AmrPoissonSolver< AmrObject >::itsAmrObject_mp
protected

Definition at line 61 of file AmrPoissonSolver.h.

◆ regrid_m

template<class AmrObject >
bool AmrPoissonSolver< AmrObject >::regrid_m
protected

is set to true by itsAmrObject_mp and reset to false by solver

Definition at line 64 of file AmrPoissonSolver.h.

Referenced by AmrPoissonSolver< AmrObject >::hasToRegrid().


The documentation for this class was generated from the following file: