10#ifdef MOOSE_MFEM_ENABLED
22 "Applies a tree-cotree gauge to a complex H(curl) (Nedelec) variable by "
23 "strongly fixing the real and imaginary parts of the edge degrees of freedom on a spanning "
24 "tree of the mesh to zero, and in a higher order space those of a selection of the degrees "
25 "of freedom of every other edge, face and element, removing the gradient null space of a "
26 "curl-curl operator. Edges carrying an essential condition on the variable "
27 "seed the spanning forest. Set 'block' to the subdomains to gauge; the complement seeds the "
28 "spanning forest but is not gauged. Leaving 'block' empty gauges the whole mesh. Above "
29 "SECOND order, the mesh must have no triangular faces.");
44 mfem::ParComplexGridFunction & gridfunc, mfem::Array<int> & ess_tdofs)
46 const mfem::Array<int> & tree_tdofs =
58 ess_tdofs.Append(tree_tdofs);
registerMooseObject("MooseApp", MFEMComplexTreeCotreeGaugeEssentialConstraint)
mfem::Array< int > & getSubdomainMarkers()
Base class for applying essential volumetric constraints to the trial ParComplexGridFunction of a com...
static InputParameters validParams()
Complex counterpart of MFEMTreeCotreeGaugeEssentialConstraint.
void ApplyConstraint(mfem::ParComplexGridFunction &gridfunc, mfem::Array< int > &ess_tdofs) override
Apply the essential constraint, overwriting the values of gridfunc in the subdomain as desired and ap...
MFEMComplexTreeCotreeGaugeEssentialConstraint(const InputParameters ¶meters)
static InputParameters validParams()
Moose::MFEM::TreeCotreeGauge _gauge
Selects and caches the gauged true dofs.
const mfem::Array< int > & trueDofs(const MFEMConstraint &constraint, mfem::ParFiniteElementSpace &pfes, const mfem::Array< int > &essential_tdofs, const mfem::Array< int > &gauge_block_markers)
This rank's ND true-dof indices that the tree-cotree gauge must strongly set to zero,...
void zeroTrueDofs(mfem::ParGridFunction &gf, const mfem::Array< int > &tdofs)
Strongly set the true dofs listed in tdofs of grid function gf to zero, leaving its local vector cons...