You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
AppFlow/CFDStruct/CFDStructDataManager/CFDStructDataSolverKvislMan...

362 lines
18 KiB
C++

#include "CFDStructDataSolverKvislManager.h"
#include "CUIProperty/CUIConfig.h"
CFDStructDataSolverKvislManager::CFDStructDataSolverKvislManager(QObject *parent) : CFDStructDataManagerBase(parent)
{
m_uiConfig = nullptr;
}
CFDStructDataSolverKvislManager::~CFDStructDataSolverKvislManager()
{
}
CUIConfig *CFDStructDataSolverKvislManager::getParamUIConfig()
{
qDebug()<<"problem!!!";
return this->genInviscidUIConfig();
}
CUIConfig *CFDStructDataSolverKvislManager::genInviscidUIConfig()
{
return new CUIConfig(
{{"type", "Widget"}},
{new CUIConfig({{"type", "GroupBox"}, // 组:模型
{"name", tr("Model")}},
{new CUIConfig({{"type", "RadioButton"}, // 按钮:无粘
{"name", tr("Inviscid")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:层流
{"name", tr("Laminar")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:雷诺平均
{"name", tr("RANS")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:分离涡模拟
{"name", tr("DES")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:约束大涡模型
{"name", tr("CLES")}})})});
return nullptr;
}
CUIConfig *CFDStructDataSolverKvislManager::genLaminarUIConfig()
{
return new CUIConfig(
{{"type", "Widget"}},
{new CUIConfig({{"type", "GroupBox"}, // 组:模型
{"name", tr("Model")}},
{new CUIConfig({{"type", "RadioButton"}, // 按钮:无粘
{"name", tr("Inviscid")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:层流
{"name", tr("Laminar")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:雷诺平均
{"name", tr("RANS")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:分离涡模拟
{"name", tr("DES")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:约束大涡模型
{"name", tr("CLES")}})})});
return nullptr;
}
CUIConfig *CFDStructDataSolverKvislManager::genRANSSAUIConfig()
{
return new CUIConfig(
{{"type", "Widget"}},
{
new CUIConfig({{"type", "GroupBox"}, // 组:模型
{"name", tr("Model")}},
{new CUIConfig({{"type", "RadioButton"}, // 按钮:无粘
{"name", tr("Inviscid")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:层流
{"name", tr("Laminar")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:雷诺平均
{"name", tr("RANS")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:分离涡模拟
{"name", tr("DES")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:约束大涡模型
{"name", tr("CLES")}})}),
new CUIConfig({{"type", "GroupBox"}, // 组:RANS模型
{"name", tr("RANS Model")}},
{new CUIConfig({{"type", "RadioButton"}, // 按钮:S-A(一方程)
{"name", tr("S-A")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:Menters's κ-ω(两方程)
{"name", tr("Menters's κ-ω")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:κ-ε(两方程)
{"name", tr("κ-ε")}})}),
new CUIConfig({{"type", "GroupBox"}, // 组:S-A类型
{"name", tr("S-A Type")}},
{new CUIConfig({{"type", "RadioButton"}, // 按钮:standard
{"name", tr("standard")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:Edwards
{"name", tr("Edwards")}})}),
});
return nullptr;
}
CUIConfig *CFDStructDataSolverKvislManager::genRANSUIMentersConfig()
{
return new CUIConfig(
{{"type", "Widget"}},
{
new CUIConfig({{"type", "GroupBox"}, // 组:模型
{"name", tr("Model")}},
{new CUIConfig({{"type", "RadioButton"}, // 按钮:无粘
{"name", tr("Inviscid")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:层流
{"name", tr("Laminar")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:雷诺平均
{"name", tr("RANS")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:分离涡模拟
{"name", tr("DES")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:约束大涡模型
{"name", tr("CLES")}})}),
new CUIConfig({{"type", "GroupBox"}, // 组:RANS模型
{"name", tr("RANS Model")}},
{new CUIConfig({{"type", "RadioButton"}, // 按钮:S-A(一方程)
{"name", tr("S-A")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:Menters's κ-ω(两方程)
{"name", tr("Menters's κ-ω")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:κ-ε(两方程)
{"name", tr("κ-ε")}})}),
new CUIConfig({{"type", "GroupBox"}, // 组:κ-ω类型
{"name", tr("κ-ω Type")}},
{
new CUIConfig({{"type", "RadioButton"}, // 按钮:standard
{"name", tr("standard")}}),
}),
});
return nullptr;
}
CUIConfig *CFDStructDataSolverKvislManager::genRANSKEUIConfig()
{
return new CUIConfig(
{{"type", "Widget"}},
{
new CUIConfig({{"type", "GroupBox"}, // 组:模型
{"name", tr("Model")}},
{new CUIConfig({{"type", "RadioButton"}, // 按钮:无粘
{"name", tr("Inviscid")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:层流
{"name", tr("Laminar")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:雷诺平均
{"name", tr("RANS")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:分离涡模拟
{"name", tr("DES")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:约束大涡模型
{"name", tr("CLES")}})}),
new CUIConfig({{"type", "GroupBox"}, // 组:RANS模型
{"name", tr("RANS Model")}},
{new CUIConfig({{"type", "RadioButton"}, // 按钮:S-A(一方程)
{"name", tr("S-A")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:Menters's κ-ω(两方程)
{"name", tr("Menters's κ-ω")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:κ-ε(两方程)
{"name", tr("κ-ε")}})}),
new CUIConfig({{"type", "GroupBox"}, // 组:κ-ε类型
{"name", tr("κ-ε Type")}},
{
new CUIConfig({{"type", "RadioButton"}, // 按钮:standard
{"name", tr("standard")}}),
}),
});
return nullptr;
}
CUIConfig *CFDStructDataSolverKvislManager::genDESSAUIConfig()
{
return new CUIConfig(
{{"type", "Widget"}},
{
new CUIConfig({{"type", "GroupBox"}, // 组:模型
{"name", tr("Model")}},
{new CUIConfig({{"type", "RadioButton"}, // 按钮:无粘
{"name", tr("Inviscid")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:层流
{"name", tr("Laminar")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:雷诺平均
{"name", tr("RANS")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:分离涡模拟
{"name", tr("DES")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:约束大涡模型
{"name", tr("CLES")}})}),
new CUIConfig({{"type", "GroupBox"}, // 组:DES
{"name", tr("DES Model")}},
{
new CUIConfig({{"type", "RadioButton"}, // 按钮:DES
{"name", tr("DES")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:DDES两方程
{"name", tr("DDES")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:IDDES两方程
{"name", tr("IDDES")}}),
}),
new CUIConfig({{"type", "GroupBox"}, // 组:RANS模型
{"name", tr("RANS Model")}},
{
new CUIConfig({{"type", "RadioButton"}, // 按钮:S-A(一方程)
{"name", tr("S-A")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:Menters's κ-ω(两方程)
{"name", tr("Menters's κ-ω")}}),
}),
new CUIConfig({{"type", "GroupBox"}, // 组:S-A类型
{"name", tr("S-A Type")}},
{
new CUIConfig({{"type", "RadioButton"}, // 按钮:standard
{"name", tr("standard")}}),
}),
});
return nullptr;
}
CUIConfig *CFDStructDataSolverKvislManager::genDESMentersUIConfig()
{
return new CUIConfig(
{{"type", "Widget"}},
{
new CUIConfig({{"type", "GroupBox"}, // 组:模型
{"name", tr("Model")}},
{new CUIConfig({{"type", "RadioButton"}, // 按钮:无粘
{"name", tr("Inviscid")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:层流
{"name", tr("Laminar")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:雷诺平均
{"name", tr("RANS")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:分离涡模拟
{"name", tr("DES")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:约束大涡模型
{"name", tr("CLES")}})}),
new CUIConfig({{"type", "GroupBox"}, // 组:DES
{"name", tr("DES Model")}},
{
new CUIConfig({{"type", "RadioButton"}, // 按钮:DES
{"name", tr("DES")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:DDES两方程
{"name", tr("DDES")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:IDDES两方程
{"name", tr("IDDES")}}),
}),
new CUIConfig({{"type", "GroupBox"}, // 组:RANS模型
{"name", tr("RANS Model")}},
{
new CUIConfig({{"type", "RadioButton"}, // 按钮:S-A(一方程)
{"name", tr("S-A")}}),
new CUIConfig({{"type", "RadioButton"}, // 按钮:Menters's κ-ω(两方程)
{"name", tr("Menters's κ-ω")}}),
}),
new CUIConfig({{"type", "GroupBox"}, // 组:κ-ω类型
{"name", tr("κ-ω Type")}},
{
new CUIConfig({{"type", "RadioButton"}, // 按钮:SST
{"name", tr("SST")}}),
}),
});
return nullptr;
}
CUIConfig *CFDStructDataSolverKvislManager::genCLESUIConfig()
{
return new CUIConfig(
{{"type", "Widget"}},
{
new CUIConfig({
{"type", "GroupBox"}, // 组:模型
{"name", tr("Model")},
},
{new CUIConfig({
{"type", "RadioButton"}, // 按钮:无粘
{"name", tr("Inviscid")},
}),
new CUIConfig({
{"type", "RadioButton"}, // 按钮:层流
{"name", tr("Laminar")},
}),
new CUIConfig({
{"type", "RadioButton"}, // 按钮:雷诺平均
{"name", tr("RANS")},
}),
new CUIConfig({
{"type", "RadioButton"}, // 按钮:分离涡模拟
{"name", tr("DES")},
}),
new CUIConfig({
{"type", "RadioButton"}, // 按钮:约束大涡模型
{"name", tr("CLES")},
})}),
new CUIConfig({{"type", "GroupBox"}, // 组:RANS模型
{"name", tr("RANS Model")}},
{
new CUIConfig({
{"type", "RadioButton"}, // 按钮:S-A(一方程)
{"name", tr("S-A")},
}),
new CUIConfig({
{"type", "RadioButton"}, // 按钮:Menters's κ-ω(两方程)
{"name", tr("Menters's κ-ω")},
}),
}),
new CUIConfig({{"type", "GroupBox"}, // 组:S-A类型
{"name", tr("S-A Type")}},
{new CUIConfig({
{"type", "RadioButton"}, // 按钮:standard
{"name", tr("standard")},
}),
new CUIConfig({
{"type", "RadioButton"}, // 按钮:Edwards
{"name", tr("Edwards")},
})}),
});
return nullptr;
}
CUIConfig *CFDStructDataSolverKvislManager::genCLESMentersUIConfig()
{
return new CUIConfig(
{{"type", "Widget"}},
{
new CUIConfig({
{"type", "GroupBox"}, // 组:模型
{"name", tr("Model")},
},
{new CUIConfig({
{"type", "RadioButton"}, // 按钮:无粘
{"name", tr("Inviscid")},
}),
new CUIConfig({
{"type", "RadioButton"}, // 按钮:层流
{"name", tr("Laminar")},
}),
new CUIConfig({
{"type", "RadioButton"}, // 按钮:雷诺平均
{"name", tr("RANS")},
}),
new CUIConfig({
{"type", "RadioButton"}, // 按钮:分离涡模拟
{"name", tr("DES")},
}),
new CUIConfig({
{"type", "RadioButton"}, // 按钮:约束大涡模型
{"name", tr("CLES")},
})}),
new CUIConfig({{"type", "GroupBox"}, // 组:RANS模型
{"name", tr("RANS Model")}},
{
new CUIConfig({
{"type", "RadioButton"}, // 按钮:S-A(一方程)
{"name", tr("S-A")},
}),
new CUIConfig({
{"type", "RadioButton"}, // 按钮:Menters's κ-ω(两方程)
{"name", tr("Menters's κ-ω")},
}),
}),
new CUIConfig({{"type", "GroupBox"}, // 组:κ-ω类型
{"name", tr("κ-ω Type")}},
{
new CUIConfig({
{"type", "RadioButton"}, // 按钮:SST
{"name", tr("SST")},
}),
}),
});
return nullptr;
}