|
|
|
@ -1,27 +1,22 @@
|
|
|
|
|
#include "CFDStructDataSolverComputingControlManager.h"
|
|
|
|
|
#include "CFDStructDataSolverTimeModeManager.h"
|
|
|
|
|
#include "CUIProperty/CUIConfig.h"
|
|
|
|
|
#include "CFDStructMain/CFDStructDefine.h"
|
|
|
|
|
#include "CFDStructSigsCenter.h"
|
|
|
|
|
#include "CUIProperty/CUIConfig.h"
|
|
|
|
|
#include "CUIProperty/CUISigsCenter.h"
|
|
|
|
|
#include <QVariant>
|
|
|
|
|
#include "CFDStructDataSolverComputingControlManager.h"
|
|
|
|
|
|
|
|
|
|
CFDStructDataSolverComputingControlManager::CFDStructDataSolverComputingControlManager(QObject *parent) : CFDStructDataManagerBase(parent)
|
|
|
|
|
{
|
|
|
|
|
CFDStructDataSolverComputingControlManager::CFDStructDataSolverComputingControlManager(QObject *parent) : CFDStructDataManagerBase(parent) {
|
|
|
|
|
m_uiConfig = nullptr;
|
|
|
|
|
connect(m_cuiSigsCenter, &CUISigsCenter::sig_cuiPropertyChanged, this, [=](int semaphore)
|
|
|
|
|
{ emit CFDStructSigsCenter::getInstance() -> sig_solverTimeModeDataChanged(); });
|
|
|
|
|
connect(m_cuiSigsCenter, &CUISigsCenter::sig_cuiPropertyChanged, this, [=](int semaphore) { emit CFDStructSigsCenter::getInstance() -> sig_solverTimeModeDataChanged(); });
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CFDStructDataSolverComputingControlManager::~CFDStructDataSolverComputingControlManager()
|
|
|
|
|
{
|
|
|
|
|
CFDStructDataSolverComputingControlManager::~CFDStructDataSolverComputingControlManager() {
|
|
|
|
|
// CFDStructDataManagerBase::~CFDStructDataManagerBase();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CUIConfig *CFDStructDataSolverComputingControlManager::getParamUIConfig()
|
|
|
|
|
{
|
|
|
|
|
if (m_uiConfig != nullptr)
|
|
|
|
|
{
|
|
|
|
|
CUIConfig *CFDStructDataSolverComputingControlManager::getParamUIConfig() {
|
|
|
|
|
if (m_uiConfig != nullptr) {
|
|
|
|
|
delete m_uiConfig;
|
|
|
|
|
m_uiConfig = nullptr;
|
|
|
|
|
}
|
|
|
|
@ -30,13 +25,13 @@ CUIConfig *CFDStructDataSolverComputingControlManager::getParamUIConfig()
|
|
|
|
|
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(
|
|
|
|
|
{
|
|
|
|
|
{"type", "Widget"},
|
|
|
|
|