Swaying in CFX

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

 December 20, 2016, 08:33 Swaying in CFX #1 New Member   AC Join Date: Dec 2016 Posts: 3 Rep Power: 9 Hi all, Below is my inputs in CFX-Pre, how do I define the period of the motion as Ansys CFX won't allow the expression Period because it is already an object. Thanks in advance LIBRARY: CEL: &replace EXPRESSIONS: DownWHeight = 0.12 [m] DownWVF = step((x-UpWLength)/1[m])*step((DownWHeight-y)/1[m]) OverallAirVF = 1-OverallWVF OverallWVF = UpWVF+DownWVF UpWHeight = 0.12 [m] UpWLength = 1.2 [m] UpWVF = step((UpWLength-x)/1[m])*step((UpWHeight-y)/1[m]) XAmplitude = 0.06 [m] XFrequency = 1/Period XOmega = 2*pi*XFrequency XSway = -XAmplitude*(XOmega^2)*sin(XOmega*t) YSway = -9.8 [m s^-2] END END END

 December 20, 2016, 16:32 #2 Super Moderator   Glenn Horrocks Join Date: Mar 2009 Location: Sydney, Australia Posts: 17,767 Rep Power: 143 If "Period" is a reserved variable name then just use another one. Or have I misunderstood your question?

 December 21, 2016, 05:10 #3 New Member   AC Join Date: Dec 2016 Posts: 3 Rep Power: 9 so what other name do I put so CFX understands that i want to define the period of the motion?

 December 21, 2016, 06:13 #4 Super Moderator   Glenn Horrocks Join Date: Mar 2009 Location: Sydney, Australia Posts: 17,767 Rep Power: 143 I am very confused by your question. If you want the period as 5[s] then you can define it with slkjghsa = 5[s], and use it with XFrequency = 1/slkjghsa If you don't like the variable name slkjghsa you can define it as anything you like - except the reserved variable names.

 December 21, 2016, 07:25 #5 New Member   AC Join Date: Dec 2016 Posts: 3 Rep Power: 9 Thanks for your answer

December 21, 2016, 13:28
#6
Senior Member

Join Date: Feb 2011
Posts: 496
Rep Power: 18
Quote:
 Originally Posted by ghorrocks I am very confused by your question. If you want the period as 5[s] then you can define it with slkjghsa = 5[s], and use it with XFrequency = 1/slkjghsa If you don't like the variable name slkjghsa you can define it as anything you like - except the reserved variable names.
Glenn, slkjghsa is bad name, hrrrrrqnfarpombxl is much better.

 Tags cfx, sloshing