FEM: geom tools, add new module and move some geom tools from mesh tools in

This commit is contained in:
Bernd Hahnebach
2020-03-27 05:33:58 +01:00
parent 22b6dfd712
commit ee08ffe1ad
5 changed files with 148 additions and 111 deletions

View File

@@ -39,6 +39,7 @@ import FreeCAD
from .. import writerbase
from femmesh import meshtools
from femtools import geomtools
class FemInputWriterCcx(writerbase.FemInputWriter):
@@ -1084,11 +1085,11 @@ class FemInputWriterCcx(writerbase.FemInputWriter):
f.write("** " + trans_obj.Label + "\n")
if trans_obj.TransformType == "Rectangular":
f.write("*TRANSFORM, NSET=Rect" + trans_obj.Name + ", TYPE=R\n")
coords = meshtools.get_rectangular_coords(trans_obj)
coords = geomtools.get_rectangular_coords(trans_obj)
f.write(coords + "\n")
elif trans_obj.TransformType == "Cylindrical":
f.write("*TRANSFORM, NSET=Cylin" + trans_obj.Name + ", TYPE=C\n")
coords = meshtools.get_cylindrical_coords(trans_obj)
coords = geomtools.get_cylindrical_coords(trans_obj)
f.write(coords + "\n")
def write_constraints_selfweight(self, f):