From 443795960899261bda3dea3a80dcbf7f6a328c9d Mon Sep 17 00:00:00 2001 From: mzh Date: Thu, 7 Nov 2024 09:50:15 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E5=AE=8C=E6=88=90=E6=95=B0=E5=80=BC?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E7=9A=84=E6=95=B0=E6=8D=AE=E5=86=99=E5=85=A5?= =?UTF-8?q?json=E7=9A=84=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...StructDataSolverNumericalMethodManager.cpp | 38 ++++++++++++++++--- 1 file changed, 32 insertions(+), 6 deletions(-) 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()