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

Gradient calculation

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 20, 2008, 12:48
Default I define a volScalarField linP
  #1
Senior Member
 
Jens Klostermann
Join Date: Mar 2009
Posts: 117
Rep Power: 8
jens_klostermann is on a distinguished road
I define a volScalarField linP = gradP * (flowDirection & (mesh.C()))
,where gradP is a constant scalar and flowDirection a unitvector (both as in channelOodles)

if I now check mag(fvc::grad(linP)) it is not equal gradP, why?

Is there a way to improve this?

Jens
jens_klostermann is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gradient calculation Harry Main CFD Forum 3 October 7, 2006 04:19
gradient calculation UserFortran code Karlis CFX 4 June 20, 2005 11:58
Gradient calculation phil CFX 3 April 11, 2005 12:03
Calculation of velocity gradient Chris Main CFD Forum 8 December 18, 2003 09:35
Gradient calculation in CFD apurva shukla Main CFD Forum 1 August 21, 1998 07:05


All times are GMT -4. The time now is 19:51.