**process gradient#
Description#
Calculate the 2D gradient of a variable with respect to the given direction.
Syntax#
**process gradient dir
[ *var var1 … varN]
- dir
should be either
XorY.*varvar1 … varNTarget variables for gradient computation. By default
U1andU2
The resulting (integ) fields are named graddirvari.
Example#
****post_processing
***global_post_processing
**file node
**nset ALL_NODE
**process gradient X
**process gradient Y
***local_post_processing
**file integ
**elset ALL_ELEMENT
**process function
*output epsilon12
*expression 0.5*(gradXU2 + gradYU1) ;
****return
**process gradient3D#
Description#
Calculate the 3D gradient of a variable with respect to the given direction.
Syntax#
**process gradient dir … [ dir ]
\(~\,\) *var var1 var2 var3
- dir
should be either
X,YorZ.*varvar1 var2 var3Target variables for gradient computation (It can handle 3 and only 3 variables).
The resulting (integ) fields are named graddir vari.
Example#
****post_processing
***global_post_processing
**file node
**nset ALL_NODE
**process gradient3D X Y Z
*var U1 U2 U3
****return