10#ifdef MOOSE_MFEM_ENABLED
22 "Applies a tree-cotree gauge to an H(curl) (Nedelec) variable by strongly fixing the "
23 "edge degrees of freedom on a spanning tree of the mesh to zero, and in a higher order "
24 "space a selection of the degrees of freedom of every other edge, face and element, "
25 "removing the gradient null space of a curl-curl operator. Edges carrying an "
26 "essential condition on the variable seed the spanning forest so the gauge stays "
27 "compatible with it. Set 'block' to the subdomains to gauge; the complement is treated as "
28 "already gauged and only seeds the spanning forest. Leaving 'block' empty gauges the "
29 "whole mesh. Above SECOND order, the mesh must have no triangular faces.");
44 mfem::Array<int> & ess_tdofs)
46 const mfem::Array<int> & tree_tdofs =
53 ess_tdofs.Append(tree_tdofs);
registerMooseObject("MooseApp", MFEMTreeCotreeGaugeEssentialConstraint)
mfem::Array< int > & getSubdomainMarkers()
Base class for applying essential volumetric constraints to the trial ParGridFunction of an MFEM prob...
static InputParameters validParams()
Removes the gradient null space of an H(curl) (Nedelec) variable by strongly fixing the edge degrees ...
void ApplyConstraint(mfem::ParGridFunction &gridfunc, mfem::Array< int > &ess_tdofs) override
Apply the essential constraint, overwriting the values of gridfunc in the subdomain as desired and ap...
MFEMTreeCotreeGaugeEssentialConstraint(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...