Accessing the components of a gradient
1 Attachment(s)
Hi all,
Can you tell me that how can i access the gradient components of a scalar variable in OpenFOAM ? I have a scalar variable theta. I have to find out the y-component of the gradient of theta. then I have to find out the x-component of the gradient of the resultant. See the attachment for more details |
Same problem
Did you find the solution?
|
where do you need that, paraView? you have a gradient filter there...
|
... otherwise, if it is in a solver or utility coding then there is:
Code:
fvc::grad(theta) |
Your answer is in here:
foam.sourceforge.net/docs/Guides-a4/ProgrammersGuide.pdf |
All times are GMT -4. The time now is 23:52. |