|
[Sponsors] |
September 10, 2011, 07:34 |
FORCES don't run!
|
#1 |
New Member
Luca
Join Date: Apr 2011
Posts: 7
Rep Power: 15 |
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 |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Reading forces from previous time step within solver | SD@TUB | OpenFOAM Programming & Development | 5 | April 24, 2023 11:51 |
Error trying to run steady-state sonicFoam | dancfd | OpenFOAM Running, Solving & CFD | 2 | February 12, 2013 03:15 |
Forces calculation | fusij | OpenFOAM | 4 | October 29, 2010 11:38 |
problems with LES run | Tim | CFX | 1 | February 27, 2006 07:28 |
Valve Forces in CFdesign | Mike Clapp | Main CFD Forum | 3 | March 8, 2001 14:09 |