CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Accessing the components of a gradient

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By ARUNAVA SENGUPTA

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 29, 2016, 10:48
Default Accessing the components of a gradient
  #1
New Member
 
fluidflow
Join Date: Dec 2015
Posts: 5
Rep Power: 7
ARUNAVA SENGUPTA is on a distinguished road
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
Attached Files
File Type: pptx gradient component.pptx (93.0 KB, 10 views)
the_ichthyologist likes this.
ARUNAVA SENGUPTA is offline   Reply With Quote

Old   November 26, 2020, 09:40
Default Same problem
  #2
New Member
 
Saga
Join Date: Nov 2020
Posts: 1
Rep Power: 0
chunmun is on a distinguished road
Did you find the solution?
chunmun is offline   Reply With Quote

Old   November 27, 2020, 02:17
Default
  #3
Senior Member
 
kandelabr's Avatar
 
Nejc
Join Date: Feb 2017
Location: Slovenia
Posts: 160
Rep Power: 5
kandelabr is on a distinguished road
where do you need that, paraView? you have a gradient filter there...
__________________
www.damogranlabs.com
kandelabr is offline   Reply With Quote

Old   November 27, 2020, 11:02
Default
  #4
Member
 
Join Date: Apr 2020
Location: UK
Posts: 80
Rep Power: 2
Tobermory is on a distinguished road
... otherwise, if it is in a solver or utility coding then there is:
Code:
fvc::grad(theta)
Perhaps you might consider giving a little more information on what you are trying to achieve?
Tobermory is offline   Reply With Quote

Old   November 27, 2020, 11:43
Default
  #5
Member
 
Eren
Join Date: Aug 2018
Posts: 59
Rep Power: 5
ErenC is on a distinguished road
Your answer is in here:
foam.sourceforge.net/docs/Guides-a4/ProgrammersGuide.pdf
ErenC is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
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


All times are GMT -4. The time now is 17:34.