|
|
|
@ -38,17 +38,29 @@ 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();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|