I have stl/dxf geometries (around 398) of an underground mine which I want to import in FLAC3D as a separate entity to group them. However, the coordinates are in imperial (feet). Is there any way to convert the coordinates from feet to meters or scale them down in FLAC after importing the files? Also, how do we change the project unit from metric to imperial?
In the command “geometry import” what does the keyword “position/offset” imply? If I am importing a cubical geometry, does it refer to the centroid of the geometry?
If you have geometry data that needs to by converted in from one set of units to another, the fastest way would be to modify the geometry in the CAD program you used to generate the geometry files. Otherwise, you could do this with the geometry FISH functions in FLAC3D.
Lastly, in the geometry import command, the position keyword changes the centroid of the geometry object and the offset keywork translates all nodes of the geometry object by the given value.
fish define switch_geom_unit(gset,factor)
local gs = geom.set.find(gset)
loop foreach local gn geom.node.list(gs)
geom.node.pos(gn) *= factor
endloop
end
[switch_geom_unit(‘water’,0.3048)]