# Turbomachinery - change rotation every 30 timesteps (CEL)

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

 September 2, 2011, 13:51 Turbomachinery - change rotation every 30 timesteps (CEL) #1 Member   Join Date: Mar 2010 Posts: 42 Rep Power: 9 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

 September 2, 2011, 18:36 #2 Super Moderator   Glenn Horrocks Join Date: Mar 2009 Location: Sydney, Australia Posts: 13,876 Rep Power: 107 You could write this function using the mod function in CEL, or you could define a 1D interpolation function.

 September 6, 2011, 07:03 #3 Member   Join Date: Mar 2010 Posts: 42 Rep Power: 9 Thanks ghorrocks, i will try this mod function and post the results later.

 September 6, 2011, 08:27 #4 Member   Join Date: Mar 2010 Posts: 42 Rep Power: 9 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

 September 6, 2011, 18:56 #5 Super Moderator   Glenn Horrocks Join Date: Mar 2009 Location: Sydney, Australia Posts: 13,876 Rep Power: 107 I don't think the RMS residuals are a CEL variable, so I don't think you have access to it.

 Tags turbine cel timestep

 Thread Tools Display Modes Linear Mode

 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 OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Mike FLUENT 3 September 27, 2011 06:46 Daiga CFX 4 April 5, 2007 11:56 Michael CFX 15 June 30, 2006 08:01 Atit Koonsrisuk CFX 2 December 19, 2005 03:33 Andrea CFX 2 October 11, 2004 05:12

All times are GMT -4. The time now is 10:25.