CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

Arithmetic Average of Monitor Point as Workbench Output Parameter

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 16, 2023, 07:04
Default Arithmetic Average of Monitor Point as Workbench Output Parameter
  #1
New Member
 
Join Date: Dec 2022
Posts: 29
Rep Power: 3
jaxk is on a distinguished road
Hello,

In CFX Workbench I use Parameter Set to vary the angle of attack of a Blade. I want to know the drag coefficient for each angle, but because of vortex shedding it is not a constant value. I therefor want the (time) average value.

I have created an expression to calculate the drag coefficient:
CD = force_x()@Blade/(0.5*RhoWater*BladeArea*Uinf^2)

I then made a Monitor Point to monitor the CD value during the run.
With Monitor Statistics I am taking the Arithmetic Average over a Moving Interval of 100 Iterations.

In the Solver Manager, I can see both the Monitor Point and the Arithmetic Average.

However, in PST I am unable to add the Arithmetic Average as a Workbench Output Parameter.

My only option now is to manually open the Solver Manager for each finished run, and then manually extract the Arithmetic Average for each angle from the graph, but this is very time consuming.

Does anyone have some advice to directly add the average CD as Output Parameter?

Thanks!
jaxk is offline   Reply With Quote

Old   September 16, 2023, 19:11
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
If you want to automate extraction of data from the Solver Manager you can use the command line "cfx5mondata -res [res file] -out [output file]" and it will generate a csv formatted data file of all the solver manager plots.

But I cannot answer your question about making it an output parameter until I get to work tomorrow.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   September 19, 2023, 08:43
Default
  #3
New Member
 
Join Date: Dec 2022
Posts: 29
Rep Power: 3
jaxk is on a distinguished road
Quote:
Originally Posted by ghorrocks View Post
If you want to automate extraction of data from the Solver Manager you can use the command line "cfx5mondata -res [res file] -out [output file]" and it will generate a csv formatted data file of all the solver manager plots.

But I cannot answer your question about making it an output parameter until I get to work tomorrow.
Hey Ghorrocks,

Can you come back to your previous post? I'm really interested in making a Monitor Point an Output Parameter.

Thanks!
jaxk is offline   Reply With Quote

Old   September 19, 2023, 20:18
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,870
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
The only way I can see of doing this is to define a CEL expression which uses the .Trnavg variable operator. As far as I know the variable operator only works on simulation variables (u,v,w,p,T etc) and cannot be applied to CEL expressions (like your CD equation) or CEL functions (like your force_x() function). The .Trnavg variable operator also does not allow much control - it only applies to all points in the simulation so you cannot do a running mean.

So you will be very limited in what you can do if you want to output transient statistics.

Personally, I would not do this sort of stuff in CFX because of these limitations. I would export the raw data from solver manager and do all the processing in some other package where you have full control over what it is doing (python, excel, matlab etc).
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   September 25, 2023, 09:18
Default
  #5
New Member
 
Join Date: Dec 2022
Posts: 29
Rep Power: 3
jaxk is on a distinguished road
Hmm, thanks, I'll keep trying then, maybe I can think of some workaround.
jaxk is offline   Reply With Quote

Reply


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 Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
y+ and u+ values with low-Re RANS turbulence models: utility + testcase florian_krause OpenFOAM 114 August 23, 2023 06:37
Custom Parameter Output in Fluent using Scheme ishan_ae Fluent UDF and Scheme Programming 0 April 13, 2018 11:02
How To Get A value in C In An Output Parameter Based On An Expression In CFD-Post Shomaz ul Haq CFX 2 April 25, 2016 14:17
calculating output parameter in cfd post markus67 CFX 3 August 26, 2015 10:28
Average of Expressions in Transient Run for Parameter Study BigPapi34 CFX 1 August 7, 2012 06:34


All times are GMT -4. The time now is 11:59.