|
[Sponsors] |
July 11, 2006, 06:43 |
(CFX POST) Rotational Speed
|
#1 |
Guest
Posts: n/a
|
Dear friends,
I am very much new to CFD and use CFX 10.0 for my simulation of a compressor stage (R1/S1). For the analysis I specify a shaft speed of (-12000 [rev min^-1]) in CFX Pre. Now in post I have a macro line to creat the "output.dat" file and print required results there. I want the tool to print the same value of rotational speed (-12000 [rev min^-1]) using custom CFX post Macro. Guess I am missing something here. How can I obtain this same value of rotational speed (-12000 [rev min^-1]) and print it on to the "output.dat" file. I would be very grateful if you could help me out. Best regards.... |
|
July 11, 2006, 09:52 |
Re: (CFX POST) Rotational Speed
|
#2 |
Guest
Posts: n/a
|
You can get "omega" from the result file. If the unit is I-P, then RPM=omega*9.5463. Anyway, print out omega first, then you would know what is the conversion constant.
|
|
July 11, 2006, 11:43 |
Re: (CFX POST) Rotational Speed
|
#3 |
Guest
Posts: n/a
|
Dear Dr. Bian,
Thank you very much for the solution. I would be much obliged if you could kindly let me know how could I print omega from the result file using a custom macro i.e. what should be the syntax within the macro for getting this readily available (CFXpre INPUT) value. I tried a lot of combination but in vain. Thanking once again. Best regards, Arjun |
|
July 11, 2006, 13:49 |
Re: (CFX POST) Rotational Speed
|
#4 |
Guest
Posts: n/a
|
The rotational speed of your domain is provided in Post as a CEL variable named "Angular Velocity".
|
|
July 12, 2006, 05:41 |
Re: (CFX POST) Rotational Speed
|
#5 |
Guest
Posts: n/a
|
Dear Robin,
Thank you for the answer. As I am new to CFX especially in CFX macros. Could you kindly give me an exact syntax which I need to write within the macro so that I could print the rotational speed of my domain which is provided in Post as a CEL variable named "Angular Velocity". as an output in a file (for example I write the following to get the total pressure: ! $Pt1 = massFlowAveAbs("Total Pressure in Stn Frame","R1 Inlet"); # Total pressure at rotor1 inlet, Pa Thanks in advance. Best regards, Arjun |
|
July 12, 2006, 15:28 |
Re: (CFX POST) Rotational Speed
|
#6 |
Guest
Posts: n/a
|
Hi Arjun,
Use the "evaluate()" Perl function. It evaluates any expression and returns the value and units as a string. You can also use this insteead of the massFlowAveAbs() funtion. For example: ($Pt1,$Pt1_units)=evaluate('massFlowAveAbs(Total Pressure in Stn Frame)@R1 Inlet'); Note the single quotes. If you use double quotes, you will need to escape the @ character or Perl will choke. To get the rotational speed: ($omega, $omega_units)=evaluate('Angular Velocity'); As an alternative to your macro, you could always populate a table with the expressions you want and simply export the table to a csv or html file instead. Regards, Robin |
|
July 13, 2006, 05:49 |
Re: (CFX POST) Rotational Speed
|
#7 |
Guest
Posts: n/a
|
Dear Robin,
Thank you very much for the solution. It has solved the problem. I now can calculate using the equation; abs(omega) = (3.14 * RPM) / 30 the speed. So the obtained RPM value is 12006.076302498 (target value: 12000). Is this slight difference due to the mathematical solver? Is their any scope of bringing the value down close to the true value of 12,000 RPM? Thank you very much once again. I am very much grateful to you. Best regards, Arjun |
|
July 13, 2006, 10:56 |
Re: (CFX POST) Rotational Speed
|
#8 |
Guest
Posts: n/a
|
Hi Arjun,
Try using 'pi' instead of 3.14. Regards, Robin |
|
July 13, 2006, 21:35 |
Re: (CFX POST) Rotational Speed
|
#9 |
Guest
Posts: n/a
|
Like what Robin said, you can get omega by similar gramma. I am not very good at perl command of ccl. But I would suggest you to look at some demo .cse files in the CFX folder for pump, etc. From that, you can learn more. I just modified those files to calculate and print out the performance report.
|
|
July 13, 2006, 21:38 |
Re: (CFX POST) Rotational Speed
|
#10 |
Guest
Posts: n/a
|
I would say omega is an existing variable when you are in the CFX post. I calculate rpm from omega. Meanwhile, the table Robin mentioned is also very useful and more direct.
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to get reynolds stress values in POST CFX | syler3321 | CFX | 6 | January 1, 2017 08:54 |
CFX post legend modification | mactech001 | CFX | 3 | December 25, 2011 23:12 |
CFX post - graph | kmgraju | CFX | 0 | July 22, 2010 12:59 |
CFX Post export problem | jeff_F | CFX | 0 | August 17, 2009 22:25 |
chart for transiente simulation - CFX Post | rogbrito | CFX | 0 | June 22, 2009 13:12 |