diff --git a/CFDStruct/CFDStructDataManager/CFDStructDataSolverNumericalMethodManager.cpp b/CFDStruct/CFDStructDataManager/CFDStructDataSolverNumericalMethodManager.cpp index 8369dd6..2dde82b 100644 --- a/CFDStruct/CFDStructDataManager/CFDStructDataSolverNumericalMethodManager.cpp +++ b/CFDStruct/CFDStructDataManager/CFDStructDataSolverNumericalMethodManager.cpp @@ -27,12 +27,38 @@ CUIConfig *CFDStructDataSolverNumericalMethodManager::getParamUIConfig() void CFDStructDataSolverNumericalMethodManager::saveDataToDom(rapidjson::Document &dom) { -// jsonAdd(dom,m_fluxFormat) -// jsonAdd(dom,m_secondOrderArtificialViscosity,{region[0] numericMethod numMethodParm twojamson}); - - //TODO 时间格式,会随定常和非定常变化 - //TODO 迭代方法,会随定常和非定常变化 - //TODO 熵修正类型,未确定 + jsonAdd(dom, m_fluxFormat, + {"region", 0, "numericMethod", "numMethodParm", "generalFmt"}); + jsonAdd(dom, m_secondOrderArtificialViscosity, + {"region", 0, "numericMethod", "numMethodParm", "twojamson"}); + jsonAdd(dom, m_fourthOrderArtificialViscosity, + {"region", 0, "numericMethod", "numMethodParm", "fourjamson"}); + jsonAdd(dom, m_spaceAccuracy, + {"region", 0, "numericMethod", "numMethodParm", "accuracy"}); + jsonAdd(dom, m_limiter, + {"region", 0, "numericMethod", "numMethodParm", "limiter"}); + jsonAdd(dom, m_timeFormat, + {"region", 0, "numericMethod", "numMethodParm", "timeType"}); + jsonAdd(dom, m_iterationMethod, + {"region", 0, "numericMethod", "numMethodParm", "iterType"}); + jsonAdd(dom, m_relaxationFactor, + {"region", 0, "numericMethod", "numMethodParm", "lussor"}); + jsonAdd(dom, m_multigridLevels, + {"region", 0, "numericMethod", "numMethodParm", "gridLevelNum"}); + jsonAdd(dom, m_cycleType, + {"region", 0, "numericMethod", "numMethodParm", "cycleType"}); + jsonAdd(dom, m_coarseGridCFL, + {"region", 0, "numericMethod", "numMethodParm", "coarseGridNum"}); + jsonAdd(dom, m_fineGridCFL, + {"region", 0, "numericMethod", "numMethodParm", "fineGridNum"}); + jsonAdd(dom, m_turbulentCFL, + {"region", 0, "numericMethod", "numMethodParm", "cfl"}); + jsonAdd(dom, m_EntropyCorrectionType, + {"region", 0, "numericMethod", "numMethodParm", "EntropyFixVal"}); + + // TODO 时间格式,会随定常和非定常变化 + // TODO 迭代方法,会随定常和非定常变化 + // TODO 熵修正类型,未确定 } CUIConfig *CFDStructDataSolverNumericalMethodManager::genJamesonModeUIConfig()