https://mooseframework.inl.gov
Loading...
Searching...
No Matches
MFEMEigenproblem.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 "MFEMProblem.h"
16
18{
19public:
21
22 MFEMEigenproblem(const InputParameters & params);
23 virtual ~MFEMEigenproblem() {}
24
25 virtual void resolveMFEMSolvers() override;
26
31 virtual void addVariable(const std::string & var_type,
32 const std::string & var_name,
33 InputParameters & parameters) override;
34
39
43 virtual std::shared_ptr<MFEMWeakFormBase> addDefaultWeakForm() override;
44
48 virtual std::shared_ptr<MFEMProblemComposer> addDefaultProblemComposer() override;
49};
50
51#endif
The main MOOSE class responsible for handling user-defined parameters in almost every MOOSE system.
virtual void resolveMFEMSolvers() override
Construct recorded MFEM solvers in dependency order and select the problem driver solver(s).
virtual std::shared_ptr< MFEMProblemComposer > addDefaultProblemComposer() override
Add default problem composer if none has been added by the user.
static InputParameters validParams()
virtual void addVariable(const std::string &var_type, const std::string &var_name, InputParameters &parameters) override
Override of MFEMProblem::addVariable.
Moose::MFEM::EigenRHSCoefficient getRHSCoefficient()
Returns the coefficient used to scale the right-hand side of the eigenproblem equation.
virtual std::shared_ptr< MFEMWeakFormBase > addDefaultWeakForm() override
Add default weak form if none has been added by the user.
virtual ~MFEMEigenproblem()
const InputParameters & parameters() const
Get the parameters of the object.
Definition MooseBase.h:131
std::variant< mfem::Coefficient *, mfem::MatrixCoefficient * > EigenRHSCoefficient
Scalar or matrix coefficient scaling the eigenproblem right-hand side.