|
|
@ -1,5 +1,7 @@
|
|
|
|
#include "CFDStructDataSolverBasicModelManager.h"
|
|
|
|
#include "CFDStructDataSolverBasicModelManager.h"
|
|
|
|
#include "CUIProperty/CUIConfig.h"
|
|
|
|
#include "CUIProperty/CUIConfig.h"
|
|
|
|
|
|
|
|
#include "CFDStructMain/CFDStructDefine.h"
|
|
|
|
|
|
|
|
#include "CFDStructSigsCenter.h"
|
|
|
|
|
|
|
|
|
|
|
|
CFDStructDataSolverBasicModelManager::CFDStructDataSolverBasicModelManager(QObject *parent) : CFDStructDataManagerBase(parent)
|
|
|
|
CFDStructDataSolverBasicModelManager::CFDStructDataSolverBasicModelManager(QObject *parent) : CFDStructDataManagerBase(parent)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -13,10 +15,19 @@ CFDStructDataSolverBasicModelManager::~CFDStructDataSolverBasicModelManager()
|
|
|
|
delete m_uiConfig;
|
|
|
|
delete m_uiConfig;
|
|
|
|
m_uiConfig = nullptr;
|
|
|
|
m_uiConfig = nullptr;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
connect(m_cuiSigsCenter, &CUISigsCenter::sig_cuiPropertyChanged, this, [=](int semaphore){
|
|
|
|
|
|
|
|
emit CFDStructSigsCenter::getInstance()->sig_solverTimeModeDataChanged();
|
|
|
|
|
|
|
|
});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
CUIConfig *CFDStructDataSolverBasicModelManager::getParamUIConfig()
|
|
|
|
CUIConfig *CFDStructDataSolverBasicModelManager::getParamUIConfig()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
qDebug()<<"m_FluidProperties: "<<m_FluidProperties;
|
|
|
|
|
|
|
|
if(m_FluidProperties == 0)
|
|
|
|
|
|
|
|
return this->genFluidPropertiesOffUIConfig();
|
|
|
|
|
|
|
|
if(m_FluidProperties == 1)
|
|
|
|
|
|
|
|
return this->genFluidPropertiesOnUIConfig();
|
|
|
|
|
|
|
|
|
|
|
|
return this->genFluidPropertiesOnUIConfig();
|
|
|
|
return this->genFluidPropertiesOnUIConfig();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -40,7 +51,11 @@ CUIConfig *CFDStructDataSolverBasicModelManager::genFluidPropertiesOffUIConfig()
|
|
|
|
})}),
|
|
|
|
})}),
|
|
|
|
new CUIConfig({// 下拉框:流动模型
|
|
|
|
new CUIConfig({// 下拉框:流动模型
|
|
|
|
{"type", "ComboBox"},
|
|
|
|
{"type", "ComboBox"},
|
|
|
|
{"name", tr("Flow Model")}},
|
|
|
|
{"name", tr("Flow Model")},
|
|
|
|
|
|
|
|
{"value_type",CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin",QVA_GLOBAL(&m_FlowModel)},
|
|
|
|
|
|
|
|
{"semaphore",1},
|
|
|
|
|
|
|
|
},
|
|
|
|
{new CUIConfig({// 选项:外流
|
|
|
|
{new CUIConfig({// 选项:外流
|
|
|
|
{"type", "Item"},
|
|
|
|
{"type", "Item"},
|
|
|
|
{"name", tr("Internal Flow")}}),
|
|
|
|
{"name", tr("Internal Flow")}}),
|
|
|
@ -54,8 +69,12 @@ CUIConfig *CFDStructDataSolverBasicModelManager::genFluidPropertiesOffUIConfig()
|
|
|
|
{"type", "CheckBox"},
|
|
|
|
{"type", "CheckBox"},
|
|
|
|
{"name", tr("Overlay Network")}}),
|
|
|
|
{"name", tr("Overlay Network")}}),
|
|
|
|
new CUIConfig({// 方形选择按钮:流体属性
|
|
|
|
new CUIConfig({// 方形选择按钮:流体属性
|
|
|
|
{"type", "CheckButton"},
|
|
|
|
{"type", "CheckBox"},
|
|
|
|
{"name", tr("Fluid Properties")}})});
|
|
|
|
{"name", tr("Fluid Properties")},
|
|
|
|
|
|
|
|
{"value_type",CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin",QVA_GLOBAL(&m_FluidProperties)},
|
|
|
|
|
|
|
|
{"semaphore",1},
|
|
|
|
|
|
|
|
})});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
CUIConfig *CFDStructDataSolverBasicModelManager::genFluidPropertiesOnUIConfig()
|
|
|
|
CUIConfig *CFDStructDataSolverBasicModelManager::genFluidPropertiesOnUIConfig()
|
|
|
@ -85,10 +104,15 @@ CUIConfig *CFDStructDataSolverBasicModelManager::genFluidPropertiesOnUIConfig()
|
|
|
|
{"name", tr("Multistage Turbomachinery")}})}),
|
|
|
|
{"name", tr("Multistage Turbomachinery")}})}),
|
|
|
|
new CUIConfig({// 方形勾选:重叠网络
|
|
|
|
new CUIConfig({// 方形勾选:重叠网络
|
|
|
|
{"type", "CheckBox"},
|
|
|
|
{"type", "CheckBox"},
|
|
|
|
{"name", tr("ichimr")}}),
|
|
|
|
{"name", tr("Overlay Network")},
|
|
|
|
|
|
|
|
}),
|
|
|
|
new CUIConfig({// 圆形选择按钮:流体属性
|
|
|
|
new CUIConfig({// 圆形选择按钮:流体属性
|
|
|
|
{"type", "RadioButton"},
|
|
|
|
{"type", "CheckBox"},
|
|
|
|
{"name", tr("Fluid Properties")}}),
|
|
|
|
{"name", tr("Fluid Properties")},
|
|
|
|
|
|
|
|
{"value_type",CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin",QVA_GLOBAL(&m_FluidProperties)},
|
|
|
|
|
|
|
|
{"semaphore",1},
|
|
|
|
|
|
|
|
}),
|
|
|
|
new CUIConfig({// 组,流体属性下的内容
|
|
|
|
new CUIConfig({// 组,流体属性下的内容
|
|
|
|
{"type", "GroupBox"},
|
|
|
|
{"type", "GroupBox"},
|
|
|
|
{"name", tr("Fluid Properties")}},
|
|
|
|
{"name", tr("Fluid Properties")}},
|
|
|
|