1、修改边界条件-转轴方向的设置

feature/struct-menu-20241023
mzh 1 week ago
parent 20710f595b
commit 18f0091274

@ -1608,16 +1608,37 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::genCycleRotationUIConfig
},
{}),
new CUIConfig({
{"type", "LineEdit"}, // 转轴方向
{"type", "GroupBox"}, // 转轴方向
{"name", tr("Axis direction")},
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
{"value_origin", QVA_GLOBAL(&m_RotationAxisDirection)},
{"layout", "QHBoxLayout"},
// {"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
// {"value_origin", QVA_GLOBAL(&m_RotationAxisDirection)},
},
{}),
{
new CUIConfig({
{"type", "LineEdit"},
{"name", "X:"},
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
{"value_origin", m_per_rot_aixsX},
}),
new CUIConfig({
{"type", "LineEdit"},
{"name", "Y:"},
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
{"value_origin", m_per_rot_aixsY},
}),
new CUIConfig({
{"type", "LineEdit"},
{"name", "Z:"},
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
{"value_origin", m_per_rot_aixsZ},
}),
}),
new CUIConfig({
{"type", "LineEdit"}, // 旋转角
{"name", tr("Rotation angle")},
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
{"value_origin", QVA_GLOBAL(&m_RotationAngle)},
},
{}),

@ -122,10 +122,13 @@ class CFDSTRUCTDATAMANAGER_EXPORT CFDStructDataSolverBoundaryConditionManager :
QString m_RotationCenter; // Rotation Center
// 转轴方向
QString m_RotationAxisDirection; // Rotation Axis Direction
// QString m_RotationAxisDirection; // Rotation Axis Direction
double m_per_rot_aixsX = 0;
double m_per_rot_aixsY = 0;
double m_per_rot_aixsZ = 0;
// 旋转角
QString m_RotationAngle; // Rotation Angle
double m_RotationAngle; // Rotation Angle
// 壁面类型
int m_WallType = 0; // Wall Type

Loading…
Cancel
Save