CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

CFX 10.0 If command

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By ghorrocks
  • 1 Post By ghorrocks

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   July 5, 2017, 20:17
Default CFX 10.0 If command
  #1
New Member
 
Fernando
Join Date: Apr 2013
Posts: 15
Rep Power: 13
camposrf is on a distinguished road
I am trying to make a conditional expression with "if" command in CFX-10.0

I read these articles:
Conditional Expression in CFX Pre

"if" command in CFX-13 is not really an "if" command!!!!

But I do not know how to do it in CFX pre 10.0

I saw in youtube that "if" expression works on CFX 14, but I do not have it (my PC is old)
https://www.youtube.com/watch?v=GJXQNhmqyhE
(11:25)

The string that I want to use is for define the volume fraction in a water tank:
WaterVolFrac =if(y<WaterHt,1,0)*if(y>-0.1[ft],1,0)

This is the error message:
__________________________________________

ERROR
Error in setting: "WaterVolFrac" via the expression:
if(y<WaterHt,1,0)*if(y>-0.1[ft],1,0)
Error found at the start of the line, at item: if
unrecognised name
__________________________________________


I read the _CFXTutorial.book.pdf, Tutorial_FreeSurfaceBump.pdf but they don't use the if command, they use this string:
DownVFAir = step((y-DownH)/1[m])
camposrf is offline   Reply With Quote

 


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
launch cfx from command line question windhair CFX 3 May 19, 2011 07:16
Export CGNS with CFX 10.0 Luca CFX 1 December 29, 2010 06:09
Low Reynolds Number k-epsilon formulation CFX 10.0 Chris CFX 4 December 7, 2009 23:51
How to red a Gambit mesh with Ansys CFX 10.0 jpsegura CFX 5 June 12, 2007 02:20
CFX 4.4 installation problem Pandu Sattvika CFX 1 December 1, 2001 04:07


All times are GMT -4. The time now is 06:33.