def load_results_ccxfrd(self): """Load results of ccx calculations from .frd file. """ import feminout.importCcxFrdResults as importCcxFrdResults frd_result_file = os.path.splitext(self.inp_file_name)[0] + ".frd" if os.path.isfile(frd_result_file): importCcxFrdResults.importFrd(frd_result_file, self.analysis, "CCX_") for m in self.analysis.Group: if m.isDerivedFrom("Fem::FemResultObject"): self.results_present = True break else: if self.solver.AnalysisType == "check": for m in self.analysis.Group: if m.isDerivedFrom("Fem::FemMeshObjectPython"): # we have no result object but a mesh object # this happens in NOANALYSIS mode 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))
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))
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))
def load_ccxfrd_results(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: # TODO: use solver framework status message system FreeCAD.Console.PrintError( "FEM: No results found at {}!\n".format(frd_result_file)) self.fail()
def load_results_ccxfrd(self): import os import feminout.importCcxFrdResults as 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.Group: 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))