FEM: gmsh tools, move start logs in separate class method
This commit is contained in:
@@ -135,14 +135,7 @@ class GmshTools():
|
||||
self.error = False
|
||||
|
||||
def create_mesh(self):
|
||||
print("\nWe are going to start Gmsh FEM mesh run!")
|
||||
print(
|
||||
" Part to mesh: Name --> {}, Label --> {}, ShapeType --> {}"
|
||||
.format(self.part_obj.Name, self.part_obj.Label, self.part_obj.Shape.ShapeType)
|
||||
)
|
||||
print(" CharacteristicLengthMax: " + str(self.clmax))
|
||||
print(" CharacteristicLengthMin: " + str(self.clmin))
|
||||
print(" ElementOrder: " + self.order)
|
||||
self.start_logs()
|
||||
self.get_dimension()
|
||||
self.get_tmp_file_paths()
|
||||
self.get_gmsh_command()
|
||||
@@ -155,6 +148,17 @@ class GmshTools():
|
||||
self.read_and_set_new_mesh()
|
||||
return error
|
||||
|
||||
def start_logs(self):
|
||||
print("\nGmsh FEM mesh run is being started.")
|
||||
print(" Part to mesh: Name --> {}, Label --> {}, ShapeType --> {}".format(
|
||||
self.part_obj.Name,
|
||||
self.part_obj.Label,
|
||||
self.part_obj.Shape.ShapeType
|
||||
))
|
||||
print(" CharacteristicLengthMax: {}".format(self.clmax))
|
||||
print(" CharacteristicLengthMin: {}".format(self.clmin))
|
||||
print(" ElementOrder: {}".format(self.order))
|
||||
|
||||
def get_dimension(self):
|
||||
# Dimension
|
||||
# known_element_dimensions = ["From Shape", "1D", "2D", "3D"]
|
||||
|
||||
Reference in New Issue
Block a user