1、ui界面上,边界条件-周期:旋转中心,改成矢量 。

feature/struct-menu-20241023
mzh 3 days ago
parent 34a2fb4e1f
commit d26c42d58a

@ -2034,12 +2034,29 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::genCycleRotationUIConfig
}),
}),
new CUIConfig({
{"type", "LineEdit"}, // 旋转中心
{"type", "GourpBox"}, // 旋转中心
{"name", tr("Rotation center")},
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
{"value_origin", QVA_GLOBAL(&m_RotationCenter)},
},
{}),
{
new CUIConfig({
{"type", "LineEdit"},
{"name", "X:"},
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
{"value_origin", QVA_GLOBAL(&m_RotationCenterX)},
}),
new CUIConfig({
{"type", "LineEdit"},
{"name", "Y:"},
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
{"value_origin", QVA_GLOBAL(&m_RotationCenterY)},
}),
new CUIConfig({
{"type", "LineEdit"},
{"name", "Z:"},
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
{"value_origin", QVA_GLOBAL(&m_RotationCenterZ)},
}),
}),
new CUIConfig({
{"type", "GroupBox"}, // 转轴方向
{"name", tr("Axis direction")},

@ -127,7 +127,10 @@ class CFDSTRUCTDATAMANAGER_EXPORT CFDStructDataSolverBoundaryConditionManager :
double m_TranslationDistanceZ = 0;
// 旋转中心
QString m_RotationCenter; // Rotation Center
// QString m_RotationCenter; // Rotation Center
double m_RotationCenterX = 0;
double m_RotationCenterY = 0;
double m_RotationCenterZ = 0;
// 转轴方向
// QString m_RotationAxisDirection; // Rotation Axis Direction

Loading…
Cancel
Save