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

Function read

src/functionObjects/forces/forceCoeffs/forceCoeffs.C:154–174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
153
154bool Foam::functionObjects::forceCoeffs::read(const dictionary& dict)
155{
156 forces::read(dict);
157
158 // Directions for lift and drag forces, and pitch moment
159 dict.lookup("liftDir") >> liftDir_;
160 dict.lookup("dragDir") >> dragDir_;
161 dict.lookup("pitchAxis") >> pitchAxis_;
162
163 // Free stream velocity magnitude
164 dict.lookup("magUInf") >> magUInf_;
165
166 // Reference (free stream) density
167 dict.lookup("rhoInf") >> rhoRef_;
168
169 // Reference length and area scales
170 dict.lookup("lRef") >> lRef_;
171 dict.lookup("Aref") >> Aref_;
172
173 return true;
174}
175
176
177bool Foam::functionObjects::forceCoeffs::execute()

Callers 1

forceCoeffs.CFile · 0.70

Calls 1

lookupMethod · 0.80

Tested by

no test coverage detected