MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / execute

Function execute

src/functionObjects/field/yPlus/yPlus.C:169–191  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167
168
169bool Foam::functionObjects::yPlus::execute()
170{
171 volScalarField& yPlus =
172 mesh_.lookupObjectRef<volScalarField>(type());
173
174 if (mesh_.foundObject<turbulenceModel>(turbulenceModel::propertiesName))
175 {
176 const turbulenceModel& model = mesh_.lookupObject<turbulenceModel>
177 (
178 turbulenceModel::propertiesName
179 );
180
181 calcYPlus(model, yPlus);
182 }
183 else
184 {
185 FatalErrorInFunction
186 << "Unable to find turbulence model in the "
187 << "database" << exit(FatalError);
188 }
189
190 return true;
191}
192
193
194bool Foam::functionObjects::yPlus::write()

Callers

nothing calls this directly

Calls 3

calcYPlusFunction · 0.85
typeEnum · 0.50
exitFunction · 0.50

Tested by

no test coverage detected