10#ifdef MOOSE_MFEM_ENABLED
25 "complex kernels and boundary conditions named by this weak form.");
42 std::shared_ptr<MFEMBoundaryCondition> bc)
44 if (
auto integrated_bc = std::dynamic_pointer_cast<MFEMComplexIntegratedBC>(bc))
46 else if (
auto essential_bc = std::dynamic_pointer_cast<MFEMComplexEssentialBC>(bc))
55 if (
auto complex_kernel = std::dynamic_pointer_cast<MFEMComplexKernel>(kernel))
63 std::shared_ptr<MFEMConstraint> constraint)
65 if (
auto essential_constraint =
66 std::dynamic_pointer_cast<MFEMComplexEssentialConstraint>(constraint))
69 mooseError(
"Unsupported constraint of name '",
name,
"' detected.");
72std::shared_ptr<Moose::MFEM::EquationSystem>
75 return std::make_shared<Moose::MFEM::ComplexEquationSystem>();
void mooseError(Args &&... args)
Emit an error message with the given stringified, concatenated args and terminate the application.
const std::string & name() const
Get the name of the class.
Class to store weak form components (bilinear and linear forms, and optionally mixed and nonlinear fo...
void AddComplexKernel(std::shared_ptr< MFEMComplexKernel > kernel)
Add complex kernels.
void AddComplexEssentialConstraint(std::shared_ptr< MFEMComplexEssentialConstraint > constraint)
Add complex essential (volumetric) constraints.
void AddComplexIntegratedBC(std::shared_ptr< MFEMComplexIntegratedBC > bc)
Add complex integrated BCs.
void AddComplexEssentialBCs(std::shared_ptr< MFEMComplexEssentialBC > bc)
Add complex essential BCs.