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

Comparing values of two different fields

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 30, 2009, 05:13
Default Comparing values of two different fields
  #1
New Member
 
andrianomena
Join Date: Mar 2009
Location: madagascar
Posts: 23
Rep Power: 17
sambatra is on a distinguished road
Hi there,
I'm trying to implement this condition:
if T<441 K
{
rsech = f(T);
}
T is a temperature(K)
rsech is (volScalarField) function of T
Here is What I tried:
I created a volScalarField C of which the values are set equal to 441 K,then I wrote this:
if(T.mesh().V()<C.mesh().V())
{
rsech = f(T) (rsech is calculated)
}
it runs but it doesn't give the expected values!!
Can somebody help me out please?
Thanks in advance
Best Regards
sambatra 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
max node values exceed max element values in contour plot jason_t FLUENT 0 August 19, 2009 12:32
PostChannel maka OpenFOAM Post-Processing 5 July 22, 2009 10:15
exact face values RubenG Main CFD Forum 0 June 22, 2009 12:09
strange node values @ solid/fluid interface - help JB FLUENT 2 November 1, 2008 13:04
comparing simulation-experimental values for Cl,Cd Rodrigo Madariaga FLUENT 5 May 31, 2001 05:48


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