- bufferThe buffer this compute is writing to
C++ Type:std::string
Controllable:No
Description:The buffer this compute is writing to
- directionWhich axis to take the gradient along.
C++ Type:MooseEnum
Controllable:No
Description:Which axis to take the gradient along.
- inputInput buffer name
C++ Type:std::string
Controllable:No
Description:Input buffer name
FFTGradient
Tensor gradient.
Compute the gradient component of a real space tensor along a selected axis using the spectral gradient. Internally this involves a forward and a backward Fourier transform and inbetween a multiplication with the vector and the imaginary unit .
Example Input File Syntax
[TensorComputes]
[Solve]
[to_k]
type = ForwardFFT
buffer = cbar
input = c
[]
[dc_dx]
type = FFTGradient
buffer = dc_dx
input = c
direction = 0 # 0:x, 1:y, 2:z
[]
[]
[]
!listing-endInput 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.