CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   ANSYS Meshing & Geometry (http://www.cfd-online.com/Forums/ansys-meshing/)
-   -   [GAMBIT] Storing Geometry Volume in GAMBIT (http://www.cfd-online.com/Forums/ansys-meshing/89985-storing-geometry-volume-gambit.html)

smk4 June 28, 2011 01:45

Storing Geometry Volume in GAMBIT
 
I would like to know how to store geometry volume information from the command below or any other command to a variable or text file:
volume summarize "volume.1"
I only need volume value in m^3.
I can store face area value in a variable with
$A=AREA("face.1")
but couldn't find about volume.

-mAx- June 28, 2011 08:14

if it can help you....

VOLUME—Volume (mass)


VOLUME returns a numeric value that represents the volume (mass) of a specified real volume. (NOTE: If the volume (mass) computation is unavail­able for the volume (for example, the volume is virtual or faceted), the function returns a value of -1. If the specified volume does not exist in the model, the function returns a value of -2.)
Format

VOLUME(volume)Example


The following function call returns the volume (mass) of a volume labeled volume.306. $X = VOLUME("volume.306")

smk4 June 30, 2011 09:19

Thanks for the reply.
This VOLUME command doesn't work in GAMBIT, I tried it earlier but it gives error.
However, i am able to extract volume value by first executing volume summarize command and then saving the .dbs file.
Now this volume value is saved in .trn file and I am able to read the value in my program using a small subroutine.

-mAx- June 30, 2011 10:00

Quote:

Originally Posted by smk4 (Post 314229)
This VOLUME command doesn't work in GAMBIT, I tried it earlier but it gives error.

The paragraph I mentionned comes from gambit 2.4 Help (but doesn't appear in 2.3 version)


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