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.
79 lines
2.5 KiB
C++
79 lines
2.5 KiB
C++
#include "CFDStructDataSolverTimeModeManager.h"
|
|
#include "CUIProperty/CUIConfig.h"
|
|
#include "CFDStructMain/CFDStructDefine.h"
|
|
#include "CFDStructSigsCenter.h"
|
|
#include "CUIProperty/CUISigsCenter.h"
|
|
#include <QVariant>
|
|
#include "CFDStructDataSolverInitializationManager.h"
|
|
|
|
CFDStructDataSolverInitializationManager::CFDStructDataSolverInitializationManager(QObject *parent) : CFDStructDataManagerBase(parent)
|
|
{
|
|
m_uiConfig = nullptr;
|
|
connect(m_cuiSigsCenter, &CUISigsCenter::sig_cuiPropertyChanged, this, [ = ](int semaphore) {
|
|
qDebug() << semaphore << " ========================";
|
|
emit CFDStructSigsCenter::getInstance()->sig_solverTimeModeDataChanged();
|
|
});
|
|
}
|
|
|
|
CFDStructDataSolverInitializationManager::~CFDStructDataSolverInitializationManager()
|
|
{
|
|
// CFDStructDataManagerBase::~CFDStructDataManagerBase();
|
|
}
|
|
|
|
CUIConfig *CFDStructDataSolverInitializationManager::getParamUIConfig()
|
|
{
|
|
if (m_uiConfig != nullptr) {
|
|
delete m_uiConfig;
|
|
m_uiConfig = nullptr;
|
|
}
|
|
// m_uiConfig->printConfig();
|
|
m_uiConfig = this->genUIConfig();
|
|
return m_uiConfig;
|
|
}
|
|
|
|
CUIConfig *CFDStructDataSolverInitializationManager::genUIConfig()
|
|
{
|
|
new CUIConfig({
|
|
{"type","Widget"},
|
|
},{
|
|
new CUIConfig({
|
|
{"type","ComboBox"},//参考值取自
|
|
{"name",tr("The reference value is taken from")},
|
|
},{}),
|
|
new CUIConfig({
|
|
{"type","GroupBox"},//初始值定义
|
|
{"name",tr("Initial value definition")},
|
|
},{
|
|
new CUIConfig({
|
|
{"type","LineEdit"},//密度
|
|
{"name",tr("density")},
|
|
}),
|
|
new CUIConfig({
|
|
{"type","LineEdit"},//μ速度
|
|
{"name",tr("μ speed")},
|
|
}),
|
|
new CUIConfig({
|
|
{"type","LineEdit"},//ν速度
|
|
{"name",tr("v Speed")},
|
|
}),
|
|
new CUIConfig({
|
|
{"type","LineEdit"},//ω速度
|
|
{"name",tr("ω velocity")},
|
|
}),
|
|
new CUIConfig({
|
|
{"type","LineEdit"},//压强
|
|
{"name",tr("pressure")},
|
|
}),
|
|
new CUIConfig({
|
|
{"type","LineEdit"},//湍流粘性比
|
|
{"name",tr("Turbulent viscosity ratio")},
|
|
}),
|
|
new CUIConfig({
|
|
{"type","LineEdit"},//湍流强度
|
|
{"name",tr("Turbulence intensity")},
|
|
}),
|
|
}),
|
|
});
|
|
return nullptr;
|
|
}
|