TensorDirichletBC

Dirichlet boundary condition (u = value) on a non-periodic domain face.

Overview

Imposes "value" on one face of a non-periodic direction. It is TensorRobinBC with and . The value can vary along the face, from "value_function" or "value_buffer" (see the BCs system).

Example Input File Syntax

[TensorComputes<<<{"href": "../../syntax/TensorComputes/index.html"}>>>]
  [BCs<<<{"href": "../../syntax/TensorComputes/BCs/index.html"}>>>]
    [left]
      type = TensorDirichletBC<<<{"description": "Dirichlet boundary condition (u = value) on a non-periodic domain face.", "href": "TensorDirichletBC.html"}>>>
      variable<<<{"description": "The field this boundary condition applies to."}>>> = u
      boundary<<<{"description": "Which face of the domain this boundary condition applies to."}>>> = left
      value<<<{"description": "Prescribed value of the field on this face (u = value)."}>>> = 1
    []
    [right]
      type = TensorDirichletBC<<<{"description": "Dirichlet boundary condition (u = value) on a non-periodic domain face.", "href": "TensorDirichletBC.html"}>>>
      variable<<<{"description": "The field this boundary condition applies to."}>>> = u
      boundary<<<{"description": "Which face of the domain this boundary condition applies to."}>>> = right
      value<<<{"description": "Prescribed value of the field on this face (u = value)."}>>> = 3
    []
  []
[]
(test/tests/real_space/dirichlet_linear.i)

Input Parameters

  • boundaryWhich face of the domain this boundary condition applies to.

    C++ Type:MooseEnum

    Options:left, right, bottom, top, front, back

    Controllable:No

    Description:Which face of the domain this boundary condition applies to.

  • variableThe field this boundary condition applies to.

    C++ Type:std::string

    Controllable:No

    Description:The field this boundary condition applies to.

Required Parameters

  • value0Prescribed value of the field on this face (u = value).

    Default:0

    C++ Type:Real

    Unit:(no unit assumed)

    Controllable:No

    Description:Prescribed value of the field on this face (u = value).

  • value_bufferBuffer whose first owned cell layer next to the face holds the field value along the face. The compute that writes it must evaluate it at the face position, not at the cell centres.

    C++ Type:std::string

    Controllable:No

    Description:Buffer whose first owned cell layer next to the face holds the field value along the face. The compute that writes it must evaluate it at the face position, not at the cell centres.

  • value_functionFunction giving the field value along the face, evaluated at the face position at the solve time.

    C++ Type:FunctionName

    Unit:(no unit assumed)

    Controllable:No

    Description:Function giving the field value along the face, evaluated at the face position at the solve time.

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