Hi everyone,
Does anyone know the appropriate FISH function to get/set the “extra” values for Joint Plane contacts in 3DEC?
This data can be visualized in the plot as “Joint Plane Contact Extra”, but I can’t find a corresponding FISH function for accessing it.
I’m aware of the following functions:
block.contact.extra
block.subcontact.extra
block.face.extra
block.gp.extra
block.zone.extra
However, none of these seem to correspond to the joint plane contact extras.
Any guidance would be appreciated!
Hi!
block.contact.extra
and block.subcontact.extra
are indeed what you are looking for.
Running the small script below:
model new
block create brick test
block cut joint-set
block zone gen edgelength 0.5
fish define set_extra
loop foreach local cpnt block.contact.list
block.contact.extra(cpnt, 1) = math.mag(block.contact.pos(cpnt))
loop foreach local cxpnt block.contact.subcontactlist(cpnt)
block.subcontact.extra(cxpnt, 1) = math.mag(block.subcontact.pos(cxpnt))
end_loop
end_loop
end
[set_extra]
Gives you the following contours for contact and subcontact extras, respectively.
Cheers!
Theophile
1 Like