|
|
|
@ -4,10 +4,11 @@
|
|
|
|
|
#include "CFDStructSigsCenter.h"
|
|
|
|
|
#include "CUIProperty/CUISigsCenter.h"
|
|
|
|
|
#include <QVariant>
|
|
|
|
|
#include "CFDStructDataManagerBase.h"
|
|
|
|
|
|
|
|
|
|
//#include <rapidjson/document.h>
|
|
|
|
|
//#include <rapidjson/writer.h>
|
|
|
|
|
//#include <rapidjson/stringbuffer.h>
|
|
|
|
|
#include <rapidjson/document.h>
|
|
|
|
|
#include <rapidjson/writer.h>
|
|
|
|
|
#include <rapidjson/stringbuffer.h>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
CFDStructDataSolverTimeModeManager::CFDStructDataSolverTimeModeManager(QObject *parent) : CFDStructDataManagerBase(parent)
|
|
|
|
@ -46,7 +47,13 @@ CUIConfig *CFDStructDataSolverTimeModeManager::getParamUIConfig()
|
|
|
|
|
|
|
|
|
|
void CFDStructDataSolverTimeModeManager::saveDataToDom(rapidjson::Document &dom)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
jsonAdd(dom,m_runtype,{"region",0,"solver","time"});
|
|
|
|
|
jsonAdd(dom,m_innerIters,{"couplingSolver", "unSteady", "innerIters",});
|
|
|
|
|
jsonAdd(dom,m_iters,{"couplingSolver", "steady", "iters",});
|
|
|
|
|
jsonAdd(dom,m_alf0,{"couplingSolver", "unSteady", "stepType",});
|
|
|
|
|
jsonAdd(dom,m_realdt,{"couplingSolver", "unSteady", "timeStep",});
|
|
|
|
|
jsonAdd(dom,m_nstep,{"couplingSolver", "unSteady", "timeStepsNumber",});
|
|
|
|
|
jsonAdd(dom,m_timeaverage,{"couplingSolver", "unSteady", "Timeverage",});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
CUIConfig *CFDStructDataSolverTimeModeManager::genSteadyModeUIConfig()
|
|
|
|
@ -73,7 +80,7 @@ CUIConfig *CFDStructDataSolverTimeModeManager::genSteadyModeUIConfig()
|
|
|
|
|
{"type", "LineEdit"},
|
|
|
|
|
{"name", "iteration count"},
|
|
|
|
|
{"value_type", CUI_DATA_TYPE_INT},
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_mcyc)},
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_iters)},
|
|
|
|
|
})
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
@ -120,7 +127,7 @@ CUIConfig *CFDStructDataSolverTimeModeManager::genUnsteadyModeUIConfig()
|
|
|
|
|
{"type", "LineEdit"},
|
|
|
|
|
{"name", "mcyc"},
|
|
|
|
|
{"value_type", CUI_DATA_TYPE_INT},
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_mcyc)},
|
|
|
|
|
{"value_origin", QVA_GLOBAL(&m_iters)},
|
|
|
|
|
}),
|
|
|
|
|
new CUIConfig({
|
|
|
|
|
{"type", "CheckBox"},
|
|
|
|
|