Wiki Markup |
---|
{alias:vol}
h2. Name
*vol* — Volume calculation
h2. Syntax
{panel:|borderStyle=solid|borderWidth=1|bgColor=#FFFFAA}
*vol* \[*acc*] \[*gau*] \[*are*]
{panel}
h2. Description
Volumetric calculation on grid. Result of a volume calculation is placed in @volume which can be retrieved to a Tcl varible by *set vol \[gvar volume]*.
h2. Arguments
{indent}No argument. Calculate the volume of the active grid.{indent}
*acc*
{indent}Accumulate the volume into the volume variable.{indent}
*gau*
{indent}Calculate volumes after four corner point geometry using gaussian quadrature.{indent}
*are*
{indent}Calculate the area of the active grid. Result of a area calculation is put in @area which can be retrieved to a Tcl varible by *set area \[gvar area]*.{indent}
h2. Related command object
h3. Volume bulk calculation
Calculate bulk volume for a reservoir structure.
Read also about [volume calculation|https://geocap.onconfluence.com/x/QwAd] in the user guide.
h2. Examples
h3. Ex.1: Volumetric calculation
{noformat:|borderWidth=1|bgColor=#eeeeee} |
Name
vol — Volume calculation
Syntax
Panel | ||||||
---|---|---|---|---|---|---|
| ||||||
vol [acc] [gau] [are] |
Description
Volumetric calculation on grid. Result of a volume calculation is placed in @volume which can be retrieved to a Tcl varible by set vol [gvar volume].
Arguments
acc
gau
are
Related command object
Volume bulk calculation
Calculate bulk volume for a reservoir structure.
Read also about volume calculation in the user guide.
Examples
Ex.1: Volumetric calculation
No Format | ||||
---|---|---|---|---|
| ||||
# Calculate volume of a grid down to a level
set level 2500 ;# Set the level
z ;# Erase screen
win demo ;# Get demo window (450000 460000 6450000 6460000 1000 4000)
spe bgc whi ;# Specify background color to white
mak ran 5 ;# Make random points
mhi pp ;# Save data
sav 4 ;# Save window
ewi 30 ;# Expand window 30%
mak ran 22 z 4500 5000 ;# Make randowm values within z range
ret 4 ;# Return window
eli iwi ;# Eliminates inside window
mlo pp app ;# Append with saved data
# The dataset will now most likely have a dome structure
grp inc 100 100 ;# Make grid with increment 100 x 100
mhi mygrid ;# Move the grid to workspace
eli gt $level ;# Eliminate greater than level
sub $level ;# Subtract to zero level
mul -1 ;# Multiply with -1
und 0 ;# Set undefined values to 1
vol ;# Calculate volume
mak p ;# Make polygrid
mhi volgrid ;# Save in workspace
mlo mygrid ;# Get structure grid
mak p ;# Make polygrid
mak rsc volgrid ;# Replace scalars from volgrid
map ;# Map the grid with volume on top
con n 11 ;# Contour 11 levels
pla z $level ;# Draw a plane at level
acp * opa 0.4 ;# use opacity
tx2 lle col bla txt "Z::$level Vol: [gvar volume]" ;# Text with volume number
cco rev s 0 500 3000 tit "Volume" ;# Display color legend
{noformat}
|
The
...
above
...
example
...
produces
...
this
...
image.
...
Volume displayed on the surface