|
[Sponsors] |
![]() |
![]() |
#1 |
New Member
fluidflow
Join Date: Dec 2015
Posts: 5
Rep Power: 7 ![]() |
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 |
|
![]() |
![]() |
![]() |
![]() |
#2 |
New Member
Saga
Join Date: Nov 2020
Posts: 2
Rep Power: 0 ![]() |
Did you find the solution?
|
|
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Nejc
Join Date: Feb 2017
Location: Slovenia
Posts: 160
Rep Power: 6 ![]() |
where do you need that, paraView? you have a gradient filter there...
|
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Join Date: Apr 2020
Location: UK
Posts: 145
Rep Power: 4 ![]() |
... otherwise, if it is in a solver or utility coding then there is:
Code:
fvc::grad(theta) |
|
![]() |
![]() |
![]() |
![]() |
#5 |
Member
Eren
Join Date: Aug 2018
Posts: 61
Rep Power: 5 ![]() |
Your answer is in here:
foam.sourceforge.net/docs/Guides-a4/ProgrammersGuide.pdf |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Help! Having problem in accessing volume fraction gradient | Geng Fu | Fluent UDF and Scheme Programming | 13 | April 29, 2020 11:29 |
question regarding LES of pipe flow - pimpleFoam | Dan1788 | OpenFOAM Running, Solving & CFD | 37 | December 26, 2017 15:42 |
Periodic flow using Cyclic - comparison with Fluent | nusivares | OpenFOAM Running, Solving & CFD | 30 | December 12, 2017 06:35 |
Accessing velocity components and gradient of velcoity components | vivekgnhtr | OpenFOAM Programming & Development | 0 | March 11, 2014 12:22 |
Problem accessing Temp. Gradient . . . | Satish | FLUENT | 16 | December 16, 2003 14:44 |