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
but couldn't find about volume.
if it can help you....
VOLUME returns a numeric value that represents the volume (mass) of a specified real volume. (NOTE: If the volume (mass) computation is unavailable 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.)
The following function call returns the volume (mass) of a volume labeled volume.306. $X = VOLUME("volume.306")
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.
|All times are GMT -4. The time now is 10:58.|