|
|
|
@ -9,9 +9,8 @@
|
|
|
|
|
CFDStructDataSolverInitializationManager::CFDStructDataSolverInitializationManager(QObject *parent) : CFDStructDataManagerBase(parent)
|
|
|
|
|
{
|
|
|
|
|
m_uiConfig = nullptr;
|
|
|
|
|
connect(m_cuiSigsCenter, &CUISigsCenter::sig_cuiPropertyChanged, this, [ = ](int semaphore) {
|
|
|
|
|
emit CFDStructSigsCenter::getInstance()->sig_solverTimeModeDataChanged();
|
|
|
|
|
});
|
|
|
|
|
connect(m_cuiSigsCenter, &CUISigsCenter::sig_cuiPropertyChanged, this, [=](int semaphore)
|
|
|
|
|
{ emit CFDStructSigsCenter::getInstance() -> sig_solverTimeModeDataChanged(); });
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CFDStructDataSolverInitializationManager::~CFDStructDataSolverInitializationManager()
|
|
|
|
@ -21,7 +20,8 @@ CFDStructDataSolverInitializationManager::~CFDStructDataSolverInitializationMana
|
|
|
|
|
|
|
|
|
|
CUIConfig *CFDStructDataSolverInitializationManager::getParamUIConfig()
|
|
|
|
|
{
|
|
|
|
|
if (m_uiConfig != nullptr) {
|
|
|
|
|
if (m_uiConfig != nullptr)
|
|
|
|
|
{
|
|
|
|
|
delete m_uiConfig;
|
|
|
|
|
m_uiConfig = nullptr;
|
|
|
|
|
}
|
|
|
|
@ -34,42 +34,61 @@ CUIConfig *CFDStructDataSolverInitializationManager::genUIConfig()
|
|
|
|
|
{
|
|
|
|
|
new CUIConfig({
|
|
|
|
|
{"type", "Widget"},
|
|
|
|
|
},{
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
new CUIConfig({
|
|
|
|
|
{"type", "ComboBox"}, // 参考值取自
|
|
|
|
|
{"name", tr("The reference value is taken from")},
|
|
|
|
|
},{}),
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_ReferenceValuesFrom)},
|
|
|
|
|
},
|
|
|
|
|
{}),
|
|
|
|
|
new CUIConfig({
|
|
|
|
|
{"type", "GroupBox"}, // 初始值定义
|
|
|
|
|
{"name", tr("Initial value definition")},
|
|
|
|
|
},{
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
new CUIConfig({
|
|
|
|
|
{"type", "LineEdit"}, // 密度
|
|
|
|
|
{"name", tr("density")},
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_Density)},
|
|
|
|
|
}),
|
|
|
|
|
new CUIConfig({
|
|
|
|
|
{"type", "LineEdit"}, // μ速度
|
|
|
|
|
{"name", tr("μ speed")},
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_MuVelocity)},
|
|
|
|
|
}),
|
|
|
|
|
new CUIConfig({
|
|
|
|
|
{"type", "LineEdit"}, // ν速度
|
|
|
|
|
{"name", tr("v Speed")},
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_VVelocity)},
|
|
|
|
|
}),
|
|
|
|
|
new CUIConfig({
|
|
|
|
|
{"type", "LineEdit"}, // ω速度
|
|
|
|
|
{"name", tr("ω velocity")},
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_WVelocity)},
|
|
|
|
|
}),
|
|
|
|
|
new CUIConfig({
|
|
|
|
|
{"type", "LineEdit"}, // 压强
|
|
|
|
|
{"name", tr("pressure")},
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_Pressure)},
|
|
|
|
|
}),
|
|
|
|
|
new CUIConfig({
|
|
|
|
|
{"type", "LineEdit"}, // 湍流粘性比
|
|
|
|
|
{"name", tr("Turbulent viscosity ratio")},
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_TurbulentViscosityRatio)},
|
|
|
|
|
}),
|
|
|
|
|
new CUIConfig({
|
|
|
|
|
{"type", "LineEdit"}, // 湍流强度
|
|
|
|
|
{"name", tr("Turbulence intensity")},
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_TurbulentIntensity)},
|
|
|
|
|
}),
|
|
|
|
|
}),
|
|
|
|
|
});
|
|
|
|
|