bool LESModel::read() { //if (regIOobject::read()) // Bit of trickery : we are both IOdictionary ('RASProperties') and // an regIOobject from the turbulenceModel level. Problem is to distinguish // between the two - we only want to reread the IOdictionary. bool ok = IOdictionary::readData ( IOdictionary::readStream ( IOdictionary::type() ) ); IOdictionary::close(); if (ok) { if (const dictionary* dictPtr = subDictPtr(type() + "Coeffs")) { coeffDict_ <<= *dictPtr; } delta_().read(*this); kMin_.readIfPresent(*this); return true; } else { return false; } }
bool DMDModel<Type>::read() { if (const dictionary* dictPtr = subDictPtr(type() + "Coeffs")) { coeffDict_ <<= *dictPtr; return true; } else { return false; } }
bool LESModel::read() { if (regIOobject::read()) { if (const dictionary* dictPtr = subDictPtr(type() + "Coeffs")) { coeffDict_ <<= *dictPtr; } delta_().read(*this); readIfPresent("k0", k0_); return true; } else { return false; } }
bool Foam::regionModels::regionModel::read() { if (regIOobject::read()) { if (active_) { if (const dictionary* dictPtr = subDictPtr(modelName_ + "Coeffs")) { coeffs_ <<= *dictPtr; } infoOutput_.readIfPresent("infoOutput", *this); } return true; } else { return false; } }