ThunderEgg  1.0.0
ThunderEgg::Poisson::DFTPatchSolver< D > Class Template Reference

Use DFT transforms to solve for the Poisson equation. More...

#include <DFTPatchSolver.h>

Inheritance diagram for ThunderEgg::Poisson::DFTPatchSolver< D >:
Collaboration diagram for ThunderEgg::Poisson::DFTPatchSolver< D >:

Public Member Functions

 DFTPatchSolver (const PatchOperator< D > &op, std::bitset< Side< D >::number_of > neumann)
 Construct a new DFTPatchSolver object. More...
 
DFTPatchSolver< D > * clone () const override
 Clone this patch solver. More...
 
void solveSinglePatch (const PatchInfo< D > &pinfo, const PatchView< const double, D > &f_view, const PatchView< double, D > &u_view) const override
 Perform a single solve over a patch. More...
 
- Public Member Functions inherited from ThunderEgg::PatchSolver< D >
 PatchSolver (const Domain< D > &domain, const GhostFiller< D > &ghost_filler)
 Construct a new PatchSolver object. More...
 
virtual ~PatchSolver ()
 Destroy the Patch Solver object.
 
const Domain< D > & getDomain () const
 Get the Domain object. More...
 
const GhostFiller< D > & getGhostFiller () const
 Get the GhostFiller object. More...
 
virtual void apply (const Vector< D > &f, Vector< D > &u) const override
 Solve all the patches in the domain, assuming zero boundary conditions for the patches. More...
 
virtual void smooth (const Vector< D > &f, Vector< D > &u) const override
 Solve all the patches in the domain, using the values in u for the boundary conditions. More...
 
- Public Member Functions inherited from ThunderEgg::Operator< D >
virtual ~Operator ()
 Destroy the Operator object.
 
- Public Member Functions inherited from ThunderEgg::GMG::Smoother< D >
virtual ~Smoother ()
 Destroy the Smoother object.
 

Detailed Description

template<int D>
class ThunderEgg::Poisson::DFTPatchSolver< D >

Use DFT transforms to solve for the Poisson equation.

Template Parameters
Dthe number of Cartesian dimensions

Constructor & Destructor Documentation

◆ DFTPatchSolver()

template<int D>
ThunderEgg::Poisson::DFTPatchSolver< D >::DFTPatchSolver ( const PatchOperator< D > &  op,
std::bitset< Side< D >::number_of >  neumann 
)
inline

Construct a new DFTPatchSolver object.

Parameters
opthe Poisson PatchOperator that cooresponds to this DFTPatchSolver
neumanntrue if domain has neumann boundary conditions on a side

Member Function Documentation

◆ clone()

template<int D>
DFTPatchSolver<D>* ThunderEgg::Poisson::DFTPatchSolver< D >::clone ( ) const
inlineoverridevirtual

Clone this patch solver.

Returns
DFTPatchSolver<D>* a newly allocated copy of this patch solver

Implements ThunderEgg::PatchSolver< D >.

◆ solveSinglePatch()

template<int D>
void ThunderEgg::Poisson::DFTPatchSolver< D >::solveSinglePatch ( const PatchInfo< D > &  pinfo,
const PatchView< const double, D > &  f_view,
const PatchView< double, D > &  u_view 
) const
inlineoverridevirtual

Perform a single solve over a patch.

Parameters
pinfothe PatchInfo for the patch
f_viewthe left hand side
u_viewthe right hand side

Implements ThunderEgg::PatchSolver< D >.


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