FEM: add CalculiX solver object

This commit is contained in:
Bernd Hahnebach
2015-11-15 20:48:23 +01:00
committed by Yorik van Havre
parent 80cf664ec8
commit 6865e35fd9
14 changed files with 299 additions and 52 deletions

View File

@@ -73,6 +73,7 @@ SET(FemScripts_SRCS
_CommandFemBeamSection.py
_CommandFemFromShape.py
_CommandFemShellThickness.py
_CommandFemSolverCalculix.py
_CommandMechanicalJobControl.py
_CommandMechanicalMaterial.py
_CommandMechanicalShowResult.py
@@ -82,6 +83,7 @@ SET(FemScripts_SRCS
_FemAnalysis.py
_FemBeamSection.py
_FemShellThickness.py
_FemSolverCalculix.py
_MechanicalMaterial.py
_TaskPanelFemBeamSection.py
_TaskPanelFemShellThickness.py
@@ -91,6 +93,7 @@ SET(FemScripts_SRCS
_ViewProviderFemAnalysis.py
_ViewProviderFemBeamSection.py
_ViewProviderFemShellThickness.py
_ViewProviderFemSolverCalculix.py
_ViewProviderMechanicalMaterial.py
ccxDatReader.py
ccxFrdReader.py
@@ -102,6 +105,7 @@ SET(FemScripts_SRCS
FemBeamSection.py
FemExample.py
FemShellThickness.py
FemSolverCalculix.py
FemTools.py
MechanicalAnalysis.py
MechanicalMaterial.py

View File

@@ -43,6 +43,7 @@ PROPERTY_SOURCE(Fem::FemSolverObject, App::DocumentObject)
FemSolverObject::FemSolverObject()
{
/*
ADD_PROPERTY_TYPE(SolverName,("Calculix"), "Data",Prop_None,"Solver program name");
ADD_PROPERTY_TYPE(Category,("FEM"), "Data",Prop_None,"FEM, CFD ...");
ADD_PROPERTY_TYPE(Module,(""), "Data",Prop_None,"Python module name");
@@ -54,6 +55,7 @@ FemSolverObject::FemSolverObject()
ADD_PROPERTY_TYPE(InputCaseName,("TestCase"), "Solver",Prop_None,"Solver input file without suffix");
ADD_PROPERTY_TYPE(Parallel,(false), "Solver",Prop_None,"Run solver in parallel like MPI");
ADD_PROPERTY_TYPE(ResultObtained,(false), "Solver",Prop_None,"if true, result has been obtained");
*/
}
FemSolverObject::~FemSolverObject()

View File

@@ -43,6 +43,7 @@ public:
FemSolverObject(void);
virtual ~FemSolverObject();
/*
/// Solver name, unique to identify solver in registered_solver dict
App::PropertyString SolverName;
/// CAE category like FEM, all capitalised letters
@@ -64,6 +65,7 @@ public:
App::PropertyBool Parallel;
/// result has been obtained, purge result may be needed for rerun
App::PropertyBool ResultObtained;
*/
/// returns the type name of the ViewProvider
virtual const char* getViewProviderName(void) const {