Force Coefficients fioe flow over cylinder in openfoam
I am trying to solve the flow over cylinder using mhdFoam solver in openFoam. When i am including the force coefficient script in the controlDict file as follows:
functions { forceCoeffs { type forceCoeffs; functionObjectLibs ( "libforces.so" ); writeControl timeStep; writeInterval 100; patches ( "cylinder" ); pName p_rgh; UName U; rho rhoInf; log true; liftDir (0 1 0); dragDir (1 0 0); CofR (0 0 0); pitchAxis (0 0 1); magUInf 1; rhoInf 1; lRef 1.0; // Diameter of Cylinder. Aref 1; // Projected Area = Diameter * Length of Cylinder. // Note for 2D cylinder flow Length is size of mesh in Z-direction (usually taken as unity) } } when i am running, the following error is coming: --> FOAM FATAL IO ERROR: wrong token type - expected word, found on line 19 the punctuation token '[' file: /home/AMRITAVIDYA/p2tf17008/Desktop/mhdFlow/cylinder_mhdFoam/TRAIL/constant/transportProperties.nu at line 19. From function Foam::Istream& Foam::operator>>(Foam::Istream&, Foam::word&) in file primitives/strings/word/wordIO.C at line 74. FOAM exiting Can some one help me with is error??? Thanks in advance. |
Its not "cylinder" but cylinder without the "
|
All times are GMT -4. The time now is 09:18. |