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

Max value of a transient parameter

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By -Maxim-

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 15, 2016, 10:47
Default Max value of a transient parameter
  #1
New Member
 
Ahmad
Join Date: Nov 2015
Posts: 2
Rep Power: 0
ahmadsohrabi69 is on a distinguished road
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.
ahmadsohrabi69 is offline   Reply With Quote

Old   May 17, 2016, 02:35
Default
  #2
Senior Member
 
Maxim
Join Date: Aug 2015
Location: Germany
Posts: 415
Rep Power: 12
-Maxim- is on a distinguished road
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.
ahmadsohrabi69 likes this.
-Maxim- is offline   Reply With Quote

Old   May 17, 2016, 12:52
Default
  #3
New Member
 
Ahmad
Join Date: Nov 2015
Posts: 2
Rep Power: 0
ahmadsohrabi69 is on a distinguished road
Quote:
Originally Posted by -Maxim- View Post
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.
Thanks a lot Maxim. my problem exactly is how to write a script to loop through my results automatically and give the maximum value automatically to genetic algorithm. I don't want to save the plot manually and check the maximum value myself.
ahmadsohrabi69 is offline   Reply With Quote

Old   May 18, 2016, 02:05
Default
  #4
Senior Member
 
Maxim
Join Date: Aug 2015
Location: Germany
Posts: 415
Rep Power: 12
-Maxim- is on a distinguished road
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
-Maxim- is offline   Reply With Quote

Reply

Tags
cfx, expressions, optimization

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Cavitation around NACA hydrofoil using interPhaseChangeFoam Kozan OpenFOAM Running, Solving & CFD 28 March 11, 2023 23:30
Average of Expressions in Transient Run for Parameter Study BigPapi34 CFX 1 August 7, 2012 05:34
True Impact of Using "Relax Mass" Expert parameter for transient runs jonny_b CFX 2 August 1, 2012 08:20
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03
Transient Parameter Variation Milanowski FLUENT 3 April 22, 2010 12:37


All times are GMT -4. The time now is 06:00.