MFEMScalarEssentialConstraint

Overview

Strongly constrains a scalar variable within the subdomain(s) given by block to the projection of coefficient onto the variable's finite element space. The true degrees of freedom in the constrained subdomain are added to the essential-DOF list, so the corresponding rows of the discrete system are eliminated in favor of the projected values. This is the volumetric analogue of an MFEMScalarDirichletBC and is useful for imposing a known interior value (for example fixing a field inside a solid region of the mesh).

For a complex variable use MFEMComplexScalarEssentialConstraint.

Example Input File Syntax

[Constraints<<<{"href": "../../../syntax/Constraints/index.html"}>>>]
  [circle_interior]
    type = MFEMScalarEssentialConstraint<<<{"description": "Strongly constrains a scalar variable in the specified subdomain(s).", "href": "MFEMScalarEssentialConstraint.html"}>>>
    block<<<{"description": "The list of subdomains (names or ids) that this object will be restricted to. Leave empty to apply to all subdomains."}>>> = wire
    coefficient<<<{"description": "The coefficient setting the constrained values. A functor is any of the following: a variable, an MFEM material property, a function, a postprocessor or a number."}>>> = 2.0
    variable<<<{"description": "Variable on which to apply the constraint"}>>> = temperature
  []
[]
(test/tests/mfem/constraints/subdomain_constraint_source.i)

Input Parameters

  • blockThe list of subdomains (names or ids) that this object will be restricted to. Leave empty to apply to all subdomains.

    C++ Type:std::vector<SubdomainName>

    Controllable:No

    Description:The list of subdomains (names or ids) that this object will be restricted to. Leave empty to apply to all subdomains.

  • coefficient0.The coefficient setting the constrained values. A functor is any of the following: a variable, an MFEM material property, a function, a postprocessor or a number.

    Default:0.

    C++ Type:MFEMScalarCoefficientName

    Controllable:No

    Description:The coefficient setting the constrained values. A functor is any of the following: a variable, an MFEM material property, a function, a postprocessor or a number.

  • constrain_subdomain_boundaryTrueWhether to constrain the degrees of freedom on the boundary of the subdomains given by 'block', both on interfaces with other subdomains and on the exterior boundary of the mesh. If false, only the degrees of freedom interior to the subdomains are constrained.

    Default:True

    C++ Type:bool

    Controllable:No

    Description:Whether to constrain the degrees of freedom on the boundary of the subdomains given by 'block', both on interfaces with other subdomains and on the exterior boundary of the mesh. If false, only the degrees of freedom interior to the subdomains are constrained.

  • variableVariable on which to apply the constraint

    C++ Type:VariableName

    Unit:(no unit assumed)

    Controllable:No

    Description:Variable on which to apply the constraint

Optional Parameters

  • control_tagsAdds user-defined labels for accessing object parameters via control logic.

    C++ Type:std::vector<std::string>

    Controllable:No

    Description:Adds user-defined labels for accessing object parameters via control logic.

  • enableTrueSet the enabled status of the MooseObject.

    Default:True

    C++ Type:bool

    Controllable:No

    Description:Set the enabled status of the MooseObject.

Advanced Parameters

Input Files