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

Output Parameter on workbench, average of last 50 Iterations

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 7, 2020, 11:20
Default Output Parameter on workbench, average of last 50 Iterations
  #1
New Member
 
Sebastian K
Join Date: Jan 2020
Posts: 29
Rep Power: 6
eSKa is on a distinguished road
Hi,

I´ve got a big problem. I´m working with TurboGrid and CFD Simlution in the Workbench.

My Problem is: my fliud is very turbulent and the solution after x Iterations is not really converting.

My idea: take the arithmetic average of the last (e.g.) 50 Iteration to have a value to work with.

how I tried it: CFX\SETUP (pre):
-I created a Variable "VARpsi".
-I created a monitor point "MPpsi" of my variable "psi" in SOLVER\OUTPUT CONTROL\MONITOR.
-In this Monitor Point it shows me the Monitor Statictics of a "Moving Interval" about 50 "Iterations". The monitor Point works without Problems.
-I created an expression "avepsi" with the Definition : probe(Expression Value.Arithmetic Average) @MPpsi
-In the Geometry "R1" (where I want to have my average Value of the last 50 Iterations) I add to my Varibale "VARpsi" the Expression "avepsi"

CFX\RESULTS (post):
-Now I need the Output Paramameter: I created an expression "averagePsi" with the Definition: VARpsi @R1. R1 is here the Geometry where I want to have my value.


-In the next step I set the expression "averagePsi" as Output Parameter in the Workbench. after the Simulation the Parameter exists but without a value.


Do someone have some thoughts about this?
I´m thankfull for every help!


with regards
Sebastian

Last edited by eSKa; January 8, 2020 at 04:10.
eSKa is offline   Reply With Quote

Old   January 8, 2020, 10:00
Default
  #2
Senior Member
 
urosgrivc
Join Date: Dec 2015
Location: Slovenija
Posts: 365
Rep Power: 11
urosgrivc is on a distinguished road
average of the last 50 Iterations...

If you want moving average MA50
of any expression or variable you can set it up in CFX-solver manager in solution monitors so you can monitor it while the computation is going on.
urosgrivc is offline   Reply With Quote

Old   January 9, 2020, 07:32
Talking solution
  #3
New Member
 
Sebastian K
Join Date: Jan 2020
Posts: 29
Rep Power: 6
eSKa is on a distinguished road
Hi, thank you.


I found the problem now.

In the POST there was a problem. Ansys CFD couldt recognize the Variable VARPsi.


in the POST:
for the first: I defined a Variable "VARpsi".
in the Expression averagePsi: instead of "VARpsi @R1 I defined it as "ave(VARpsi)@R1.
To take the average is here no problem because VARpsi is an average value.

Now it works because of a little trick, nbut I dont know why
eSKa is offline   Reply With Quote

Old   April 12, 2022, 05:11
Default
  #4
New Member
 
Steffen Lehmann
Join Date: Feb 2022
Posts: 4
Rep Power: 4
LehmannCFD is on a distinguished road
Hello,
I want to do exactly the same as you did.
Unfortunately, I do not understand how you set up everything.
Could you explain again a little bit better?

Thank you in advance
LehmannCFD is offline   Reply With Quote

Old   April 12, 2022, 14:13
Default
  #5
New Member
 
Sebastian K
Join Date: Jan 2020
Posts: 29
Rep Power: 6
eSKa is on a distinguished road
Hi.

I completed my work 2 years ago. I have only this describtion. You have to follow every step. I think its written clearly. If u couldn t understand a step pls ask.
eSKa is offline   Reply With Quote

Old   April 14, 2022, 02:59
Default
  #6
New Member
 
Steffen Lehmann
Join Date: Feb 2022
Posts: 4
Rep Power: 4
LehmannCFD is on a distinguished road
Thanks for your reply :-)
In my case I have an automated workflow for a parameter optimization. Since the pressure loss (dp from inlet to outlet) is pulsating I want to have the average pressure loss of the last 50 iterations.


Is this summary of the workflow correct?

CFX\SETUP (pre):
1.1) Create a Variable "VARpsi"
1.2) Create a monitor point "MPpsi" of the variable "psi"
1.3) Set for this Monitor Point the Monitor Statictics: "Moving Interval about 50 "Iterations".
1.4) Create the expression "avepsi" with the Definition: probe(Expression Value.Arithmetic Average) @MPpsi
1.5) In the Geometry "R1" (where I want to have my average Value of the last 50 Iterations) I add to the varibale "VARpsi" the expression "avepsi"

CFX\RESULTS (post):
2.1) Define a Variable "VARpsi".
2.2) Create an expression "averagePsi" with the Definition: ave(VARpsi)@R1
2.3) Set "averagePsi" as output parameter


What I do not understand is:
-Step 1.1): Which definition has this variable?
-How do you link in CFX-Pre an expression and the variable?
-What is your geometry R1. Is it the outlet plane?
-What do you mean with the step 1.5). Could you explain it better?
-Step 2.1) is also not clear. What is the definition of this variable? With which expression do you link this variable?
LehmannCFD is offline   Reply With Quote

Old   May 10, 2022, 09:20
Default
  #7
New Member
 
Steffen Lehmann
Join Date: Feb 2022
Posts: 4
Rep Power: 4
LehmannCFD is on a distinguished road
Is there any other help available to solve this issue?
LehmannCFD is offline   Reply With Quote

Old   May 10, 2022, 18:21
Default
  #8
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,854
Rep Power: 144
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
The description you quote does not look very helpful to me. I would ignore it. It is for a steady state run and yours is transient for a start.

It is quite simple to do a running average of the pressure drop. Set a monitor point, option=expression, expression value=(whatever, maybe areaAve(p)@inlet-areaAve(p)@outlet), and set monitor statistics=on, Time=(averaging time you want).

To make this variable accessible in workbench you find the variable in CFD-Post and set it as an output parameter.
__________________
Note: I do not answer CFD questions by PM. CFD questions should be posted on the forum.
ghorrocks is offline   Reply With Quote

Old   May 11, 2022, 04:01
Default
  #9
New Member
 
Steffen Lehmann
Join Date: Feb 2022
Posts: 4
Rep Power: 4
LehmannCFD is on a distinguished road
Hi Glenn

Thanks for your fast reply.
I did it exactly as you described in CFX-Pre.

Unfortunately, I can not find this variable/expression in CFD-Post.

The Monitor Statistics appear in the CFX-Solver-Manager-Monitor: dp(Arithemtic Average).

But afterwards in CFD-Post I can not find this Monitor Point Statistics any more. How and where can I find this Monitor Point?
LehmannCFD 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
Extrusion with OpenFoam problem No. Iterations 0 Lord Kelvin OpenFOAM Running, Solving & CFD 8 March 28, 2016 12:08
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 14:58
pimpleFoam: turbulence->correct(); is not executed when using residualControl hfs OpenFOAM Running, Solving & CFD 3 October 29, 2013 09:35
Error while running rhoPisoFoam.. nileshjrane OpenFOAM Running, Solving & CFD 8 August 26, 2010 13:50


All times are GMT -4. The time now is 17:28.