How to calculate the average of torque in transient Ansys CFX Simulation
Hi,
I am trying to calculate the power of a wind turbine in a transient simulation. My simulate of a rotor blade works well but as a result I need the torque of the blade as mean over many time steps. For my CFD simulation I am using Ansys CFX 14.5. I can get the torque in CFD-Post ->Calculators -> Function Calculator -> Fuction:torque (Location). But just for the current time step I chose. Those anyone know how I can get the torque Results over all my time steps? As a plot, a file or somehow else? Thanks ahead. |
I would export the torque versus time history and do the averaging in another package like excel, matlab or whatever you wish. To get the full time history, make a monitor point set to torque_x/y/z()@location and then export this point in the solver manager.
|
Thanks @ghorrocks. It works just perfect in this way!
|
in case you did not set the monitor point before calculating, here is a little script which loops through each time step for a given res-file. start it from the cfx command line via cfx5perl. res-file needs to be next to the script (or viceversa).
Code:
>load filename=YOURRESFILE.res |
Quote:
|
"torque_z()@pa" should actually work. Do you need torque over time or are you simulate 'steady state'?
|
Torque over time. I'm simulating a vertical axis wind turbine and I need in the torque vs angular position curve.
|
If you create a output expression with "torque_z()@pa" in CFX-Setup you should get the curve as User Points in CFX-Solver.
|
I will try it.
|
1 Attachment(s)
Is it what I should do? I type "torque_z()@pa", press enter and apply and the field doesn't go empty. But, if I press ok, then open again the monitor point, the output variable goes automatically to "Absolute Pressure".
|
Ok you have to change the Option drop down menu from "Cartesian Coordinates" to "Expression" then CFX will accept the torque-espresssion. God luck ;)
|
It works now. Thank you very much :)
The unit of the torque measured is relative to the solution units, right? |
3 Attachment(s)
I was testing the results with this method and noticed that the value of torque obtained with the monitor point differed a bit from the value acquired by using the 'Function Calculator' (in Calculators) in a given timestep.
So, to have an idea of this difference I've made a simple simulation of a rotating "square" in an air flux, first with it still, to have the inicial values, and then with it moving, and a monitor point measuring the force in the x direction in the sides of the square (defined as "paredes"). After, I've compared the data exported from the monitor point and the force in the x direction evaluated at each timestep using the 'Function Calculator'. The data is shown in the third image (in the table, data refers to "exported data", and manual to data obtained with the function calculator). It seems that the x axis using the monitor point is refers to a frame of reference fixed in the rotating domain. I've tried marking the "Coord Frame" box and selectinig the "Coord 0" (the only one that appear), but the result is the same. How can I export the data referred to the global coordinate system? |
Average Temperature
Hello,
The subject treated here is very interesting. I would like to ask a question in my turn. My simulation on CFX is on heating a large block into contact with a combustion chamber. A heat flow is transmitted to the block and the temperature of the block varies with time. So I get for each time step the temperature profiles of tho block. When I want to see the transient variation of the block temperature with XY - transient or sequence in Chart I can do it for points only (not all the domain). Does anyone can tell me, please, how to plot the average temperature of all my block function of time? Or how to export at each timestep the average temperature of my block. Thank you in advance for your help. |
You can create an expession like volumeAve(T)@block And use it instread of the Point in the Chart schematic.
For the export via script see #4 above. |
Thank you so much.
|
Thank you so much for all of this information!
I would like to monitor the pressure of a moving wall. Unfortunately it doesn't work like that: "pressure()@MOVING_WALL" Ansys doesn't know the word "pressure". What can I do? |
The variable goes into the parenthesis. The first part is how you want to evaluate the variable. In your case for example:
areaAve(Pressure)@moving_wall maxVal(Pressure)@moving_wall minVal(Pressure)@moving_wall can give you the area average, the max value and min value. Please look up CEL in the help. |
Thank you very much! I'm new in CFX. I will look up CEL.
Saved me a lot of hours! Thank you! |
Quote:
I want to do something similar with what you showed Benjamin how to do, but I'm using fluent, I want to export the torque at each time step of my analysis to determine what is the optimum angle of attack throughout the rotation, I tried creating a monitoring point and setting the expression as stated above in the calculation activities in fluent but when I run it is says invalid what am I doing wrong thanks |
Ronald, I would ask in the Fluent forum...
|
Quote:
Hi, I am facing same problem now. I do not know but you might have looked up in help file with "Force" as a topic. There they have defined why this difference is there but I am not sure about how to solve this problem. If you know any means then kindly let me know. This problem is specifically for rotating transient cases.:) |
Quote:
I wanted an expression for calculating the force at a region for particular time step using CEL. The present expression I am using is (force_x()@piston), I have to select the time step to select each time to calculate the force for the particular time step. If I could manage to modify the present expression to calculate through expression. Please help. |
Quote:
|
All times are GMT -4. The time now is 18:36. |