LBMStackTensors

Stack given scalar tensor buffers and output vectorial tensor.

Stacks multiple scalar tensors to create one vectorial tensor buffer.

Overview

Stacks multiple scalar or vector buffers along the stencil index to form a distribution-like tensor with Q components per cell. Useful for constructing custom distribution arrays from component fields.

Example Input File Syntax

[TensorComputes<<<{"href": "../../syntax/TensorComputes/index.html"}>>>]
  [Initialize<<<{"href": "../../syntax/TensorComputes/Initialize/index.html"}>>>]
    [u_stack]
      type = LBMStackTensors<<<{"description": "Stack given scalar tensor buffers and output vectorial tensor.", "href": "LBMStackTensors.html"}>>>
      buffer<<<{"description": "The buffer this compute is writing to"}>>> = u
      inputs<<<{"description": "Names of input tensor buffers to stack."}>>> = 'ux uy'
    []
  []
[]
(test/tests/lbm/stacking.i)

Input Parameters

  • bufferThe buffer this compute is writing to

    C++ Type:std::string

    Controllable:No

    Description:The buffer this compute is writing to

  • inputsNames of input tensor buffers to stack.

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

    Controllable:No

    Description:Names of input tensor buffers to stack.

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