- bufferThe buffer this compute is writing to
C++ Type:std::string
Controllable:No
Description:The buffer this compute is writing to
- inputInput buffer name
C++ Type:std::string
Controllable:No
Description:Input buffer name
GradientVector
Gradient of the coupled tensor buffer returned as a stacked torch tensor.
GradientVector computes the spatial gradient of a scalar buffer and returns a torch tensor with components stacked along the trailing dimension. When "input_is_reciprocal" = true, the input is treated as already in reciprocal space.
Overview
The gradient is computed spectrally using FFTs as
In 2D/1D, the unused components are zero.
Example Input File Syntax
[TensorComputes<<<{"href": "../../syntax/TensorComputes/index.html"}>>>]
[Initialize<<<{"href": "../../syntax/TensorComputes/Initialize/index.html"}>>>]
[grad_c]
type = GradientVector<<<{"description": "Gradient of the coupled tensor buffer returned as a stacked torch tensor.", "href": "GradientVector.html"}>>>
buffer<<<{"description": "The buffer this compute is writing to"}>>> = grad_c
input<<<{"description": "Input buffer name"}>>> = c
[]
[]
[](test/tests/typed_tensors/gradient_vector.i)Input Parameters
- input_is_reciprocalFalseInput buffer is already in reciprocal space
Default:False
C++ Type:bool
Controllable:No
Description:Input buffer is already in reciprocal space
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.