|
|
|
@ -38,18 +38,30 @@ void CFDStructDataSolverBasicModelManager::saveDataToDom(rapidjson::Document &do
|
|
|
|
|
void CFDStructDataSolverBasicModelManager::readDataFromDom(rapidjson::Document &dom) {
|
|
|
|
|
QVariant temp;
|
|
|
|
|
jsonRead(dom, temp, {"region", 0, "flowType"});
|
|
|
|
|
if (temp != QVariant()) {
|
|
|
|
|
m_FlowModel = temp.toInt();
|
|
|
|
|
}
|
|
|
|
|
jsonRead(dom, temp, {"region", 0, "chimeraMesh"});
|
|
|
|
|
if (temp != QVariant()) {
|
|
|
|
|
m_OverlayNetwork = temp.toInt();
|
|
|
|
|
}
|
|
|
|
|
jsonRead(dom, temp, {"region", 0, "refValue", "rgas_mean"});
|
|
|
|
|
if (temp != QVariant()) {
|
|
|
|
|
m_Rgasmean = temp.toDouble();
|
|
|
|
|
}
|
|
|
|
|
jsonRead(dom, temp, {"region", 0, "refValue", "gamma"});
|
|
|
|
|
if (temp != QVariant()) {
|
|
|
|
|
m_Gmean = temp.toDouble();
|
|
|
|
|
}
|
|
|
|
|
jsonRead(dom, temp, {"region", 0, "solver", "turbModel", "RANS", "params", "Prl"});
|
|
|
|
|
if (temp != QVariant()) {
|
|
|
|
|
m_Prlmean = temp.toDouble();
|
|
|
|
|
}
|
|
|
|
|
jsonRead(dom, temp, {"region", 0, "solver", "turbModel", "RANS", "params", "Prt"});
|
|
|
|
|
if (temp != QVariant()) {
|
|
|
|
|
m_Prtmean = temp.toDouble();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @param 求解器中,基本模型,流体属性关闭时的属性界面设置
|
|
|
|
|