CFD Online Logo CFD Online URL
Home > Forums > Software User Forums > Fidelity CFD

CFView Export Volume Average Calculation

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

LinkBack Thread Tools Search this Thread Display Modes
Old   October 29, 2017, 14:45
Default CFView Export Volume Average Calculation
New Member
Bill Huang
Join Date: Oct 2017
Posts: 1
Rep Power: 0
huangxiaoqi1996 is on a distinguished road
Hi all,

I'm currently working on a heat exchanger simulation, and I'm trying to calculate the energy discharge rate of my system. In order to do that, I let CFView calculate the volume average temperature, and I can view that result in the message window inside CFView.

I'm wondering if there's a way to export that value from the message window of CFView? Thanks in advance!
huangxiaoqi1996 is offline   Reply With Quote

Old   October 29, 2017, 15:30
Senior Member
DarylMusashi's Avatar
Holger Dietrich
Join Date: Apr 2011
Location: Germany
Posts: 174
Rep Power: 15
DarylMusashi is on a distinguished road
Dear Bill Huang,

yes this is possible with a few lines of python script. At first, please do your operations as desired (select the quantity you need and compute the volume average, for example). When you see the desired value in the message box in CFView please save the script via File -> Macro -> Save All.

This is the easiest way to extract the python commands you need. The important part will look like this:

QntFieldScalar('Static Temperature')

What you can do now is assigning a variable to Volume Average:
QntFieldScalar('Static Temperature')
f = VolumeAverage()
print f

To test it you can print the value in the shell with an additional line "print f", please keep in mind that you need to start CFView with the argument -print for extended shell output. Or you can write this value to a file. I think there are enough tutorials how to write a variable to a file with python out there, as this is not specific to CFView.

For a detailed explaination of the python commands available in CFView you may visit the online documentation of our customer portal:

CFView™ > User Guide > Macro Language > CFView™ Command Description > Commands for Computing Volume Integrals

I hope this helps you to proceed. If you have further questions please don't hesitate to ask.

Kind regards,
DarylMusashi is offline   Reply With Quote


cfview, numeca, postprocessing

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
Volume average of a scalar? mecarlg ANSYS 4 September 3, 2018 12:50
multiphaseEulerFoam high Courant number Frenk_T OpenFOAM 5 November 24, 2016 03:23
Hypermesh to STARCCM+ export 3D volume mesh totocros STAR-CCM+ 2 July 5, 2015 22:59
Difference between Volume average and Mass flow average? nygrenm STAR-CCM+ 1 March 2, 2015 13:11
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 09:56

All times are GMT -4. The time now is 03:09.