|
|
@ -10,8 +10,7 @@ CFDStructDataSolverBoundaryConditionManager::CFDStructDataSolverBoundaryConditio
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_uiConfig = nullptr;
|
|
|
|
m_uiConfig = nullptr;
|
|
|
|
connect(m_cuiSigsCenter, &CUISigsCenter::sig_cuiPropertyChanged, this, [=](int semaphore)
|
|
|
|
connect(m_cuiSigsCenter, &CUISigsCenter::sig_cuiPropertyChanged, this, [=](int semaphore)
|
|
|
|
{
|
|
|
|
{ emit CFDStructSigsCenter::getInstance() -> sig_solverTimeModeDataChanged(); });
|
|
|
|
emit CFDStructSigsCenter::getInstance()->sig_solverTimeModeDataChanged(); });
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
CFDStructDataSolverBoundaryConditionManager::~CFDStructDataSolverBoundaryConditionManager()
|
|
|
|
CFDStructDataSolverBoundaryConditionManager::~CFDStructDataSolverBoundaryConditionManager()
|
|
|
@ -38,16 +37,23 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::genFarFieldModeUIConfig(
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 边界名称
|
|
|
|
{"type", "LineEdit"}, // 边界名称
|
|
|
|
{"name", tr("Boundary name")},
|
|
|
|
{"name", tr("Boundary name")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_BoundaryName)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 所属计算域
|
|
|
|
{"type", "LineEdit"}, // 所属计算域
|
|
|
|
{"name", tr("Belonging to the computing domain")},
|
|
|
|
{"name", tr("Belonging to the computing domain")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_ComputationalDomain)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 边界类型
|
|
|
|
{"type", "ComboBox"}, // 边界类型
|
|
|
|
{"name", tr("Boundary type")},
|
|
|
|
{"name", tr("Boundary type")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_BoundaryType)},
|
|
|
|
|
|
|
|
{"semaphore", (int)SolutionAnalysisModuleProperty::Boundary_Conditions},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -78,31 +84,43 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::genFarFieldModeUIConfig(
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 马赫数
|
|
|
|
{"type", "LineEdit"}, // 马赫数
|
|
|
|
{"name", tr("mach number")},
|
|
|
|
{"name", tr("mach number")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_MachNumber)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 密度
|
|
|
|
{"type", "LineEdit"}, // 密度
|
|
|
|
{"name", tr("density")},
|
|
|
|
{"name", tr("density")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_Density)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 温度
|
|
|
|
{"type", "LineEdit"}, // 温度
|
|
|
|
{"name", tr("temperature")},
|
|
|
|
{"name", tr("temperature")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_Temperature)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 来流方向
|
|
|
|
{"type", "LineEdit"}, // 来流方向
|
|
|
|
{"name", tr("Flow direction")},
|
|
|
|
{"name", tr("Flow direction")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_InflowDirection)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 湍流粘性比
|
|
|
|
{"type", "LineEdit"}, // 湍流粘性比
|
|
|
|
{"name", tr("Turbulent viscosity ratio")},
|
|
|
|
{"name", tr("Turbulent viscosity ratio")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_TurbulentViscosityRatio)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 湍流强度
|
|
|
|
{"type", "LineEdit"}, // 湍流强度
|
|
|
|
{"name", tr("Turbulence intensity")},
|
|
|
|
{"name", tr("Turbulence intensity")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_TurbulentIntensity)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -116,16 +134,23 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::genPressureInletModeUICo
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 边界名称
|
|
|
|
{"type", "LineEdit"}, // 边界名称
|
|
|
|
{"name", tr("Boundary name")},
|
|
|
|
{"name", tr("Boundary name")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_BoundaryName)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 所属计算域
|
|
|
|
{"type", "LineEdit"}, // 所属计算域
|
|
|
|
{"name", tr("Belonging to the computing domain")},
|
|
|
|
{"name", tr("Belonging to the computing domain")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_ComputationalDomain)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 边界类型
|
|
|
|
{"type", "ComboBox"}, // 边界类型
|
|
|
|
{"name", tr("Boundary type")},
|
|
|
|
{"name", tr("Boundary type")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_BoundaryType)},
|
|
|
|
|
|
|
|
{"semaphore", (int)SolutionAnalysisModuleProperty::Boundary_Conditions},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -156,31 +181,43 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::genPressureInletModeUICo
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 总压
|
|
|
|
{"type", "LineEdit"}, // 总压
|
|
|
|
{"name", tr("Total pressure")},
|
|
|
|
{"name", tr("Total pressure")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_TotalPressure)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 总温
|
|
|
|
{"type", "LineEdit"}, // 总温
|
|
|
|
{"name", tr("Total temperature")},
|
|
|
|
{"name", tr("Total temperature")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_TotalTemperature)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 静压
|
|
|
|
{"type", "LineEdit"}, // 静压
|
|
|
|
{"name", tr("static pressure")},
|
|
|
|
{"name", tr("static pressure")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_StaticPressure)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 来流方向
|
|
|
|
{"type", "LineEdit"}, // 来流方向
|
|
|
|
{"name", tr("Flow direction")},
|
|
|
|
{"name", tr("Flow direction")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_InflowDirection)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 湍流粘性比
|
|
|
|
{"type", "LineEdit"}, // 湍流粘性比
|
|
|
|
{"name", tr("Turbulent viscosity ratio")},
|
|
|
|
{"name", tr("Turbulent viscosity ratio")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_TurbulentViscosityRatio)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 湍流强度
|
|
|
|
{"type", "LineEdit"}, // 湍流强度
|
|
|
|
{"name", tr("Turbulence intensity")},
|
|
|
|
{"name", tr("Turbulence intensity")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_TurbulentIntensity)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
// TODO 用户自定义
|
|
|
|
// TODO 用户自定义
|
|
|
@ -194,16 +231,23 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::genPressureOutletUIConfi
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 边界名称
|
|
|
|
{"type", "LineEdit"}, // 边界名称
|
|
|
|
{"name", tr("Boundary name")},
|
|
|
|
{"name", tr("Boundary name")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_BoundaryName)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 所属计算域
|
|
|
|
{"type", "LineEdit"}, // 所属计算域
|
|
|
|
{"name", tr("Belonging to the computing domain")},
|
|
|
|
{"name", tr("Belonging to the computing domain")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_ComputationalDomain)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 边界类型
|
|
|
|
{"type", "ComboBox"}, // 边界类型
|
|
|
|
{"name", tr("Boundary type")},
|
|
|
|
{"name", tr("Boundary type")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_BoundaryType)},
|
|
|
|
|
|
|
|
{"semaphore", (int)SolutionAnalysisModuleProperty::Boundary_Conditions},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -234,6 +278,8 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::genPressureOutletUIConfi
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 静压
|
|
|
|
{"type", "LineEdit"}, // 静压
|
|
|
|
{"name", tr("static pressure")},
|
|
|
|
{"name", tr("static pressure")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_StaticPressure)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -246,16 +292,23 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::genSymmetricUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 边界名称
|
|
|
|
{"type", "LineEdit"}, // 边界名称
|
|
|
|
{"name", tr("Boundary name")},
|
|
|
|
{"name", tr("Boundary name")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_BoundaryName)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 所属计算域
|
|
|
|
{"type", "LineEdit"}, // 所属计算域
|
|
|
|
{"name", tr("Belonging to the computing domain")},
|
|
|
|
{"name", tr("Belonging to the computing domain")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_ComputationalDomain)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 边界类型
|
|
|
|
{"type", "ComboBox"}, // 边界类型
|
|
|
|
{"name", tr("Boundary type")},
|
|
|
|
{"name", tr("Boundary type")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_BoundaryType)},
|
|
|
|
|
|
|
|
{"semaphore", (int)SolutionAnalysisModuleProperty::Boundary_Conditions},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -293,16 +346,23 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::genCycleUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 边界名称
|
|
|
|
{"type", "LineEdit"}, // 边界名称
|
|
|
|
{"name", tr("Boundary name")},
|
|
|
|
{"name", tr("Boundary name")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_BoundaryName)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 所属计算域
|
|
|
|
{"type", "LineEdit"}, // 所属计算域
|
|
|
|
{"name", tr("Belonging to the computing domain")},
|
|
|
|
{"name", tr("Belonging to the computing domain")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_ComputationalDomain)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 边界类型
|
|
|
|
{"type", "ComboBox"}, // 边界类型
|
|
|
|
{"name", tr("Boundary type")},
|
|
|
|
{"name", tr("Boundary type")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_BoundaryType)},
|
|
|
|
|
|
|
|
{"semaphore", (int)SolutionAnalysisModuleProperty::Boundary_Conditions},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -333,31 +393,43 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::genCycleUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 配对名称
|
|
|
|
{"type", "LineEdit"}, // 配对名称
|
|
|
|
{"name", tr("Pairing Name")},
|
|
|
|
{"name", tr("Pairing Name")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_PairingName)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 对应面
|
|
|
|
{"type", "ComboBox"}, // 对应面
|
|
|
|
{"name", tr("Corresponding surface")},
|
|
|
|
{"name", tr("Corresponding surface")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_CorrespondingSurface)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 周期类型
|
|
|
|
{"type", "ComboBox"}, // 周期类型
|
|
|
|
{"name", tr("Cycle type")},
|
|
|
|
{"name", tr("Cycle type")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_PeriodicType)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 旋转中心
|
|
|
|
{"type", "LineEdit"}, // 旋转中心
|
|
|
|
{"name", tr("Rotation center")},
|
|
|
|
{"name", tr("Rotation center")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_RotationCenter)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 转轴方向
|
|
|
|
{"type", "LineEdit"}, // 转轴方向
|
|
|
|
{"name", tr("Axis direction")},
|
|
|
|
{"name", tr("Axis direction")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_RotationAxisDirection)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 旋转角
|
|
|
|
{"type", "LineEdit"}, // 旋转角
|
|
|
|
{"name", tr("Rotation angle")},
|
|
|
|
{"name", tr("Rotation angle")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_RotationAngle)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -370,16 +442,23 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::genWallAdiabaticWallUICo
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 边界名称
|
|
|
|
{"type", "LineEdit"}, // 边界名称
|
|
|
|
{"name", tr("Boundary name")},
|
|
|
|
{"name", tr("Boundary name")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_BoundaryName)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 所属计算域
|
|
|
|
{"type", "LineEdit"}, // 所属计算域
|
|
|
|
{"name", tr("Belonging to the computing domain")},
|
|
|
|
{"name", tr("Belonging to the computing domain")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_ComputationalDomain)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 边界类型
|
|
|
|
{"type", "ComboBox"}, // 边界类型
|
|
|
|
{"name", tr("Boundary type")},
|
|
|
|
{"name", tr("Boundary type")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_BoundaryType)},
|
|
|
|
|
|
|
|
{"semaphore", (int)SolutionAnalysisModuleProperty::Boundary_Conditions},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -410,8 +489,10 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::genWallAdiabaticWallUICo
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "RadioComponent"}, // 壁面类型
|
|
|
|
{"type", "RadioComponent"}, // 壁面类型
|
|
|
|
{"name", tr("Wall type")},
|
|
|
|
{"name", tr("Wall type")},
|
|
|
|
{"widget","GroupBox"},
|
|
|
|
{"widget", "GroupBox"},
|
|
|
|
|
|
|
|
{"layout", "QHBoxLayout"},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_WallType)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -433,11 +514,11 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::genWallAdiabaticWallUICo
|
|
|
|
|
|
|
|
|
|
|
|
CUIConfig *CFDStructDataSolverBoundaryConditionManager::genWallIsothermalWallUIConfig()
|
|
|
|
CUIConfig *CFDStructDataSolverBoundaryConditionManager::genWallIsothermalWallUIConfig()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return new CUIConfig({{"type", "Widget"}}, {
|
|
|
|
return new CUIConfig({{"type", "Widget"}}, {
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 边界名称
|
|
|
|
{"type", "LineEdit"}, // 边界名称
|
|
|
|
{"name", tr("Boundary name")},
|
|
|
|
{"name", tr("Boundary name")},
|
|
|
|
{"widget","GroupBox"},
|
|
|
|
{"widget", "GroupBox"},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -477,8 +558,12 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::genWallIsothermalWallUIC
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "RadioComponent"}, // 壁面类型
|
|
|
|
{"type", "RadioComponent"}, // 壁面类型
|
|
|
|
{"name", tr(("Wall type"))},
|
|
|
|
{"name", tr("Wall type")},
|
|
|
|
{"widget","GroupBox"},
|
|
|
|
{"widget", "GroupBox"},
|
|
|
|
|
|
|
|
{"layout", "QHBoxLayout"},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_WallType)},
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -494,8 +579,10 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::genWallIsothermalWallUIC
|
|
|
|
{"name", tr("Hot flow wall")},
|
|
|
|
{"name", tr("Hot flow wall")},
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type","LineEidt"},//壁面温度
|
|
|
|
{"type", "LineEidt"}, // 壁面温度
|
|
|
|
{"name",tr("Wall temperature")},
|
|
|
|
{"name", tr("Wall temperature")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_WallTemperature)},
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -504,20 +591,27 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::genWallIsothermalWallUIC
|
|
|
|
|
|
|
|
|
|
|
|
CUIConfig *CFDStructDataSolverBoundaryConditionManager::genWallHotFlowWallUIConfig()
|
|
|
|
CUIConfig *CFDStructDataSolverBoundaryConditionManager::genWallHotFlowWallUIConfig()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return new CUIConfig({{"type", "Widget"}}, {
|
|
|
|
return new CUIConfig({{"type", "Widget"}}, {
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 边界名称
|
|
|
|
{"type", "LineEdit"}, // 边界名称
|
|
|
|
{"name", tr("Boundary name")},
|
|
|
|
{"name", tr("Boundary name")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_BoundaryName)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 所属计算域
|
|
|
|
{"type", "LineEdit"}, // 所属计算域
|
|
|
|
{"name", tr("Belonging to the computing domain")},
|
|
|
|
{"name", tr("Belonging to the computing domain")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_ComputationalDomain)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 边界类型
|
|
|
|
{"type", "ComboBox"}, // 边界类型
|
|
|
|
{"name", tr("Boundary type")},
|
|
|
|
{"name", tr("Boundary type")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_STRING},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_BoundaryType)},
|
|
|
|
|
|
|
|
{"semaphore", (int)SolutionAnalysisModuleProperty::Boundary_Conditions},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -548,7 +642,10 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::genWallHotFlowWallUIConf
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "RadioComponent"}, // 壁面类型
|
|
|
|
{"type", "RadioComponent"}, // 壁面类型
|
|
|
|
{"name", tr("Wall type")},
|
|
|
|
{"name", tr("Wall type")},
|
|
|
|
{"widget","GroupBox"},
|
|
|
|
{"widget", "GroupBox"},
|
|
|
|
|
|
|
|
{"layout", "QHBoxLayout"},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_WallType)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -564,8 +661,10 @@ CUIConfig *CFDStructDataSolverBoundaryConditionManager::genWallHotFlowWallUIConf
|
|
|
|
{"name", tr("Hot flow wall")},
|
|
|
|
{"name", tr("Hot flow wall")},
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type","LineEidt"},//壁面热流
|
|
|
|
{"type", "LineEidt"}, // 壁面热流
|
|
|
|
{"name",tr("Wall heat flux")},
|
|
|
|
{"name", tr("Wall heat flux")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_WallHeatFlux)},
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
});
|
|
|
|
});
|
|
|
|