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

how to use "Step" function in CFX?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 31, 2014, 09:42
Default how to use "Step" function in CFX?
  #1
New Member
 
AMB
Join Date: Feb 2013
Posts: 24
Rep Power: 13
BOUALOUACHE is on a distinguished road
hi friends , i want to use the "step" function to limite a domain for air volum fraction ,
so hwo can i use this function in two directions (X and Y) ??????
BOUALOUACHE is offline   Reply With Quote

Old   October 31, 2014, 10:17
Default
  #2
Senior Member
 
JuPa's Avatar
 
Mr CFD
Join Date: Jun 2012
Location: Britain
Posts: 361
Rep Power: 15
JuPa is on a distinguished road
You can multiply step functions to create a sharp 90 degree angle in the x-y position.

E.g. step((5[m] + y) / 1[m]) * step((5[m] + x) / 1[m])
JuPa is offline   Reply With Quote

Old   November 1, 2014, 05:30
Default
  #3
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,872
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
If you can't handle the step() function then use the if() function. Its syntax is similar to if statements in just about every computer language on earth.
ghorrocks 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
[blockMesh] Errors during blockMesh meshing Madeleine P. Vincent OpenFOAM Meshing & Mesh Conversion 51 May 30, 2016 11:51
is internalField(U) equivalent to zeroGradient? immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 02:27
question about cfx wall function piyo CFX 1 November 21, 2012 18:17
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 14:06
Droplet Evaporation Christian Main CFD Forum 2 February 27, 2007 07:27


All times are GMT -4. The time now is 05:48.