CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Custom Parameter Output in Fluent using Scheme

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 13, 2018, 11:02
Default Custom Parameter Output in Fluent using Scheme
  #1
Member
 
ishan
Join Date: Oct 2017
Posts: 77
Rep Power: 8
ishan_ae is on a distinguished road
I am trying to write the O/P parameters(OPP) in Fluent in a custom format. I know that Fluent can write all the parameters in a file in a very convenient user readable way.

The issue is, I have to execute a large number of simulations and each simulation will write a file with the calculated OPP. As you can imagine, it is not very convenient if I have to open the file manually everytime to see the result of an OPP for different simulations.

One solution to this I think can be the usage of „ports“ in Scheme programming. Once, I open a port, then I can move forward to write the OPP using the file write comands(hopefully).

What Fluent prints in the console is something like this :
Code:
----------------------------------------------------------------
       Output Parameter               Value Units               
----------------------------------------------------------------
 Parameter 1                             500 k                   
-------------------------------------------------
This is not very helpful since it’s a mix of „string“ and „float“.

What I want is just „4.1509156248“ as a value. Once, I get just the numeric value, I can store it in a variable and make use of „ports“ to write that to a file.

My question is how can I access the OPP in Fluent as a single data type( or „float“ in most cases) ?

The end goal here is to append the multiple OPP of all the simulations in a file of format something like this:

Code:
                         Parameter 1          Parameter 2
  ----------------------------------------------------------
  Simulation_1         someValue          someValue
  ----------------------------------------------------------
  Simulation_1         someValue          someValue
  ----------------------------------------------------------
         |                    |                 |
         |                    |                 |
If writing it in Scheme turns out to be too complex, I have a last option of reading all the files in Python and manipulating them to write all the OPP in the desired format.

I know very little about Scheme. Until now I have been successful in making use of lists and „do“ loops and for that, I am thankful to the MIT Scheme reference guide and other sources.

Also, I am using Fluent 17.0
ishan_ae is offline   Reply With Quote

Reply

Tags
fluent, parameters, scheme programming

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
looking for a smart interface matlab fluent chary FLUENT 24 June 18, 2021 10:07
output data transfer from fluent metu43331 FLUENT 4 June 29, 2016 02:45
Problem in sampling data of custom field function in ANSYS FLUENT v14 apek_great ANSYS 1 February 26, 2014 06:10
OUTPUT form FLUENT Chirag2302 FLUENT 2 June 8, 2012 04:15
Integrating Scheme with a FLUENT journal file Pete Willemsen FLUENT 0 May 19, 2006 18:00


All times are GMT -4. The time now is 20:57.