|
[Sponsors] |
May 14, 2018, 18:58 |
"if" expression problem
|
#1 |
New Member
Kim Gunhyeong
Join Date: May 2018
Location: Seoul, Korea
Posts: 9
Rep Power: 8 |
Hey guys. I have problem in "if" expression.
I try to design butterfly valve model, so I make spherical shape domain which has vavle shape empty space in. Then I give rotation speed to that domain, using expression; if(ctstep<150[ ], 1.046[radian s^-1], 0) but CFX error checker doesnt permit it. Whats problem? Plz help me |
|
May 14, 2018, 19:18 |
|
#2 |
Super Moderator
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144 |
Try:
if(ctstep<150, 1.046[radian s^-1], 0[radian s^-1])
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum. |
|
May 15, 2018, 01:54 |
|
#3 |
Senior Member
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 12 |
ok, so the units are not ok,
but i think that the problem is in your simulation. It might be the problem vith interfaces (sfere) have you split the surface or vhat does the conection look like And you can plot your expresion, and use that, because it is great for troubleshoting it would give you an erorr if you would try to plot it before you run the solution. Last edited by urosgrivc; May 15, 2018 at 04:31. |
|
May 15, 2018, 10:55 |
hmm.....
|
#4 |
New Member
Kim Gunhyeong
Join Date: May 2018
Location: Seoul, Korea
Posts: 9
Rep Power: 8 |
Thanks ghorrocks. I do as you recommend, so unit problem disappear But CFX doesn't recognize "ctstep".(I find this expression at CFX post-processing - Current Time Step ) Is it wrong usage? Plz help me. |
|
May 15, 2018, 13:32 |
|
#5 |
Senior Member
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 12 |
Use:
Acumulated time step it is in the wariables |
|
May 15, 2018, 18:36 |
|
#6 |
Senior Member
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,188
Rep Power: 23 |
Why not just use the real variable time "t" instead of time step?
|
|
Tags |
condition, ctstep, expression |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
area does not match neighbour by ... % -- possible face ordering problem | St.Pacholak | OpenFOAM | 11 | September 4, 2024 05:28 |
Define an Expression in Pre with another User Defined Expression and a Variable | fuGGet321 | CFX | 6 | May 8, 2018 17:19 |
Large problem partitioner | tzy | CFX | 3 | February 7, 2018 18:11 |
Modify SST kw model in CFX | Tingyun YIN | CFX | 6 | May 12, 2017 07:44 |
CCL / Monitor Object Problem | James Date | CFX | 4 | September 29, 2010 03:23 |