コード例 #1
0
 def load_results_ccxdat(self):
     dat_result_file = os.path.join(self.directory, _inputFileName + '.dat')
     if os.path.isfile(dat_result_file):
         mode_frequencies = importCcxDatResults.import_dat(
             dat_result_file, self.analysis)
     else:
         raise Exception(
             'FEM: No .dat results found at {}!'.format(dat_result_file))
     if mode_frequencies:
         for m in FemUtils.getMember(self.analysis, "Fem::FemResultObject"):
             if m.Eigenmode > 0:
                 for mf in mode_frequencies:
                     if m.Eigenmode == mf['eigenmode']:
                         m.EigenmodeFrequency = mf['frequency']
コード例 #2
0
ファイル: FemToolsCcx.py プロジェクト: xiaogh98/FreeCAD
 def load_results_ccxdat(self):
     import os
     import importCcxDatResults
     dat_result_file = os.path.splitext(self.inp_file_name)[0] + '.dat'
     if os.path.isfile(dat_result_file):
         mode_frequencies = importCcxDatResults.import_dat(dat_result_file, self.analysis)
     else:
         raise Exception('FEM: No .dat results found at {}!'.format(dat_result_file))
     if mode_frequencies:
         # print(mode_frequencies)
         for m in self.analysis.Member:
             if m.isDerivedFrom("Fem::FemResultObject") and m.Eigenmode > 0:
                 for mf in mode_frequencies:
                     if m.Eigenmode == mf['eigenmode']:
                         m.EigenmodeFrequency = mf['frequency']
コード例 #3
0
ファイル: FemToolsCcx.py プロジェクト: crobarcro/FreeCAD
 def load_results_ccxdat(self):
     import os
     import importCcxDatResults
     dat_result_file = os.path.splitext(self.inp_file_name)[0] + '.dat'
     if os.path.isfile(dat_result_file):
         mode_frequencies = importCcxDatResults.import_dat(dat_result_file, self.analysis)
     else:
         raise Exception('FEM: No .dat results found at {}!'.format(dat_result_file))
     if mode_frequencies:
         # print(mode_frequencies)
         for m in self.analysis.Member:
             if m.isDerivedFrom("Fem::FemResultObject") and m.Eigenmode > 0:
                 for mf in mode_frequencies:
                     if m.Eigenmode == mf['eigenmode']:
                         m.EigenmodeFrequency = mf['frequency']