|
|
@ -1,27 +1,22 @@
|
|
|
|
|
|
|
|
#include "CFDStructDataSolverComputingControlManager.h"
|
|
|
|
#include "CFDStructDataSolverTimeModeManager.h"
|
|
|
|
#include "CFDStructDataSolverTimeModeManager.h"
|
|
|
|
#include "CUIProperty/CUIConfig.h"
|
|
|
|
|
|
|
|
#include "CFDStructMain/CFDStructDefine.h"
|
|
|
|
#include "CFDStructMain/CFDStructDefine.h"
|
|
|
|
#include "CFDStructSigsCenter.h"
|
|
|
|
#include "CFDStructSigsCenter.h"
|
|
|
|
|
|
|
|
#include "CUIProperty/CUIConfig.h"
|
|
|
|
#include "CUIProperty/CUISigsCenter.h"
|
|
|
|
#include "CUIProperty/CUISigsCenter.h"
|
|
|
|
#include <QVariant>
|
|
|
|
#include <QVariant>
|
|
|
|
#include "CFDStructDataSolverComputingControlManager.h"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CFDStructDataSolverComputingControlManager::CFDStructDataSolverComputingControlManager(QObject *parent) : CFDStructDataManagerBase(parent)
|
|
|
|
CFDStructDataSolverComputingControlManager::CFDStructDataSolverComputingControlManager(QObject *parent) : CFDStructDataManagerBase(parent) {
|
|
|
|
{
|
|
|
|
|
|
|
|
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(); });
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
CFDStructDataSolverComputingControlManager::~CFDStructDataSolverComputingControlManager()
|
|
|
|
CFDStructDataSolverComputingControlManager::~CFDStructDataSolverComputingControlManager() {
|
|
|
|
{
|
|
|
|
|
|
|
|
// CFDStructDataManagerBase::~CFDStructDataManagerBase();
|
|
|
|
// CFDStructDataManagerBase::~CFDStructDataManagerBase();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
CUIConfig *CFDStructDataSolverComputingControlManager::getParamUIConfig()
|
|
|
|
CUIConfig *CFDStructDataSolverComputingControlManager::getParamUIConfig() {
|
|
|
|
{
|
|
|
|
if (m_uiConfig != nullptr) {
|
|
|
|
if (m_uiConfig != nullptr)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
delete m_uiConfig;
|
|
|
|
delete m_uiConfig;
|
|
|
|
m_uiConfig = nullptr;
|
|
|
|
m_uiConfig = nullptr;
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -30,13 +25,13 @@ CUIConfig *CFDStructDataSolverComputingControlManager::getParamUIConfig()
|
|
|
|
return m_uiConfig;
|
|
|
|
return m_uiConfig;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void CFDStructDataSolverComputingControlManager::saveDataToDom(rapidjson::Document &dom)
|
|
|
|
void CFDStructDataSolverComputingControlManager::saveDataToDom(rapidjson::Document &dom) {
|
|
|
|
{
|
|
|
|
jsonAdd(dom, m_DataSaveFrequency, {couplingSolver unSteady savedSteps});
|
|
|
|
|
|
|
|
jsonAdd(dom, m_DataSaveFrequency, {couplingSolver steady savedIters});
|
|
|
|
|
|
|
|
jsonAdd(dom, m_NumericalComputationCores, {couplingSolver mpi core});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
CUIConfig *CFDStructDataSolverComputingControlManager::genUIConfig()
|
|
|
|
CUIConfig *CFDStructDataSolverComputingControlManager::genUIConfig() {
|
|
|
|
{
|
|
|
|
|
|
|
|
return new CUIConfig(
|
|
|
|
return new CUIConfig(
|
|
|
|
{
|
|
|
|
{
|
|
|
|
{"type", "Widget"},
|
|
|
|
{"type", "Widget"},
|
|
|
|