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

"if" expression problem

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 14, 2018, 17:58
Question "if" expression problem
  #1
New Member
 
Kim Gunhyeong
Join Date: May 2018
Location: Seoul, Korea
Posts: 9
Rep Power: 8
CutyTeemo is on a distinguished road
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
CutyTeemo is offline   Reply With Quote

Old   May 14, 2018, 18:18
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,819
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
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.
ghorrocks is offline   Reply With Quote

Old   May 15, 2018, 00:54
Default
  #3
Senior Member
 
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 11
urosgrivc is on a distinguished road
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 03:31.
urosgrivc is offline   Reply With Quote

Old   May 15, 2018, 09:55
Unhappy hmm.....
  #4
New Member
 
Kim Gunhyeong
Join Date: May 2018
Location: Seoul, Korea
Posts: 9
Rep Power: 8
CutyTeemo is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
Try:

if(ctstep<150, 1.046[radian s^-1], 0[radian s^-1])

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.
CutyTeemo is offline   Reply With Quote

Old   May 15, 2018, 12:32
Default
  #5
Senior Member
 
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 11
urosgrivc is on a distinguished road
Use:
Acumulated time step it is in the wariables
urosgrivc is offline   Reply With Quote

Old   May 15, 2018, 17:36
Default
  #6
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,176
Rep Power: 23
evcelica is on a distinguished road
Why not just use the real variable time "t" instead of time step?
evcelica is offline   Reply With Quote

Reply

Tags
condition, ctstep, expression


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
area does not match neighbour by ... % -- possible face ordering problem St.Pacholak OpenFOAM 11 September 4, 2024 04:28
Define an Expression in Pre with another User Defined Expression and a Variable fuGGet321 CFX 6 May 8, 2018 16:19
Large problem partitioner tzy CFX 3 February 7, 2018 17:11
Modify SST kw model in CFX Tingyun YIN CFX 6 May 12, 2017 06:44
CCL / Monitor Object Problem James Date CFX 4 September 29, 2010 02:23


All times are GMT -4. The time now is 21:11.