Example #1
0
 def write_input_file_handler(self):
     QApplication.restoreOverrideCursor()
     if self.check_prerequisites():
         QApplication.setOverrideCursor(Qt.WaitCursor)
         try:
             import ccxInpWriter as iw
             inp_writer = iw.inp_writer(self.TempDir, self.MeshObject,
                                        self.MaterialObjects,
                                        self.FixedObjects,
                                        self.ForceObjects,
                                        self.PressureObjects)
             self.base_name = inp_writer.write_calculix_input_file()
             if self.base_name != "":
                 self.femConsoleMessage("Write completed.")
             else:
                 self.femConsoleMessage("Write .inp file failed!",
                                        "#FF0000")
         except:
             print "Unexpected error when writing CalculiX input file:", sys.exc_info(
             )[0]
             raise
         finally:
             QApplication.restoreOverrideCursor()
         if self.base_name:
             self.form.pushButton_edit.setEnabled(True)
             self.form.pushButton_generate.setEnabled(True)
Example #2
0
 def write_inp_file(self):
     import ccxInpWriter as iw
     import sys
     self.base_name = ""
     try:
         inp_writer = iw.inp_writer(self.analysis, self.mesh, self.material,
                                    self.fixed_constraints, self.force_constraints,
                                    self.pressure_constraints, self.working_dir)
         self.base_name = inp_writer.write_calculix_input_file()
     except:
         print "Unexpected error when writing CalculiX input file:", sys.exc_info()[0]
         raise
Example #3
0
 def write_inp_file(self):
     import ccxInpWriter as iw
     import sys
     self.inp_file_name = ""
     try:
         inp_writer = iw.inp_writer(self.analysis, self.mesh, self.materials,
                                    self.fixed_constraints,
                                    self.force_constraints, self.pressure_constraints,
                                    self.beam_sections, self.shell_thicknesses,
                                    self.analysis_type, self.eigenmode_parameters,
                                    self.working_dir)
         self.inp_file_name = inp_writer.write_calculix_input_file()
     except:
         print("Unexpected error when writing CalculiX input file:", sys.exc_info()[0])
         raise
Example #4
0
 def write_inp_file(self):
     import ccxInpWriter as iw
     import sys
     self.base_name = ""
     try:
         inp_writer = iw.inp_writer(self.analysis, self.mesh, self.material,
                                    self.fixed_constraints,
                                    self.force_constraints,
                                    self.pressure_constraints,
                                    self.working_dir)
         self.base_name = inp_writer.write_calculix_input_file()
     except:
         print "Unexpected error when writing CalculiX input file:", sys.exc_info(
         )[0]
         raise
Example #5
0
 def write_inp_file(self):
     import ccxInpWriter as iw
     import sys
     self.inp_file_name = ""
     try:
         inp_writer = iw.inp_writer(
             self.analysis, self.mesh, self.material,
             self.fixed_constraints, self.force_constraints,
             self.pressure_constraints, self.beam_sections,
             self.shell_thicknesses, self.analysis_type,
             self.eigenmode_parameters, self.working_dir)
         self.inp_file_name = inp_writer.write_calculix_input_file()
     except:
         print "Unexpected error when writing CalculiX input file:", sys.exc_info(
         )[0]
         raise
 def write_input_file_handler(self):
     QApplication.restoreOverrideCursor()
     if self.check_prerequisites():
         QApplication.setOverrideCursor(Qt.WaitCursor)
         try:
             import ccxInpWriter as iw
             inp_writer = iw.inp_writer(self.TempDir, self.MeshObject, self.MaterialObjects,
                                        self.FixedObjects, self.ForceObjects, self.PressureObjects)
             self.base_name = inp_writer.write_calculix_input_file()
             if self.base_name != "":
                 self.femConsoleMessage("Write completed.")
             else:
                 self.femConsoleMessage("Write .inp file failed!", "#FF0000")
         except:
             print "Unexpected error when writing CalculiX input file:", sys.exc_info()[0]
             raise
         finally:
             QApplication.restoreOverrideCursor()
         if self.base_name:
             self.form.pushButton_edit.setEnabled(True)
             self.form.pushButton_generate.setEnabled(True)