CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Siemens > STAR-CCM+

User field function "if" condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 15, 2013, 10:04
Default User field function "if" condition
  #1
New Member
 
Join Date: Jul 2012
Posts: 9
Rep Power: 13
djack is on a distinguished road
Hi,
I'm having one interface between two rooms at different temperature.
Natural convection is accuring between the rooms.
Hot air is entering at the top of the interface and cold air is leaving at the bottom.
My question is how can I define an unser field function (and surface integral) to measure the flow entering the interface.
I tried the following but didn't work :
($$Velocity[0] >= 0) ? $$Velocity[0] : 0
Can you help me, I'm not confortable with field function.
Thanks,
Djack
djack is offline   Reply With Quote

Old   May 15, 2013, 17:20
Default
  #2
cwl
Senior Member
 
Chaotic Water
Join Date: Jul 2012
Location: Elgrin Fau
Posts: 435
Rep Power: 17
cwl is on a distinguished road
Hi
I've tried the problem you described - and it works fine exactly with the field function you wrote and Surface Integral over the Interface between rooms.
Describe the problem, please
cwl is offline   Reply With Quote

Old   May 16, 2013, 03:35
Default
  #3
New Member
 
Join Date: Jul 2012
Posts: 9
Rep Power: 13
djack is on a distinguished road
You're absolutly right !
Thanks
djack 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
problems after decomposing for running alessio.nz OpenFOAM 7 March 5, 2021 04:49
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 05:42
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 14:11
Compilation errors in ThirdPartymallochoard feng_w OpenFOAM Installation 1 January 25, 2009 06:59
Problem with compile the setParabolicInlet ivanyao OpenFOAM Running, Solving & CFD 6 September 5, 2008 20:50


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