1、修改边界条件-来流方向的设置

feature/struct-menu-20241023
mzh 1 week ago
parent 64adf2650c
commit 20710f595b

@ -185,12 +185,33 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::genFarFieldModeUIConfig(
},
{}),
new CUIConfig({
{"type", "LineEdit"}, // 来流方向
{"type", "GroupBox"}, // 来流方向
{"name", tr("Flow direction")},
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
{"value_origin", QVA_GLOBAL(&m_InflowDirection)},
{"layout", "QHBoxLayout"},
// {"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
// {"value_origin", QVA_GLOBAL(&m_InflowDirection)},
},
{}),
{
new CUIConfig({
{"type", "LineEdit"},
{"name", "X:"},
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
{"value_origin", m_InflowDirectionX},
}),
new CUIConfig({
{"type", "LineEdit"},
{"name", "Y:"},
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
{"value_origin", m_InflowDirectionY},
}),
new CUIConfig({
{"type", "LineEdit"},
{"name", "Z:"},
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
{"value_origin", m_InflowDirectionZ},
}),
}),
}),
new CUIConfig({
{"type", "GroupBox"},

@ -86,7 +86,10 @@ class CFDSTRUCTDATAMANAGER_EXPORT CFDStructDataSolverBoundaryConditionManager :
double m_Temperature; // Temperature
// 来流方向
double m_InflowDirection; // Inflow Direction
// double m_InflowDirection; // Inflow Direction
double m_InflowDirectionX = 0;
double m_InflowDirectionY = 0;
double m_InflowDirectionZ = 0;
// 湍流粘性比
double m_TurbulentViscosityRatio; // Turbulent Viscosity Ratio

Loading…
Cancel
Save