Esempio n. 1
0
 def load_results_ccxfrd(self):
     frd_result_file = os.path.join(self.directory, _inputFileName + '.frd')
     if os.path.isfile(frd_result_file):
         result_name_prefix = 'CalculiX_' + self.solver.AnalysisType + '_'
         importCcxFrdResults.importFrd(frd_result_file, self.analysis,
                                       result_name_prefix)
     else:
         raise Exception(
             'FEM: No results found at {}!'.format(frd_result_file))
Esempio n. 2
0
 def load_results_ccxfrd(self):
     import os
     import importCcxFrdResults
     frd_result_file = os.path.splitext(self.inp_file_name)[0] + '.frd'
     if os.path.isfile(frd_result_file):
         result_name_prefix = 'CalculiX_' + self.solver.AnalysisType + '_'
         importCcxFrdResults.importFrd(frd_result_file, self.analysis, result_name_prefix)
         for m in self.analysis.Member:
             if m.isDerivedFrom("Fem::FemResultObject"):
                 self.results_present = True
                 break
         else:
             FreeCAD.Console.PrintError('FEM: No result object in active Analysis.\n')
     else:
         raise Exception('FEM: No results found at {}!'.format(frd_result_file))
Esempio n. 3
0
 def load_results_ccxfrd(self):
     import os
     import importCcxFrdResults
     frd_result_file = os.path.splitext(self.inp_file_name)[0] + '.frd'
     if os.path.isfile(frd_result_file):
         result_name_prefix = 'CalculiX_' + self.solver.AnalysisType + '_'
         importCcxFrdResults.importFrd(frd_result_file, self.analysis, result_name_prefix)
         for m in self.analysis.Member:
             if m.isDerivedFrom("Fem::FemResultObject"):
                 self.results_present = True
                 break
         else:
             FreeCAD.Console.PrintError('FEM: No result object in active Analysis.\n')
     else:
         raise Exception('FEM: No results found at {}!'.format(frd_result_file))