- 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
NEML2GradientVector
Object requires NEML2.
NEML2GradientVector computes the spatial gradient of a scalar buffer and returns a vector tensor (neml2::Vec) with components . 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.
Requires NEML2 support to enable the neml2::Vec value type.
Example Input File Syntax
[TensorComputes<<<{"href": "../../syntax/TensorComputes/index.html"}>>>]
[Initialize<<<{"href": "../../syntax/TensorComputes/Initialize/index.html"}>>>]
[grad_c]
type = NEML2GradientVector<<<{"description": "Object requires NEML2.", "href": "NEML2GradientVector.html"}>>>
buffer<<<{"description": "The buffer this compute is writing to"}>>> = grad_c
input<<<{"description": "Input buffer name"}>>> = c
[]
[]
[](test/tests/typed_tensors/gradient.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.