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

Turbomachinery - change rotation every 30 timesteps (CEL)

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 2, 2011, 13:51
Question Turbomachinery - change rotation every 30 timesteps (CEL)
  #1
Member
 
Join Date: Mar 2010
Posts: 42
Rep Power: 16
lindner is on a distinguished road
Hi,
The title gives a hint, i need to change the rotation of my machine every 30 timesteps, increasing in 10 rpm.
Example: Iteration 1 angular velocity = 120
Iteration 30 angular velocity = 120+10
Iteration 60 angular velocity = 120+10+10
I tought something like this
if(citern=30, AngVel=AngVel+10)
if(citern=60, AngVel=AngVel+10) ...

I never programmed in CEL, so i don't know all the options to script that.
Anyone have an ideia to make this as simple as possible?

Thanks in advance
lindner is offline   Reply With Quote

Old   September 2, 2011, 18:36
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,700
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
You could write this function using the mod function in CEL, or you could define a 1D interpolation function.
ghorrocks is offline   Reply With Quote

Old   September 6, 2011, 07:03
Default
  #3
Member
 
Join Date: Mar 2010
Posts: 42
Rep Power: 16
lindner is on a distinguished road
Thanks ghorrocks, i will try this mod function and post the results later.
lindner is offline   Reply With Quote

Old   September 6, 2011, 08:27
Default
  #4
Member
 
Join Date: Mar 2010
Posts: 42
Rep Power: 16
lindner is on a distinguished road
ok, now my rotation speed increases every 30 iterations, see above.

rot = 120 [rev min^-1]
rotVar = rot + r1*yy+r2*yy+r3*yy
r1 = if(citern>=30,1,0)
r2 = if(citern>=60,1,0)
r3 = if(citern>=90,1,0)
yy = 10 [rev min^-1]

Is it possible to make the variable dependent on the RMS residuals instead of iterations? Like if (RMS<0.0001,1,0)
What should be in the place of RMS variable?

thanks
lindner is offline   Reply With Quote

Old   September 6, 2011, 18:56
Default
  #5
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,700
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
I don't think the RMS residuals are a CEL variable, so I don't think you have access to it.
ghorrocks is offline   Reply With Quote

Reply

Tags
turbine cel timestep

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
UDF to change Rotation Speed in a MRF simulation Mike FLUENT 3 September 27, 2011 06:46
setting CEL dependent on change of volumeInt() Daiga CFX 4 April 5, 2007 11:56
Relief Plots in CFX Michael CFX 15 June 30, 2006 08:01
no enthalpy change across the momentum source Atit Koonsrisuk CFX 2 December 19, 2005 02:33
Multicomponent fluid Andrea CFX 2 October 11, 2004 05:12


All times are GMT -4. The time now is 22:23.