PlainTensorBuffer

Generic TensorBuffer object.

A PlainTensorBuffer holds a plain vanilla torch::Tensor and is interpreted as a buffer of scalar values.

Overview

Generic N-dimensional tensor buffer for scalar, vector, or user-defined data not tied to an LBM stencil. Optional "map_to_aux_variable" enables fast projection onto a matching mesh variable.

Example Input File Syntax

[TensorBuffers<<<{"href": "../../syntax/TensorBuffers/index.html"}>>>]
  [grad_sq]
  []
[]
(test/tests/gradient/gradient_square.i)

Input Parameters

  • map_from_aux_variableSync the given AuxVariable to the buffer contents

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

    Unit:(no unit assumed)

    Controllable:No

    Description:Sync the given AuxVariable to the buffer contents

  • map_to_aux_variableSync the given AuxVariable to the buffer contents

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

    Unit:(no unit assumed)

    Controllable:No

    Description:Sync the given AuxVariable to the buffer contents

  • reciprocalFalseIs this a reciprocal space tensor?

    Default:False

    C++ Type:bool

    Controllable:No

    Description:Is this a reciprocal space tensor?

  • value_dimensionsOptional value dimensions

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

    Controllable:No

    Description:Optional value dimensions

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

Child Objects