fracture.geomtrace
Syntax
- fav = fracture.geomtrace(gset<,dfn>) (3D only)
Get polygon average trace length. This length corresponds to the total length of fracture intersections with the geometry polygons divided by the number of polygons. If dfn is not given the calculation is undertaken over all fractures of all DFNs.
Returns: fav - average trace length value
Arguments: gset - geometry set pointer
dfn - optional DFN pointer
Usage Example
The following example illustrates how fracture.geomtrace
can be
used to get the average trace length on an outcrop for various DFNs, or of all fractures.
model new
model random 10000
model domain extent -5 5
;Create the outcrop geometry
geometry set 'outcrop'
geometry polygon create by-position (-5,-5,0) (-5,5,0) (5,5,0) (5,-5,0)
;Generate fractures using the default template
fracture generate dfn 'p1' fracture-count 100
fracture generate dfn 'p2' fracture-count 200
fracture generate dfn 'p3' fracture-count 300
fracture generate dfn 'p4' fracture-count 400
; fish access to densities
fish define access_avgtrace
local geom = geom.set.find('outcrop')
local dfn1 = dfn.find('p1')
local dfn2 = dfn.find('p2')
local dfn3 = dfn.find('p3')
local dfn4 = dfn.find('p4')
io.out('avg. trace length for dfn p1 = '+string(fracture.geomtrace(geom,dfn1)))
io.out('avg. trace length for dfn p2 = '+string(fracture.geomtrace(geom,dfn2)))
io.out('avg. trace length for dfn p3 = '+string(fracture.geomtrace(geom,dfn3)))
io.out('avg. trace length for dfn p4 = '+string(fracture.geomtrace(geom,dfn4)))
io.out('avg. trace length for all dfns = '+string(fracture.geomtrace(geom)))
end
@access_avgtrace
return
Was this helpful? ... | PFC 6.0 © 2019, Itasca | Updated: Nov 19, 2021 |