FORCES don't run!
Hi CFD online people! I have some problems with lib "forces" that it doesn't want start! Well, I'm using OpenFoam 1.73 and the last version 2.01 and I have to simulate a boat keel with simpleFoam solutor, using for both version motorbike's setup. I want to calculate forces on the keel patches, particolary viscous forces in the boundary layer; I DON'T WANT FORCECOEFFS!
OPENFOAM 1.73 Well, In the controlDict, at the page bottom, I add the following script: " forces { type forces; functionObjectLibs ("libforces.so"); //Lib to load outputControl timeStep; outputInterval 1; patches ("keel.*"); // change to your patch name rhoInf 1000; //Reference density for fluid nuInf 1e-6; //Reference kinetic viscosity for fluid CofR (0.191822 0 -0.418322); //Origin for moment calculations } forceCoeffs { type forceCoeffs; functionObjectLibs ("libforces.so"); outputControl timeStep; outputInterval 1; patches ("keel.*"); //change to your patch name rhoInf 1000; nuInf 1e-6; CofR (0.191822 0 -0.418322); // liftDir (0 0 1); dragDir (-1 0 0); pitchAxis (0 1 0); magUInf 2.37; //Edo:v_boat lRef 0.43; Aref 0.73; }" I have just tried this method in other working simulation, however this time, when I start simulation, It says: "--> FOAM Warning : From function void forces::read(const dictionary& dict) in file forces/forces.C at line 277 Could not find U, p or rho in database. De-activating forces. --> FOAM Warning : From function void forces::read(const dictionary& dict) in file forces/forces.C at line 277 Could not find U, p or rho in database. De-activating forces." Why? What are the problems? OPENFOAM 2.01 In this version I have created a file forces (containing the same script that I post at the top) in the system folder in place of forceCoeffs file (already existing in motorbike's tutorial) and I add at the bottom of contrlDict: " #include "readFields" #include "streamLines" #include "forces"" When the simulation starts in the terminal apper same errors with the OpenFoam 1.73's simulation! Anyone could help me please? Thank you for answer and attention Best regards |
All times are GMT -4. The time now is 07:36. |