1、实现datamanager获取timemode的runtype方法(未测试)

feature/struct-menu-20241023
mzh 1 week ago
parent 18f0091274
commit a4c77fe195

@ -131,3 +131,7 @@ void CFDStructDataManager::printJson() {
CFDStructMainUtils::write(caseJSONPath, buffer.GetString()); CFDStructMainUtils::write(caseJSONPath, buffer.GetString());
} }
int CFDStructDataManager::getTimeModeRunTime() {
return m_solverTimeModeManager->getRunType();
}

@ -62,6 +62,8 @@ class CFDSTRUCTDATAMANAGER_EXPORT CFDStructDataManager {
rapidjson::Document getJson(); rapidjson::Document getJson();
void printJson(); void printJson();
int getTimeModeRunTime();
private: private:
rapidjson::Document m_dom; rapidjson::Document m_dom;
}; };

@ -145,3 +145,8 @@ CUIConfig *CFDStructDataSolverTimeModeManager::genUnsteadyModeUIConfig() {
{"value_origin", QVA_GLOBAL(&m_timeaverage)}, {"value_origin", QVA_GLOBAL(&m_timeaverage)},
})}); })});
} }
int CFDStructDataSolverTimeModeManager::getRunType() {
return m_runtype;
return 0;
}

@ -41,6 +41,9 @@ class CFDSTRUCTDATAMANAGER_EXPORT CFDStructDataSolverTimeModeManager : public CF
int m_nstep = 10; int m_nstep = 10;
// 时均统计量数据采样0 | 1 // 时均统计量数据采样0 | 1
int m_timeaverage = 0; int m_timeaverage = 0;
public:
int getRunType();
}; };
#endif // CFDSTRUCTDATASOLVERTIMEMODEMANAGER_H #endif // CFDSTRUCTDATASOLVERTIMEMODEMANAGER_H

Loading…
Cancel
Save