|
|
@ -1,18 +1,27 @@
|
|
|
|
#include "CFDStructDataSolverNumericalMethodManager.h"
|
|
|
|
#include "CFDStructDataSolverNumericalMethodManager.h"
|
|
|
|
#include "CUIProperty/CUIConfig.h"
|
|
|
|
#include "CUIProperty/CUIConfig.h"
|
|
|
|
|
|
|
|
#include "CFDStructMain/CFDStructDefine.h"
|
|
|
|
|
|
|
|
#include "CFDStructSigsCenter.h"
|
|
|
|
|
|
|
|
|
|
|
|
CFDStructDataSolverNumericalMethodManager::CFDStructDataSolverNumericalMethodManager(QObject *parent):CFDStructDataManagerBase(parent)
|
|
|
|
CFDStructDataSolverNumericalMethodManager::CFDStructDataSolverNumericalMethodManager(QObject *parent) : CFDStructDataManagerBase(parent)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
m_uiConfig = nullptr;
|
|
|
|
m_uiConfig = nullptr;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
CFDStructDataSolverNumericalMethodManager::~CFDStructDataSolverNumericalMethodManager()
|
|
|
|
CFDStructDataSolverNumericalMethodManager::~CFDStructDataSolverNumericalMethodManager()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
CUIConfig *CFDStructDataSolverNumericalMethodManager::getParamUIConfig()
|
|
|
|
CUIConfig *CFDStructDataSolverNumericalMethodManager::getParamUIConfig()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if(m_fluxFormat == 0)
|
|
|
|
|
|
|
|
return this->genJamesonModeUIConfig();
|
|
|
|
|
|
|
|
if(m_fluxFormat == 1)
|
|
|
|
|
|
|
|
return this->genRoeModeUIConfig();
|
|
|
|
|
|
|
|
if(m_fluxFormat == 2)
|
|
|
|
|
|
|
|
return this->genAUSMDYModeUIConfig();
|
|
|
|
|
|
|
|
if(m_fluxFormat == 3)
|
|
|
|
|
|
|
|
return this->genAUSMPWPModeUIConfig();
|
|
|
|
return this->genRoeModeUIConfig();
|
|
|
|
return this->genRoeModeUIConfig();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -30,6 +39,12 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genJamesonModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 通量格式
|
|
|
|
{"type", "ComboBox"}, // 通量格式
|
|
|
|
{"name", tr("Flux format")},
|
|
|
|
{"name", tr("Flux format")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_fluxFormat)},
|
|
|
|
|
|
|
|
{"semaphore", (int)SolutionAnalysisModuleProperty::NUumerical_Methods},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_fluxFormat)},
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -53,14 +68,21 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genJamesonModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 二阶人工粘性
|
|
|
|
{"type", "LineEdit"}, // 二阶人工粘性
|
|
|
|
{"name", tr("Second-order artificial viscosity")},
|
|
|
|
{"name", tr("Second-order artificial viscosity")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_secondOrderArtificialViscosity)},
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 四阶人工粘性
|
|
|
|
{"type", "LineEdit"}, // 四阶人工粘性
|
|
|
|
{"name", tr("Fourth order artificial viscosity")},
|
|
|
|
{"name", tr("Fourth order artificial viscosity")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_fourthOrderArtificialViscosity)},
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 空间精度
|
|
|
|
{"type", "ComboBox"}, // 空间精度
|
|
|
|
{"name", tr("Spatial accuracy")},
|
|
|
|
{"name", tr("Spatial accuracy")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_spaceAccuracy)},
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -83,6 +105,9 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genJamesonModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 限制器
|
|
|
|
{"type", "ComboBox"}, // 限制器
|
|
|
|
{"name", tr("limiter")},
|
|
|
|
{"name", tr("limiter")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_limiter)},
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -107,6 +132,9 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genJamesonModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 时间格式
|
|
|
|
{"type", "ComboBox"}, // 时间格式
|
|
|
|
{"name", tr("Time format")},
|
|
|
|
{"name", tr("Time format")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_timeFormat)},
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -121,6 +149,9 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genJamesonModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 迭代方法
|
|
|
|
{"type", "ComboBox"}, // 迭代方法
|
|
|
|
{"name", tr("Iterative method")},
|
|
|
|
{"name", tr("Iterative method")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_iterationMethod)},
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -131,6 +162,8 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genJamesonModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 松弛因子
|
|
|
|
{"type", "LineEdit"}, // 松弛因子
|
|
|
|
{"name", tr("Relaxation factor")},
|
|
|
|
{"name", tr("Relaxation factor")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_relaxationFactor)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
}),
|
|
|
|
}),
|
|
|
@ -142,11 +175,15 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genJamesonModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 多重网格层数
|
|
|
|
{"type", "LineEdit"}, // 多重网格层数
|
|
|
|
{"name", tr("Multi grid layers")},
|
|
|
|
{"name", tr("Multi grid layers")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_multigridLevels)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 循环类型
|
|
|
|
{"type", "ComboBox"}, // 循环类型
|
|
|
|
{"name", tr("Loop type")},
|
|
|
|
{"name", tr("Loop type")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_multigridLevels)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -161,16 +198,22 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genJamesonModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 粗网格CFL数
|
|
|
|
{"type", "LineEdit"}, // 粗网格CFL数
|
|
|
|
{"name", tr("Rough grid CFL number")},
|
|
|
|
{"name", tr("Rough grid CFL number")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_coarseGridCFL)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 细网格CFL数
|
|
|
|
{"type", "LineEdit"}, // 细网格CFL数
|
|
|
|
{"name", tr("Fine grid CFL number")},
|
|
|
|
{"name", tr("Fine grid CFL number")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_fineGridCFL)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 湍流CFL数
|
|
|
|
{"type", "LineEdit"}, // 湍流CFL数
|
|
|
|
{"name", tr("Turbulent CFL number")},
|
|
|
|
{"name", tr("Turbulent CFL number")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_turbulentCFL)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
}),
|
|
|
|
}),
|
|
|
@ -194,6 +237,12 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genRoeModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 通量格式
|
|
|
|
{"type", "ComboBox"}, // 通量格式
|
|
|
|
{"name", tr("Flux format")},
|
|
|
|
{"name", tr("Flux format")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_fluxFormat)},
|
|
|
|
|
|
|
|
{"semaphore", (int)SolutionAnalysisModuleProperty::NUumerical_Methods},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_fluxFormat)},
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -217,6 +266,8 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genRoeModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 熵修正类型
|
|
|
|
{"type", "ComboBox"}, // 熵修正类型
|
|
|
|
{"name", tr("Entropy correction type")},
|
|
|
|
{"name", tr("Entropy correction type")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_EntropyCorrectionType)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -231,6 +282,9 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genRoeModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 空间精度
|
|
|
|
{"type", "ComboBox"}, // 空间精度
|
|
|
|
{"name", tr("Spatial accuracy")},
|
|
|
|
{"name", tr("Spatial accuracy")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_spaceAccuracy)},
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -253,6 +307,9 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genRoeModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 限制器
|
|
|
|
{"type", "ComboBox"}, // 限制器
|
|
|
|
{"name", tr("limiter")},
|
|
|
|
{"name", tr("limiter")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_limiter)},
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -277,6 +334,9 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genRoeModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 时间格式
|
|
|
|
{"type", "ComboBox"}, // 时间格式
|
|
|
|
{"name", tr("Time format")},
|
|
|
|
{"name", tr("Time format")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_timeFormat)},
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -291,6 +351,9 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genRoeModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 迭代方法
|
|
|
|
{"type", "ComboBox"}, // 迭代方法
|
|
|
|
{"name", tr("Iterative method")},
|
|
|
|
{"name", tr("Iterative method")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_iterationMethod)},
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -301,6 +364,8 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genRoeModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 松弛因子
|
|
|
|
{"type", "LineEdit"}, // 松弛因子
|
|
|
|
{"name", tr("Relaxation factor")},
|
|
|
|
{"name", tr("Relaxation factor")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_relaxationFactor)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
}),
|
|
|
|
}),
|
|
|
@ -312,11 +377,15 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genRoeModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 多重网格层数
|
|
|
|
{"type", "LineEdit"}, // 多重网格层数
|
|
|
|
{"name", tr("Multi grid layers")},
|
|
|
|
{"name", tr("Multi grid layers")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_multigridLevels)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 循环类型
|
|
|
|
{"type", "ComboBox"}, // 循环类型
|
|
|
|
{"name", tr("Loop type")},
|
|
|
|
{"name", tr("Loop type")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_multigridLevels)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -331,16 +400,22 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genRoeModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 粗网格CFL数
|
|
|
|
{"type", "LineEdit"}, // 粗网格CFL数
|
|
|
|
{"name", tr("Rough grid CFL number")},
|
|
|
|
{"name", tr("Rough grid CFL number")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_coarseGridCFL)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 细网格CFL数
|
|
|
|
{"type", "LineEdit"}, // 细网格CFL数
|
|
|
|
{"name", tr("Fine grid CFL number")},
|
|
|
|
{"name", tr("Fine grid CFL number")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_fineGridCFL)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 湍流CFL数
|
|
|
|
{"type", "LineEdit"}, // 湍流CFL数
|
|
|
|
{"name", tr("Turbulent CFL number")},
|
|
|
|
{"name", tr("Turbulent CFL number")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_turbulentCFL)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
}),
|
|
|
|
}),
|
|
|
@ -362,6 +437,10 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genAUSMDYModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 通量格式
|
|
|
|
{"type", "ComboBox"}, // 通量格式
|
|
|
|
{"name", tr("Flux format")},
|
|
|
|
{"name", tr("Flux format")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_fluxFormat)},
|
|
|
|
|
|
|
|
{"semaphore", (int)SolutionAnalysisModuleProperty::NUumerical_Methods},
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -385,6 +464,9 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genAUSMDYModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 空间精度
|
|
|
|
{"type", "ComboBox"}, // 空间精度
|
|
|
|
{"name", tr("Spatial accuracy")},
|
|
|
|
{"name", tr("Spatial accuracy")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_spaceAccuracy)},
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -407,6 +489,9 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genAUSMDYModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 限制器
|
|
|
|
{"type", "ComboBox"}, // 限制器
|
|
|
|
{"name", tr("limiter")},
|
|
|
|
{"name", tr("limiter")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_limiter)},
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -431,6 +516,9 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genAUSMDYModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 时间格式
|
|
|
|
{"type", "ComboBox"}, // 时间格式
|
|
|
|
{"name", tr("Time format")},
|
|
|
|
{"name", tr("Time format")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_timeFormat)},
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -445,6 +533,9 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genAUSMDYModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 迭代方法
|
|
|
|
{"type", "ComboBox"}, // 迭代方法
|
|
|
|
{"name", tr("Iterative method")},
|
|
|
|
{"name", tr("Iterative method")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_iterationMethod)},
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -455,6 +546,8 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genAUSMDYModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 松弛因子
|
|
|
|
{"type", "LineEdit"}, // 松弛因子
|
|
|
|
{"name", tr("Relaxation factor")},
|
|
|
|
{"name", tr("Relaxation factor")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_relaxationFactor)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
}),
|
|
|
|
}),
|
|
|
@ -466,11 +559,15 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genAUSMDYModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 多重网格层数
|
|
|
|
{"type", "LineEdit"}, // 多重网格层数
|
|
|
|
{"name", tr("Multi grid layers")},
|
|
|
|
{"name", tr("Multi grid layers")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_multigridLevels)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 循环类型
|
|
|
|
{"type", "ComboBox"}, // 循环类型
|
|
|
|
{"name", tr("Loop type")},
|
|
|
|
{"name", tr("Loop type")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_multigridLevels)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -485,16 +582,22 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genAUSMDYModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 粗网格CFL数
|
|
|
|
{"type", "LineEdit"}, // 粗网格CFL数
|
|
|
|
{"name", tr("Rough grid CFL number")},
|
|
|
|
{"name", tr("Rough grid CFL number")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_coarseGridCFL)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 细网格CFL数
|
|
|
|
{"type", "LineEdit"}, // 细网格CFL数
|
|
|
|
{"name", tr("Fine grid CFL number")},
|
|
|
|
{"name", tr("Fine grid CFL number")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_fineGridCFL)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 湍流CFL数
|
|
|
|
{"type", "LineEdit"}, // 湍流CFL数
|
|
|
|
{"name", tr("Turbulent CFL number")},
|
|
|
|
{"name", tr("Turbulent CFL number")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_turbulentCFL)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
}),
|
|
|
|
}),
|
|
|
@ -516,6 +619,12 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genAUSMPWPModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 通量格式
|
|
|
|
{"type", "ComboBox"}, // 通量格式
|
|
|
|
{"name", tr("Flux format")},
|
|
|
|
{"name", tr("Flux format")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_fluxFormat)},
|
|
|
|
|
|
|
|
{"semaphore", (int)SolutionAnalysisModuleProperty::NUumerical_Methods},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_fluxFormat)},
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -539,6 +648,9 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genAUSMPWPModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 空间精度
|
|
|
|
{"type", "ComboBox"}, // 空间精度
|
|
|
|
{"name", tr("Spatial accuracy")},
|
|
|
|
{"name", tr("Spatial accuracy")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_spaceAccuracy)},
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -561,6 +673,9 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genAUSMPWPModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 限制器
|
|
|
|
{"type", "ComboBox"}, // 限制器
|
|
|
|
{"name", tr("limiter")},
|
|
|
|
{"name", tr("limiter")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_limiter)},
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -585,6 +700,9 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genAUSMPWPModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 时间格式
|
|
|
|
{"type", "ComboBox"}, // 时间格式
|
|
|
|
{"name", tr("Time format")},
|
|
|
|
{"name", tr("Time format")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_timeFormat)},
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -599,6 +717,9 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genAUSMPWPModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 迭代方法
|
|
|
|
{"type", "ComboBox"}, // 迭代方法
|
|
|
|
{"name", tr("Iterative method")},
|
|
|
|
{"name", tr("Iterative method")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_iterationMethod)},
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -609,6 +730,8 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genAUSMPWPModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 松弛因子
|
|
|
|
{"type", "LineEdit"}, // 松弛因子
|
|
|
|
{"name", tr("Relaxation factor")},
|
|
|
|
{"name", tr("Relaxation factor")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_relaxationFactor)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
}),
|
|
|
|
}),
|
|
|
@ -620,11 +743,15 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genAUSMPWPModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 多重网格层数
|
|
|
|
{"type", "LineEdit"}, // 多重网格层数
|
|
|
|
{"name", tr("Multi grid layers")},
|
|
|
|
{"name", tr("Multi grid layers")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_multigridLevels)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "ComboBox"}, // 循环类型
|
|
|
|
{"type", "ComboBox"}, // 循环类型
|
|
|
|
{"name", tr("Loop type")},
|
|
|
|
{"name", tr("Loop type")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_INT},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_multigridLevels)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
@ -639,16 +766,22 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::genAUSMPWPModeUIConfig()
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 粗网格CFL数
|
|
|
|
{"type", "LineEdit"}, // 粗网格CFL数
|
|
|
|
{"name", tr("Rough grid CFL number")},
|
|
|
|
{"name", tr("Rough grid CFL number")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_coarseGridCFL)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 细网格CFL数
|
|
|
|
{"type", "LineEdit"}, // 细网格CFL数
|
|
|
|
{"name", tr("Fine grid CFL number")},
|
|
|
|
{"name", tr("Fine grid CFL number")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_fineGridCFL)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
new CUIConfig({
|
|
|
|
new CUIConfig({
|
|
|
|
{"type", "LineEdit"}, // 湍流CFL数
|
|
|
|
{"type", "LineEdit"}, // 湍流CFL数
|
|
|
|
{"name", tr("Turbulent CFL number")},
|
|
|
|
{"name", tr("Turbulent CFL number")},
|
|
|
|
|
|
|
|
{"value_type", CUI_DATA_TYPE::CUI_DATA_TYPE_DOUBLE},
|
|
|
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_turbulentCFL)},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{}),
|
|
|
|
{}),
|
|
|
|
}),
|
|
|
|
}),
|
|
|
|