| 152 | // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // |
| 153 | |
| 154 | bool 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 | |
| 177 | bool Foam::functionObjects::forceCoeffs::execute() |