MFEMGenericFunctorVectorMaterial

Overview

MFEMGenericFunctorVectorMaterial defines one or more vector material properties with values obtained from coefficients on one or more subdomains of the mesh, given by the "block" parameter if provided, or applied to the entire mesh if missing. The vector material properties are named according to members in the "prop_names" parameter, with respective coefficients used to get property values given by the members of "prop_values". The coefficients in "prop_names" must be vector-valued. Numeric constant vector values can also be specified, but must be enclosed in curly braces to mark the start and end of the vector, e.g. {1. 0. 0.}.

Example Input File Syntax

[FunctorMaterials<<<{"href": "../../../syntax/FunctorMaterials/index.html"}>>>]
  [RigidiumWeightDensity]
    type = MFEMGenericFunctorVectorMaterial<<<{"description": "Declares material vector properties based on names and coefficients prescribed by input parameters.", "href": "MFEMGenericFunctorVectorMaterial.html"}>>>
    prop_names<<<{"description": "The names of the properties this material will have"}>>> = 'gravitational_force_density'
    prop_values<<<{"description": "The corresponding names of coefficients associated with the named properties. 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)."}>>> = '{0.0 0.0 -1e-2}'
    block<<<{"description": "The list of subdomains (names or ids) that this object will be restricted to. Leave empty to apply to all subdomains."}>>> = 1
  []
  [BendiumWeightDensity]
    type = MFEMGenericFunctorVectorMaterial<<<{"description": "Declares material vector properties based on names and coefficients prescribed by input parameters.", "href": "MFEMGenericFunctorVectorMaterial.html"}>>>
    prop_names<<<{"description": "The names of the properties this material will have"}>>> = 'gravitational_force_density'
    prop_values<<<{"description": "The corresponding names of coefficients associated with the named properties. 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)."}>>> = '{0.0 0.0 -5e-3}'
    block<<<{"description": "The list of subdomains (names or ids) that this object will be restricted to. Leave empty to apply to all subdomains."}>>> = 2
  []
[]
(test/tests/mfem/kernels/gravity.i)

Input Parameters

  • prop_namesThe names of the properties this material will have

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

    Controllable:No

    Description:The names of the properties this material will have

  • prop_valuesThe corresponding names of coefficients associated with the named properties. 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).

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

    Controllable:No

    Description:The corresponding names of coefficients associated with the named properties. 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).

Required 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.

  • boundary-1 The list of boundaries (ids or names) from the mesh where this object applies. Defaults to all boundaries.

    Default:-1

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

    Controllable:No

    Description:The list of boundaries (ids or names) from the mesh where this object applies. Defaults to all boundaries.

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