CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   CFX (http://www.cfd-online.com/Forums/cfx/)
-   -   how to write torque (of pump rotor) to file automaticly? (CFX) (http://www.cfd-online.com/Forums/cfx/97925-how-write-torque-pump-rotor-file-automaticly-cfx.html)

yuhai February 28, 2012 12:55

how to write torque (of pump rotor) to file automaticly? (CFX)
 
hallo, dear friends,
I am trying to find a way to write out the value of torque on a rotor, for each time step (from the third rotation to end of simulation), to a .txt file. (it would be much better, if i can get a time-averaged value for it by the end.)

I hope that could be done in an automatic way, that means, it could be done with a command-line command, or just by settings in the .def file. Because I need to do hundreds of simulations, and I don't want to do this each time by hand.

Can you give me some ideas? must I use User-Fortran? or just some settings in CFX-PRE?

(I am using CFX, transient)

Thanks in advance!

ghorrocks February 28, 2012 18:22

The tutorials include an example of how to do something similar. Have a look at the immersed solid example.

Alternately you can write it to a monitor point and use cfx5mon (I think that's the right command, better check it) to extract it. Then a simple batch/script file can process it and produce whatever information you want.

yuhai February 29, 2012 11:18

Thank you Glenn,
the command is cfx5mondata -res CFX_029.res -varrule "CATEGORY = USER POINT" -out aaa


All times are GMT -4. The time now is 14:40.