MFEMVectorEssentialConstraint

Overview

Strongly constrains a vector variable within the subdomain(s) given by block to the projection of vector_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 vector analogue of MFEMScalarEssentialConstraint and works for vector H1 as well as H(curl) and H(div) function spaces.

For a complex variable use MFEMComplexVectorEssentialConstraint.

Example Input File Syntax

[Constraints<<<{"href": "../../../syntax/Constraints/index.html"}>>>]
  [circle_interior]
    type = MFEMVectorEssentialConstraint<<<{"description": "Strongly constrains a vector variable in the specified subdomain(s).", "href": "MFEMVectorEssentialConstraint.html"}>>>
    variable<<<{"description": "Variable on which to apply the constraint"}>>> = E
    block<<<{"description": "The list of subdomains (names or ids) that this object will be restricted to. Leave empty to apply to all subdomains."}>>> = wire
    vector_coefficient<<<{"description": "The vector coefficient setting the constrained values. A functor is any of the following: a variable, an MFEM material property, a function, a postprocessor or a numeric vector value (enclosed in curly braces)."}>>> = '2.0 3.0'
  []
[]
(test/tests/mfem/constraints/vector_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.

  • 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

  • vector_coefficient0. 0. 0.The vector coefficient setting the constrained values. A functor is any of the following: a variable, an MFEM material property, a function, a postprocessor or a numeric vector value (enclosed in curly braces).

    Default:0. 0. 0.

    C++ Type:MFEMVectorCoefficientName

    Controllable:No

    Description:The vector coefficient setting the constrained values. A functor is any of the following: a variable, an MFEM material property, a function, a postprocessor or a numeric vector value (enclosed in curly braces).

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