#ifndef CFDSTRUCTDATAMANAGER_H #define CFDSTRUCTDATAMANAGER_H #include "CFDStructDataManager_global.h" #include "CFDStructMain/CFDStructDefine.h" #include "rapidjson/document.h" class CFDStructDataSolverSportsAttributesManager; class CFDStructDataSolverBoundaryConditionManager; class CFDStructDataSolverInitializationManager; class CFDStructDataSolverReferenceQuantityManager; class CFDStructDataSolverComputingControlManager; class CFDStructDataSolverTimeModeManager; class CFDStructDataSolverBasicModelManager; class CFDStructDataSolverKvislManager; class CFDStructDataSolverNumericalMethodManager; class CFDStructDataSolverMonitorResidualManager; class CFDStructDataSolverMonitorAerodynamicManager; class CFDStructDataSolverMonitorImpellerManager; class CUIConfig; class CFDSTRUCTDATAMANAGER_EXPORT CFDStructDataManager { public: CFDStructDataManager(); static CFDStructDataManager *getInstance(); // 获取一个action的参数设置配置 CUIConfig *getActionParamUIConfig(SolutionAnalysisModuleProperty sig, QVariant idx); private: void initDataManagers(); private: static CFDStructDataManager *m_instance; CFDStructDataSolverTimeModeManager *m_solverTimeModeManager; CFDStructDataSolverBasicModelManager *m_solverBasicModeManager; CFDStructDataSolverKvislManager *m_solverKvislManager; CFDStructDataSolverNumericalMethodManager *m_solverNumericalMethodManager; // 运动属性 CFDStructDataSolverSportsAttributesManager *m_solverSportsAttributesManager; // Pressure-Inlet CFDStructDataSolverBoundaryConditionManager *m_solverBoundaryConditionManager; // 初始化 CFDStructDataSolverInitializationManager *m_solverInitializationManager; // 参考量 CFDStructDataSolverReferenceQuantityManager *m_solverReferenceQuantityManager; // 计算控制 CFDStructDataSolverComputingControlManager *m_solverComputingControlManager; // 监控-残差曲线 CFDStructDataSolverMonitorResidualManager *m_solverMonitorResidualManager; // 监控-气动力曲线 CFDStructDataSolverMonitorAerodynamicManager *m_solverMonitorAerodynamicForceManager; // 监控-叶轮机械性能曲线 CFDStructDataSolverMonitorImpellerManager *m_solverMonitorTubomachineryPerformanceManager; public: void initJson(); void updateJson(); rapidjson::Document getJson(); void printJson(); // 获取时间模型的时间模式 定常 非定常 int getTimeModeRunTime(); // 获取粘性模型 int getModel(); // 获取RANS模型 int getRNSModel(); private: rapidjson::Document m_dom; }; #endif // CFDSTRUCTDATAMANAGER_H