CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Computing local flow value difference reference value

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

LinkBack Thread Tools Display Modes
Old   October 31, 2006, 20:33
Default I would like to compute the pr
Join Date: Mar 2009
Posts: 43
Rep Power: 10
vatant is on a distinguished road
I would like to compute the pressure difference between the local pressure value (say pd) and a reference value (dimensionedScalar pr) and need to check if its less than a tolerance?

How can i access the local pressure value ?

Can I do

dimensionedScalar diff = (pd-pref);

and some how get the magnitude of this scalar.

I would like to check

if ( diff < tolerance )

How do i get the magnitude of difference of volScalarFields like pressure ?


PS: Also, what is the function to get absolute value of the difference say ...absolute(pd-pr) ?
vatant is offline   Reply With Quote


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
OpenFoam local and local sven82 OpenFOAM Installation 1 December 9, 2008 10:40
High Local mach number for sub sonic flow kali CFX 0 November 2, 2006 11:23
Inlet or a mass source as a function of local flow HC CFX 2 June 20, 2006 14:54
difference between swirling flow and vortex flow? lcw Main CFD Forum 0 August 22, 2005 09:47

All times are GMT -4. The time now is 00:59.