https://mooseframework.inl.gov
MFEMEigensolverBase.h
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://mooseframework.inl.gov
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
10 #ifdef MOOSE_MFEM_ENABLED
11 
12 #pragma once
13 
14 #include "MFEMLinearSolverBase.h"
15 
16 namespace Moose::MFEM
17 {
22 {
23 public:
25 
27 
29  virtual void SetOperator(mfem::OperatorHandle & op) override = 0;
30 
32  virtual void SetMassMatrix(mfem::OperatorHandle & mass) = 0;
33 
35  virtual void GetEigenvalues(mfem::Array<mfem::real_t> & eigenvalues) const = 0;
36 
38  virtual const mfem::HypreParVector & GetEigenvector(int index) const = 0;
39 
40 protected:
43 };
44 }
45 
46 #endif
const InputParameters & parameters() const
Get the parameters of the object.
Definition: MooseBase.h:131
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system...
virtual void SetOperator(mfem::OperatorHandle &op) override=0
Sets the operator for the eigensolver in derived classes.
virtual const mfem::HypreParVector & GetEigenvector(int index) const =0
Retrieves the computed eigenvector corresponding to the given index.
Base class for linear MFEM solvers and preconditioners.
virtual void SetMassMatrix(mfem::OperatorHandle &mass)=0
Sets the mass matrix for the eigensolver in derived classes.
int _num_modes
Number of eigenmodes to compute.
virtual void GetEigenvalues(mfem::Array< mfem::real_t > &eigenvalues) const =0
Retrieves the computed eigenvalues.
Utilities for converting between vector(s) of libMesh Points and MFEM Vector(s).
EigensolverBase(const InputParameters &parameters)
static InputParameters validParams()
Base class for eigensolvers.