|
[Sponsors] |
October 31, 2014, 09:42 |
how to use "Step" function in CFX?
|
#1 |
New Member
AMB
Join Date: Feb 2013
Posts: 24
Rep Power: 13 |
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) ?????? |
|
October 31, 2014, 10:17 |
|
#2 |
Senior Member
Mr CFD
Join Date: Jun 2012
Location: Britain
Posts: 361
Rep Power: 15 |
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]) |
|
November 1, 2014, 05:30 |
|
#3 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,872
Rep Power: 144 |
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.
|
|
|
|
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 |