|
[Sponsors] |
May 15, 2016, 11:47 |
Max value of a transient parameter
|
#1 |
New Member
Ahmad
Join Date: Nov 2015
Posts: 2
Rep Power: 0 |
Hi,
I'm trying to optimize a specific parameter obtained from CFX, using genetic algorithm. when I run a transient problem I can only check the result for different time steps using time step selector manually. How can I write an Expression to obtain the max value of a parameter between all transient results at a location automatically? I need this Expression for the input of my genetic algorithm thank you. |
|
May 17, 2016, 03:35 |
|
#2 |
Senior Member
Maxim
Join Date: Aug 2015
Location: Germany
Posts: 413
Rep Power: 13 |
one idea: write an expression ( maxValue(variable)@location) and use this expression as a monitor. You can easily export those values via right-click from the solver manager's monitor or with a script cfx5mondata.
If you don't know how do create those things, please have a look at the documentation or use the search function in this forum In case you already have a lot of *.trn files - you could write a script that loops through all those files and gets the values. But since I haven't done that before, I'm not sure exactly how that works. |
|
May 17, 2016, 13:52 |
|
#3 | |
New Member
Ahmad
Join Date: Nov 2015
Posts: 2
Rep Power: 0 |
Quote:
|
||
May 18, 2016, 03:05 |
|
#4 |
Senior Member
Maxim
Join Date: Aug 2015
Location: Germany
Posts: 413
Rep Power: 13 |
have you searched this forum for scripting ideas? In case you didn't set up any monitor points, you'll have to loop through all your trn files.
those are the first 3 search results: http://www.cfd-online.com/Forums/cfx...-file-csv.html http://www.cfd-online.com/Forums/cfx...lem-macro.html http://www.cfd-online.com/Forums/cfx...ding-halt.html As soon as you have written some code, the guys here can probably help debugging in case you will still have problems. good luck |
|
Tags |
cfx, expressions, optimization |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cavitation around NACA hydrofoil using interPhaseChangeFoam | Kozan | OpenFOAM Running, Solving & CFD | 28 | March 12, 2023 00:30 |
Average of Expressions in Transient Run for Parameter Study | BigPapi34 | CFX | 1 | August 7, 2012 06:34 |
True Impact of Using "Relax Mass" Expert parameter for transient runs | jonny_b | CFX | 2 | August 1, 2012 09:20 |
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 | bookie56 | OpenFOAM Installation | 8 | August 13, 2011 05:03 |
Transient Parameter Variation | Milanowski | FLUENT | 3 | April 22, 2010 13:37 |