Пример #1
0
 def write_inp_file(self):
     import FemInputWriterZ88 as iw
     import sys
     self.inp_file_name = ""
     try:
         inp_writer = iw.FemInputWriterZ88(
             self.analysis, self.mesh, self.materials,
             self.fixed_constraints, self.force_constraints,
             self.pressure_constraints, self.displacement_constraints,
             self.beam_sections, self.shell_thicknesses, self.analysis_type,
             None, self.working_dir)
         self.inp_file_name = inp_writer.write_z88_input()
     except:
         print("Unexpected error when writing Z88 input files:",
               sys.exc_info()[0])
         raise
Пример #2
0
 def write_inp_file(self):
     import FemInputWriterZ88 as iw
     import sys
     self.inp_file_name = ""
     try:
         inp_writer = iw.FemInputWriterZ88(
             self.analysis, self.solver,
             self.mesh, self.materials_linear, self.materials_nonlinear,
             self.fixed_constraints, self.displacement_constraints,
             self.contact_constraints, self.planerotation_constraints, self.transform_constraints,
             self.selfweight_constraints, self.force_constraints, self.pressure_constraints,
             self.temperature_constraints, self.heatflux_constraints, self.initialtemperature_constraints,
             self.beam_sections, self.shell_thicknesses,
             self.analysis_type, self.working_dir)
         self.inp_file_name = inp_writer.write_z88_input()
     except:
         print("Unexpected error when writing Z88 input files:", sys.exc_info()[0])
         raise