|
|
@ -23,6 +23,7 @@ CFDStructDataManager *CFDStructDataManager::m_instance = NULL;
|
|
|
|
CFDStructDataManager::CFDStructDataManager()
|
|
|
|
CFDStructDataManager::CFDStructDataManager()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this->initDataManagers();
|
|
|
|
this->initDataManagers();
|
|
|
|
|
|
|
|
this->initJson();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
CFDStructDataManager *CFDStructDataManager::getInstance()
|
|
|
|
CFDStructDataManager *CFDStructDataManager::getInstance()
|
|
|
@ -41,32 +42,46 @@ CUIConfig *CFDStructDataManager::getActionParamUIConfig(SolutionAnalysisModulePr
|
|
|
|
qDebug() << "manager is null";
|
|
|
|
qDebug() << "manager is null";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
CUIConfig *res = nullptr;
|
|
|
|
CUIConfig *res = nullptr;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
switch (sig)
|
|
|
|
switch (sig)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
case SolutionAnalysisModuleProperty::Time_Mode:
|
|
|
|
case SolutionAnalysisModuleProperty::Time_Mode:
|
|
|
|
res = m_solverTimeModeManager->getParamUIConfig();
|
|
|
|
res = m_solverTimeModeManager->getParamUIConfig();
|
|
|
|
|
|
|
|
break;
|
|
|
|
case SolutionAnalysisModuleProperty::Basic_Model:
|
|
|
|
case SolutionAnalysisModuleProperty::Basic_Model:
|
|
|
|
res = m_solverBasicModeManager->getParamUIConfig();
|
|
|
|
res = m_solverBasicModeManager->getParamUIConfig();
|
|
|
|
|
|
|
|
break;
|
|
|
|
case SolutionAnalysisModuleProperty::Viscosity_Model:
|
|
|
|
case SolutionAnalysisModuleProperty::Viscosity_Model:
|
|
|
|
res = m_solverKvislManager->getParamUIConfig();
|
|
|
|
res = m_solverKvislManager->getParamUIConfig();
|
|
|
|
|
|
|
|
break;
|
|
|
|
case SolutionAnalysisModuleProperty::NUumerical_Methods:
|
|
|
|
case SolutionAnalysisModuleProperty::NUumerical_Methods:
|
|
|
|
res = m_solverNumericalMethodManager->getParamUIConfig();
|
|
|
|
res = m_solverNumericalMethodManager->getParamUIConfig();
|
|
|
|
|
|
|
|
break;
|
|
|
|
case SolutionAnalysisModuleProperty::Motion_Properties:
|
|
|
|
case SolutionAnalysisModuleProperty::Motion_Properties:
|
|
|
|
res = m_solverSportsAttributesManager->getParamUIConfig();
|
|
|
|
res = m_solverSportsAttributesManager->getParamUIConfig();
|
|
|
|
|
|
|
|
break;
|
|
|
|
case SolutionAnalysisModuleProperty::Boundary_Conditions:
|
|
|
|
case SolutionAnalysisModuleProperty::Boundary_Conditions:
|
|
|
|
res = m_solverBoundaryConditionManager->getParamUIConfig();
|
|
|
|
res = m_solverBoundaryConditionManager->getParamUIConfig();
|
|
|
|
|
|
|
|
break;
|
|
|
|
case SolutionAnalysisModuleProperty::Initialization:
|
|
|
|
case SolutionAnalysisModuleProperty::Initialization:
|
|
|
|
res = m_solverInitializationManager->getParamUIConfig();
|
|
|
|
res = m_solverInitializationManager->getParamUIConfig();
|
|
|
|
|
|
|
|
break;
|
|
|
|
case SolutionAnalysisModuleProperty::Computational_Control_Reference_Quantity:
|
|
|
|
case SolutionAnalysisModuleProperty::Computational_Control_Reference_Quantity:
|
|
|
|
res = m_solverReferenceQuantityManager->getParamUIConfig();
|
|
|
|
res = m_solverReferenceQuantityManager->getParamUIConfig();
|
|
|
|
|
|
|
|
break;
|
|
|
|
case SolutionAnalysisModuleProperty::Computational_Control:
|
|
|
|
case SolutionAnalysisModuleProperty::Computational_Control:
|
|
|
|
res = m_solverComputingControlManager->getParamUIConfig();
|
|
|
|
res = m_solverComputingControlManager->getParamUIConfig();
|
|
|
|
|
|
|
|
break;
|
|
|
|
case SolutionAnalysisModuleProperty::Monitors_Residual:
|
|
|
|
case SolutionAnalysisModuleProperty::Monitors_Residual:
|
|
|
|
res = m_solverMonitorResidualManager->getParamUIConfig();
|
|
|
|
res = m_solverMonitorResidualManager->getParamUIConfig();
|
|
|
|
|
|
|
|
break;
|
|
|
|
case SolutionAnalysisModuleProperty::Monitors_AerodynamicForce:
|
|
|
|
case SolutionAnalysisModuleProperty::Monitors_AerodynamicForce:
|
|
|
|
res = m_solverMonitorAerodynamicForceManager->getParamUIConfig();
|
|
|
|
res = m_solverMonitorAerodynamicForceManager->getParamUIConfig();
|
|
|
|
|
|
|
|
break;
|
|
|
|
case SolutionAnalysisModuleProperty::Monitors_Tubomachinery_Performance:
|
|
|
|
case SolutionAnalysisModuleProperty::Monitors_Tubomachinery_Performance:
|
|
|
|
res = m_solverMonitorTubomachineryPerformanceManager->getParamUIConfig();
|
|
|
|
res = m_solverMonitorTubomachineryPerformanceManager->getParamUIConfig();
|
|
|
|
|
|
|
|
break;
|
|
|
|
default:
|
|
|
|
default:
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -93,13 +108,11 @@ void CFDStructDataManager::initDataManagers()
|
|
|
|
|
|
|
|
|
|
|
|
void CFDStructDataManager::initJson()
|
|
|
|
void CFDStructDataManager::initJson()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_dom.Clear();
|
|
|
|
|
|
|
|
m_dom.SetObject();
|
|
|
|
m_dom.SetObject();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void CFDStructDataManager::updateJson()
|
|
|
|
void CFDStructDataManager::updateJson()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_dom.Clear();
|
|
|
|
|
|
|
|
m_dom.SetObject();
|
|
|
|
m_dom.SetObject();
|
|
|
|
|
|
|
|
|
|
|
|
m_solverTimeModeManager->saveDataToDom(m_dom);
|
|
|
|
m_solverTimeModeManager->saveDataToDom(m_dom);
|
|
|
|