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

Computing local flow value difference reference value

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 31, 2006, 19:33
Default I would like to compute the pr
  #1
Member
 
Join Date: Mar 2009
Posts: 43
Rep Power: 17
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 )
{
...
etc
}

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

Vatant

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

Reply


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
OpenFoam local and local sven82 OpenFOAM Installation 1 December 9, 2008 09:40
High Local mach number for sub sonic flow kali CFX 0 November 2, 2006 10: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 14:06.