diff --git a/CFDStruct/CFDStructDataManager/CFDStructDataManager.cpp b/CFDStruct/CFDStructDataManager/CFDStructDataManager.cpp index 5f607af..92b4cce 100644 --- a/CFDStruct/CFDStructDataManager/CFDStructDataManager.cpp +++ b/CFDStruct/CFDStructDataManager/CFDStructDataManager.cpp @@ -131,3 +131,7 @@ void CFDStructDataManager::printJson() { CFDStructMainUtils::write(caseJSONPath, buffer.GetString()); } + +int CFDStructDataManager::getTimeModeRunTime() { + return m_solverTimeModeManager->getRunType(); +} diff --git a/CFDStruct/CFDStructDataManager/CFDStructDataManager.h b/CFDStruct/CFDStructDataManager/CFDStructDataManager.h index ca82325..bf294a0 100644 --- a/CFDStruct/CFDStructDataManager/CFDStructDataManager.h +++ b/CFDStruct/CFDStructDataManager/CFDStructDataManager.h @@ -62,6 +62,8 @@ class CFDSTRUCTDATAMANAGER_EXPORT CFDStructDataManager { rapidjson::Document getJson(); void printJson(); + int getTimeModeRunTime(); + private: rapidjson::Document m_dom; }; diff --git a/CFDStruct/CFDStructDataManager/CFDStructDataSolverTimeModeManager.cpp b/CFDStruct/CFDStructDataManager/CFDStructDataSolverTimeModeManager.cpp index e6eb373..848583f 100644 --- a/CFDStruct/CFDStructDataManager/CFDStructDataSolverTimeModeManager.cpp +++ b/CFDStruct/CFDStructDataManager/CFDStructDataSolverTimeModeManager.cpp @@ -145,3 +145,8 @@ CUIConfig *CFDStructDataSolverTimeModeManager::genUnsteadyModeUIConfig() { {"value_origin", QVA_GLOBAL(&m_timeaverage)}, })}); } + +int CFDStructDataSolverTimeModeManager::getRunType() { + return m_runtype; + return 0; +} diff --git a/CFDStruct/CFDStructDataManager/CFDStructDataSolverTimeModeManager.h b/CFDStruct/CFDStructDataManager/CFDStructDataSolverTimeModeManager.h index 41a5717..b18c0c3 100644 --- a/CFDStruct/CFDStructDataManager/CFDStructDataSolverTimeModeManager.h +++ b/CFDStruct/CFDStructDataManager/CFDStructDataSolverTimeModeManager.h @@ -41,6 +41,9 @@ class CFDSTRUCTDATAMANAGER_EXPORT CFDStructDataSolverTimeModeManager : public CF int m_nstep = 10; // 时均统计量数据采样:0 | 1 int m_timeaverage = 0; + + public: + int getRunType(); }; #endif // CFDSTRUCTDATASOLVERTIMEMODEMANAGER_H