FEM: better module names for CalculiX result reader modules
This commit is contained in:
parent
9431d8ed4c
commit
e07b45d59d
|
@ -111,9 +111,9 @@ SET(FemScripts_SRCS
|
||||||
_ViewProviderFemSolverCalculix.py
|
_ViewProviderFemSolverCalculix.py
|
||||||
_ViewProviderFemSolverZ88.py
|
_ViewProviderFemSolverZ88.py
|
||||||
_ViewProviderFemMaterial.py
|
_ViewProviderFemMaterial.py
|
||||||
ccxDatReader.py
|
|
||||||
ccxFrdReader.py
|
|
||||||
convert2TetGen.py
|
convert2TetGen.py
|
||||||
|
importCcxDatResults.py
|
||||||
|
importCcxFrdResults.py
|
||||||
importInpMesh.py
|
importInpMesh.py
|
||||||
importVTKResults.py
|
importVTKResults.py
|
||||||
importZ88Mesh.py
|
importZ88Mesh.py
|
||||||
|
|
|
@ -1078,7 +1078,7 @@ void FemMesh::writeABAQUS(const std::string &Filename) const
|
||||||
static std::map<int, std::string> faceTypeMap;
|
static std::map<int, std::string> faceTypeMap;
|
||||||
static std::map<int, std::string> volTypeMap;
|
static std::map<int, std::string> volTypeMap;
|
||||||
if (elemOrderMap.empty()) {
|
if (elemOrderMap.empty()) {
|
||||||
// node order fits with node order in ccxFrdReader.py module to import CalculiX result meshes
|
// node order fits with node order in importCcxFrdResults.py module to import CalculiX result meshes
|
||||||
|
|
||||||
// dimension 1
|
// dimension 1
|
||||||
//
|
//
|
||||||
|
|
|
@ -106,8 +106,8 @@ INSTALL(
|
||||||
|
|
||||||
# solver CalculiX ccx
|
# solver CalculiX ccx
|
||||||
importInpMesh.py
|
importInpMesh.py
|
||||||
ccxDatReader.py
|
importCcxDatResults.py
|
||||||
ccxFrdReader.py
|
importCcxFrdResults.py
|
||||||
FemInputWriterCcx.py
|
FemInputWriterCcx.py
|
||||||
FemToolsCcx.py
|
FemToolsCcx.py
|
||||||
FemSolverCalculix.py
|
FemSolverCalculix.py
|
||||||
|
|
|
@ -233,11 +233,11 @@ class FemToolsCcx(FemTools.FemTools):
|
||||||
# @param self The python object self
|
# @param self The python object self
|
||||||
def load_results_ccxfrd(self):
|
def load_results_ccxfrd(self):
|
||||||
import os
|
import os
|
||||||
import ccxFrdReader
|
import importCcxFrdResults
|
||||||
frd_result_file = os.path.splitext(self.inp_file_name)[0] + '.frd'
|
frd_result_file = os.path.splitext(self.inp_file_name)[0] + '.frd'
|
||||||
if os.path.isfile(frd_result_file):
|
if os.path.isfile(frd_result_file):
|
||||||
result_name_prefix = 'CalculiX_' + self.solver.AnalysisType + '_'
|
result_name_prefix = 'CalculiX_' + self.solver.AnalysisType + '_'
|
||||||
ccxFrdReader.importFrd(frd_result_file, self.analysis, result_name_prefix)
|
importCcxFrdResults.importFrd(frd_result_file, self.analysis, result_name_prefix)
|
||||||
for m in self.analysis.Member:
|
for m in self.analysis.Member:
|
||||||
if m.isDerivedFrom("Fem::FemResultObject"):
|
if m.isDerivedFrom("Fem::FemResultObject"):
|
||||||
self.results_present = True
|
self.results_present = True
|
||||||
|
@ -251,10 +251,10 @@ class FemToolsCcx(FemTools.FemTools):
|
||||||
# @param self The python object self
|
# @param self The python object self
|
||||||
def load_results_ccxdat(self):
|
def load_results_ccxdat(self):
|
||||||
import os
|
import os
|
||||||
import ccxDatReader
|
import importCcxDatResults
|
||||||
dat_result_file = os.path.splitext(self.inp_file_name)[0] + '.dat'
|
dat_result_file = os.path.splitext(self.inp_file_name)[0] + '.dat'
|
||||||
if os.path.isfile(dat_result_file):
|
if os.path.isfile(dat_result_file):
|
||||||
mode_frequencies = ccxDatReader.import_dat(dat_result_file, self.analysis)
|
mode_frequencies = importCcxDatResults.import_dat(dat_result_file, self.analysis)
|
||||||
else:
|
else:
|
||||||
raise Exception('FEM: No .dat results found at {}!'.format(dat_result_file))
|
raise Exception('FEM: No .dat results found at {}!'.format(dat_result_file))
|
||||||
if mode_frequencies:
|
if mode_frequencies:
|
||||||
|
|
|
@ -36,7 +36,7 @@ if("BUILD_FEM_VTK" in FreeCAD.__cmake__):
|
||||||
FreeCAD.addExportType("FEM CFD Result in VTK format (*.vtk *.vtu)", "importVTKResults")
|
FreeCAD.addExportType("FEM CFD Result in VTK format (*.vtk *.vtu)", "importVTKResults")
|
||||||
|
|
||||||
FreeCAD.addExportType("FEM formats (*.unv *.med *.dat *.inp)", "Fem")
|
FreeCAD.addExportType("FEM formats (*.unv *.med *.dat *.inp)", "Fem")
|
||||||
FreeCAD.addImportType("CalculiX result (*.frd)", "ccxFrdReader")
|
FreeCAD.addImportType("CalculiX result (*.frd)", "importCcxFrdResults")
|
||||||
FreeCAD.addImportType("Mesh from Calculix/Abaqus input file (*.inp)", "importInpMesh")
|
FreeCAD.addImportType("Mesh from Calculix/Abaqus input file (*.inp)", "importInpMesh")
|
||||||
FreeCAD.addImportType("Z88 mesh file (*.txt)", "importZ88Mesh")
|
FreeCAD.addImportType("Z88 mesh file (*.txt)", "importZ88Mesh")
|
||||||
FreeCAD.addExportType("Z88 mesh file (*.txt)", "importZ88Mesh")
|
FreeCAD.addExportType("Z88 mesh file (*.txt)", "importZ88Mesh")
|
||||||
|
|
|
@ -20,11 +20,11 @@
|
||||||
# * *
|
# * *
|
||||||
# ***************************************************************************
|
# ***************************************************************************
|
||||||
|
|
||||||
__title__ = "ccxDatReader"
|
__title__ = "importCcxDatResults"
|
||||||
__author__ = "Przemo Firszt"
|
__author__ = "Przemo Firszt"
|
||||||
__url__ = "http://www.freecadweb.org"
|
__url__ = "http://www.freecadweb.org"
|
||||||
|
|
||||||
## @package ccxDatReader
|
## @package importCcxDatResults
|
||||||
# \ingroup FEM
|
# \ingroup FEM
|
||||||
|
|
||||||
import FreeCAD
|
import FreeCAD
|
|
@ -26,7 +26,7 @@ __title__ = "FreeCAD Calculix library"
|
||||||
__author__ = "Juergen Riegel , Michael Hindley, Bernd Hahnebach"
|
__author__ = "Juergen Riegel , Michael Hindley, Bernd Hahnebach"
|
||||||
__url__ = "http://www.freecadweb.org"
|
__url__ = "http://www.freecadweb.org"
|
||||||
|
|
||||||
## @package ccxFrdReader
|
## @package importCcxFrdResults
|
||||||
# \ingroup FEM
|
# \ingroup FEM
|
||||||
|
|
||||||
import FreeCAD
|
import FreeCAD
|
Loading…
Reference in New Issue
Block a user