LBMConstantTensor

LBMConstantTensor object.

Fills the buffer with given constant value.

Overview

Writes a constant scalar or vector into the target buffer each time it runs. Use "buffer" to select the destination and "constants" to provide one or more values matching the buffer type and stencil dimension.

Example Input File Syntax

[TensorComputes<<<{"href": "../../syntax/TensorComputes/index.html"}>>>]
  [Initialize<<<{"href": "../../syntax/TensorComputes/Initialize/index.html"}>>>]
    [initial_velocity]
      type = LBMConstantTensor<<<{"description": "LBMConstantTensor object.", "href": "LBMConstantTensor.html"}>>>
      buffer<<<{"description": "The buffer this compute is writing to"}>>> = velocity
      constants<<<{"description": "The scalar constant names."}>>> = '0.0 0.0'
    []
  []
[]
(test/tests/lbm/channel2D.i)

Input Parameters

  • bufferThe buffer this compute is writing to

    C++ Type:std::string

    Controllable:No

    Description:The buffer this compute is writing to

  • constantsThe scalar constant names.

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

    Controllable:No

    Description:The scalar constant names.

Required 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