From 57d0b0752a23736558867bf246a96b3208987fbd Mon Sep 17 00:00:00 2001 From: Bernd Hahnebach Date: Mon, 1 Aug 2016 21:57:47 +0100 Subject: [PATCH] FEM: ccx input writer: add some comments --- src/Mod/Fem/FemInputWriterCcx.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/Mod/Fem/FemInputWriterCcx.py b/src/Mod/Fem/FemInputWriterCcx.py index 2f6e132f2..9bee7c420 100644 --- a/src/Mod/Fem/FemInputWriterCcx.py +++ b/src/Mod/Fem/FemInputWriterCcx.py @@ -68,6 +68,8 @@ class FemInputWriterCcx(FemInputWriter.FemInputWriter): # reopen file with "append" and add the analysis definition inpfile = open(self.file_name, 'a') inpfile.write('\n\n') + + # node and element sets self.write_element_sets_material_and_femelement_type(inpfile) if self.fixed_objects: self.write_node_sets_constraints_fixed(inpfile) @@ -79,14 +81,20 @@ class FemInputWriterCcx(FemInputWriter.FemInputWriter): self.write_surfaces_contraints_contact(inpfile) if self.analysis_type == "thermomech" and self.temperature_objects: self.write_node_sets_constraints_temperature(inpfile) + + # materials and fem element types self.write_materials(inpfile) if self.analysis_type == "thermomech" and self.initialtemperature_objects: self.write_constraints_initialtemperature(inpfile) self.write_femelementsets(inpfile) + + # constraints independent from steps if self.planerotation_objects: self.write_constraints_planerotation(inpfile) if self.contact_objects: self.write_constraints_contact(inpfile) + + # steps and constraints dependent on steps if self.analysis_type == "thermomech": self.write_step_begin_thermomech(inpfile) self.write_analysis_thermomech(inpfile) @@ -111,6 +119,7 @@ class FemInputWriterCcx(FemInputWriter.FemInputWriter): self.write_outputs_types(inpfile) self.write_step_end(inpfile) + # footer self.write_footer(inpfile) inpfile.close() return self.file_name