MFEM v4.7.0
Finite element discretization library
Loading...
Searching...
No Matches
mfem::DiffusionSolver Class Reference

Class for solving Poisson's equation: More...

#include <ex37.hpp>

Public Member Functions

 DiffusionSolver ()
 
 DiffusionSolver (Mesh *mesh_, int order_, Coefficient *diffcf_, Coefficient *cf_)
 
void SetMesh (Mesh *mesh_)
 
void SetOrder (int order_)
 
void SetDiffusionCoefficient (Coefficient *diffcf_)
 
void SetMassCoefficient (Coefficient *masscf_)
 
void SetRHSCoefficient (Coefficient *rhscf_)
 
void SetEssentialBoundary (const Array< int > &ess_bdr_)
 
void SetNeumannBoundary (const Array< int > &neumann_bdr_)
 
void SetNeumannData (Coefficient *neumann_cf_)
 
void SetEssBdrData (Coefficient *essbdr_cf_)
 
void SetGradientData (VectorCoefficient *gradient_cf_)
 
void ResetFEM ()
 
void SetupFEM ()
 
void Solve ()
 
GridFunctionGetFEMSolution ()
 
LinearFormGetLinearForm ()
 
ParGridFunctionGetParFEMSolution ()
 
ParLinearFormGetParLinearForm ()
 
 ~DiffusionSolver ()
 

Detailed Description

Class for solving Poisson's equation:

  - ∇ ⋅(κ ∇ u) = f  in Ω

Definition at line 215 of file ex37.hpp.

Constructor & Destructor Documentation

◆ DiffusionSolver() [1/2]

mfem::DiffusionSolver::DiffusionSolver ( )
inline

Definition at line 244 of file ex37.hpp.

◆ DiffusionSolver() [2/2]

mfem::DiffusionSolver::DiffusionSolver ( Mesh * mesh_,
int order_,
Coefficient * diffcf_,
Coefficient * cf_ )

Definition at line 377 of file ex37.hpp.

◆ ~DiffusionSolver()

mfem::DiffusionSolver::~DiffusionSolver ( )

Definition at line 554 of file ex37.hpp.

Member Function Documentation

◆ GetFEMSolution()

GridFunction * mfem::DiffusionSolver::GetFEMSolution ( )

Definition at line 534 of file ex37.hpp.

◆ GetLinearForm()

LinearForm * mfem::DiffusionSolver::GetLinearForm ( )
inline

Definition at line 272 of file ex37.hpp.

◆ GetParFEMSolution()

ParGridFunction * mfem::DiffusionSolver::GetParFEMSolution ( )

Definition at line 540 of file ex37.hpp.

◆ GetParLinearForm()

ParLinearForm * mfem::DiffusionSolver::GetParLinearForm ( )
inline

Definition at line 275 of file ex37.hpp.

◆ ResetFEM()

void mfem::DiffusionSolver::ResetFEM ( )

◆ SetDiffusionCoefficient()

void mfem::DiffusionSolver::SetDiffusionCoefficient ( Coefficient * diffcf_)
inline

Definition at line 258 of file ex37.hpp.

◆ SetEssBdrData()

void mfem::DiffusionSolver::SetEssBdrData ( Coefficient * essbdr_cf_)
inline

Definition at line 264 of file ex37.hpp.

◆ SetEssentialBoundary()

void mfem::DiffusionSolver::SetEssentialBoundary ( const Array< int > & ess_bdr_)
inline

Definition at line 261 of file ex37.hpp.

◆ SetGradientData()

void mfem::DiffusionSolver::SetGradientData ( VectorCoefficient * gradient_cf_)
inline

Definition at line 265 of file ex37.hpp.

◆ SetMassCoefficient()

void mfem::DiffusionSolver::SetMassCoefficient ( Coefficient * masscf_)
inline

Definition at line 259 of file ex37.hpp.

◆ SetMesh()

void mfem::DiffusionSolver::SetMesh ( Mesh * mesh_)
inline

Definition at line 248 of file ex37.hpp.

◆ SetNeumannBoundary()

void mfem::DiffusionSolver::SetNeumannBoundary ( const Array< int > & neumann_bdr_)
inline

Definition at line 262 of file ex37.hpp.

◆ SetNeumannData()

void mfem::DiffusionSolver::SetNeumannData ( Coefficient * neumann_cf_)
inline

Definition at line 263 of file ex37.hpp.

◆ SetOrder()

void mfem::DiffusionSolver::SetOrder ( int order_)
inline

Definition at line 257 of file ex37.hpp.

◆ SetRHSCoefficient()

void mfem::DiffusionSolver::SetRHSCoefficient ( Coefficient * rhscf_)
inline

Definition at line 260 of file ex37.hpp.

◆ SetupFEM()

void mfem::DiffusionSolver::SetupFEM ( )

Definition at line 390 of file ex37.hpp.

◆ Solve()

void mfem::DiffusionSolver::Solve ( )

Definition at line 425 of file ex37.hpp.


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