51#include "primitiveFields.H"
52#include "FieldFields.H"
53#include "scalarMatrices.H"
54#include "SortableList.H"
55#include "volFieldsFwd.H"
57#include "forceCoeffs.H"
68int main(
int argc,
char *argv[])
71#include "setRootCase.H"
72#include "createTime.H"
73#include "createMesh.H"
75 Info << argv[0] << endl;
77 instantList Times = runTime.times();
79 runTime.setTime(Times[2], 2);
82 IOdictionary FORCESdict
94 IOdictionary transportProperties
98 "transportProperties",
106 word pName(FORCESdict.lookup(
"pName"));
107 word UName(FORCESdict.lookup(
"UName"));
109 dictionary forcesDict;
110 forcesDict.add(
"type", functionObjects::forces::typeName);
111 forcesDict.add(
"patches", FORCESdict.lookup(
"patches"));
112 forcesDict.add(
"origin", FORCESdict.lookup(
"pitchAxis"));
113 forcesDict.add(
"pitchAxis", FORCESdict.lookup(
"pitchAxis"));
114 forcesDict.add(
"CofR", FORCESdict.lookup(
"CofR"));
115 forcesDict.add(
"liftDir", FORCESdict.lookup(
"liftDir"));
116 forcesDict.add(
"dragDir", FORCESdict.lookup(
"dragDir"));
117 forcesDict.add(
"magUInf", FORCESdict.lookup(
"magUInf"));
118 forcesDict.add(
"lRef", FORCESdict.lookup(
"lRef"));
119 forcesDict.add(
"Aref", FORCESdict.lookup(
"Aref"));
120 forcesDict.add(
"rhoInf", FORCESdict.lookup(
"rhoInf"));
121 forcesDict.add(
"rho", FORCESdict.lookup(
"rho"));
123 functionObjects::forceCoeffs fc(
"FC", runTime, forcesDict);
124 functionObjects::forces f(
"Forces", mesh, forcesDict);
126 for (label i = 2; i < Times.size(); i++)
128 runTime.setTime(Times[i], i);
164 Info <<
"End\n" << endl;