1、补充了边界条件的的用户自定义选项

feature/struct-menu-20241023
mzh 2 weeks ago
parent da5e3219ba
commit 1ea01f24b1

@ -45,27 +45,36 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::getParamUIConfig()
return genFarFieldModeUIConfig(); return genFarFieldModeUIConfig();
if (m_BoundaryType == 2) if (m_BoundaryType == 2)
{ {
if(m_BoundaryType_sub == 0){ if (m_BoundaryType_sub == 0)
if(m_VelocityDirectionType == 0){ {
if (m_VelocityDirectionType == 0)
{
return genPressureInletModeSupersonicCylindricalUIConfig(); return genPressureInletModeSupersonicCylindricalUIConfig();
}if(m_VelocityDirectionType == 1){ }
if (m_VelocityDirectionType == 1)
{
return genPressureInletModeSupersonicCartesianUIConfig(); return genPressureInletModeSupersonicCartesianUIConfig();
}if(m_VelocityDirectionType == 2){ }
if (m_VelocityDirectionType == 2)
{
return genPressureInletModeSupersonicSurfaceUIConfig(); return genPressureInletModeSupersonicSurfaceUIConfig();
} }
} }
if(m_BoundaryType_sub == 1){ if (m_BoundaryType_sub == 1)
if(m_VelocityDirectionType == 0){ {
if (m_VelocityDirectionType == 0)
{
return genPressureInletModeSubsonicCylindricalUIConfig(); return genPressureInletModeSubsonicCylindricalUIConfig();
} }
if(m_VelocityDirectionType == 1){ if (m_VelocityDirectionType == 1)
{
return genPressureInletModeSubsonicCartesianUIConfig(); return genPressureInletModeSubsonicCartesianUIConfig();
} }
if(m_VelocityDirectionType == 2){ if (m_VelocityDirectionType == 2)
{
return genPressureInletModeSubsonicSurfaceUIConfig(); return genPressureInletModeSubsonicSurfaceUIConfig();
} }
} }
} }
if (m_BoundaryType == 3) if (m_BoundaryType == 3)
return genPressureOutletUIConfig(); return genPressureOutletUIConfig();
@ -358,8 +367,10 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::genPressureInletModeSupe
}), }),
// TODO 用户自定义 // TODO 用户自定义
new CUIConfig({ new CUIConfig({
{"type", "CheckButton"}, {"type", "CheckBox"},
{"name", tr("User-Defined")}, {"name", tr("User-Defined")},
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
{"value_origin", QVA_GLOBAL(&m_UserDefined)},
}), }),
}); });
@ -504,8 +515,10 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::genPressureInletModeSupe
}), }),
// TODO 用户自定义 // TODO 用户自定义
new CUIConfig({ new CUIConfig({
{"type", "CheckButton"}, {"type", "CheckBox"},
{"name", tr("User-Defined")}, {"name", tr("User-Defined")},
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
{"value_origin", QVA_GLOBAL(&m_UserDefined)},
}), }),
}); });
@ -643,8 +656,10 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::genPressureInletModeSupe
}), }),
// TODO 用户自定义 // TODO 用户自定义
new CUIConfig({ new CUIConfig({
{"type", "CheckButton"}, {"type", "CheckBox"},
{"name", tr("User-Defined")}, {"name", tr("User-Defined")},
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
{"value_origin", QVA_GLOBAL(&m_UserDefined)},
}), }),
}); });
@ -782,8 +797,10 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::genPressureInletModeSubs
}), }),
// TODO 用户自定义 // TODO 用户自定义
new CUIConfig({ new CUIConfig({
{"type", "CheckButton"}, {"type", "CheckBox"},
{"name", tr("User-Defined")}, {"name", tr("User-Defined")},
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
{"value_origin", QVA_GLOBAL(&m_UserDefined)},
}), }),
}); });
@ -922,8 +939,10 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::genPressureInletModeSubs
}), }),
// TODO 用户自定义 // TODO 用户自定义
new CUIConfig({ new CUIConfig({
{"type", "CheckButton"}, {"type", "CheckBox"},
{"name", tr("User-Defined")}, {"name", tr("User-Defined")},
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
{"value_origin", QVA_GLOBAL(&m_UserDefined)},
}), }),
}); });
@ -1054,8 +1073,10 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::genPressureInletModeSubs
}), }),
// TODO 用户自定义 // TODO 用户自定义
new CUIConfig({ new CUIConfig({
{"type", "CheckButton"}, {"type", "CheckBox"},
{"name", tr("User-Defined")}, {"name", tr("User-Defined")},
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
{"value_origin", QVA_GLOBAL(&m_UserDefined)},
}), }),
}); });
@ -1154,6 +1175,8 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::genPressureOutletUIConfi
new CUIConfig({ new CUIConfig({
{"type", "CheckBox"}, {"type", "CheckBox"},
{"name", tr("User-Defined")}, {"name", tr("User-Defined")},
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
{"value_origin", QVA_GLOBAL(&m_UserDefined)},
}), }),
}); });
@ -1812,6 +1835,8 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::genWallAdiabaticWallUICo
new CUIConfig({ new CUIConfig({
{"type", "CheckBox"}, {"type", "CheckBox"},
{"name", tr("User-Defined")}, {"name", tr("User-Defined")},
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
{"value_origin", QVA_GLOBAL(&m_UserDefined)},
}), }),
}); });
return nullptr; return nullptr;
@ -1926,6 +1951,8 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::genWallIsothermalWallUIC
new CUIConfig({ new CUIConfig({
{"type", "CheckBox"}, {"type", "CheckBox"},
{"name", tr("User-Defined")}, {"name", tr("User-Defined")},
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
{"value_origin", QVA_GLOBAL(&m_UserDefined)},
}), }),
}); });
return nullptr; return nullptr;
@ -2042,6 +2069,8 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::genWallHotFlowWallUIConf
new CUIConfig({ new CUIConfig({
{"type", "CheckBox"}, {"type", "CheckBox"},
{"name", tr("User-Defined")}, {"name", tr("User-Defined")},
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
{"value_origin", QVA_GLOBAL(&m_UserDefined)},
}), }),
}); });
return nullptr; return nullptr;

@ -156,6 +156,9 @@ private:
//边界类型,选中总压入口时,出现的子选项,可选声速、亚声速 //边界类型,选中总压入口时,出现的子选项,可选声速、亚声速
int m_BoundaryType_sub = 0; int m_BoundaryType_sub = 0;
//用户自定义
int m_UserDefined = 0;
}; };
#endif // CFDSTRUCTDATASOLVERBOUNDARYCONDITIONMANAGER_H #endif // CFDSTRUCTDATASOLVERBOUNDARYCONDITIONMANAGER_H

Loading…
Cancel
Save