|
[Sponsors] |
May 13, 2020, 13:09 |
cel expression help
|
#1 |
New Member
Join Date: Mar 2020
Posts: 10
Rep Power: 6 |
Hello,
I am relatively new to CFD and am trying to use a cel expression for two inputs. Fiestly for changing rotational velocity of a domain, I wish to slow rotation from 222rad/s to 44rad/s in 4 seconds and input this as anexpression for rotational velocity. And secondly to use an expression for inlet velocity to reduce from 50ms-1 to 10ms-1 in 4 seconds also. Thanks |
|
May 13, 2020, 16:14 |
|
#2 |
Senior Member
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,167
Rep Power: 23 |
This is really basic stuff. You should have a look in the documentation or tutorials to learn how to do this kind of stuff, or you will be asking simple questions forever. There are several ways you can do it: User functions, CEL, + more
CEL is not complicated, and you can even make an expression and plot it in CFX Pre to see if you have it correct. These can both be plotted using the equation of a line with a slope y = mx+b V(t) = m*t + Vo m is your slope, value change over time. [m/s^2] Vo is your value at t=0s Or just make a user function, and put in your data points. |
|
May 13, 2020, 18:50 |
|
#3 |
New Member
Join Date: Mar 2020
Posts: 10
Rep Power: 6 |
Apologies,
I forgot to upload the picture, I have tried this but i'm not sure why it's wrong ? |
|
May 13, 2020, 20:22 |
|
#4 |
Senior Member
Join Date: Jun 2009
Posts: 1,804
Rep Power: 32 |
If you check your plot legend for the Y-axis, you will notice the units are [s^-1].
Where is the problem? If you now look to your variables carefully, you have not spaced the units properly ms^-1 is millisecond while [m s^-1] is meter per second. Same for the acceleration. Since you made the same mistake twice, the equation term are consistent, but not what you expected.. Good luck
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to use variable value in CEL expression correctly. | Goenitz | CFX | 2 | September 16, 2019 10:44 |
Outlet boundary condition in interFoam | Andrea_85 | OpenFOAM Running, Solving & CFD | 51 | July 20, 2017 13:31 |
CEL expression in CFX pre | Jane92 | Main CFD Forum | 1 | June 3, 2016 02:48 |
How to install CGNS under windows xp? | lzgwhy | Main CFD Forum | 1 | January 11, 2011 18:44 |
CGNS lib and Fortran compiler | manaliac | Main CFD Forum | 2 | November 29, 2010 06:25 |