|
[Sponsors] |
Force Coefficients fioe flow over cylinder in openfoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 2, 2018, 04:33 |
Force Coefficients fioe flow over cylinder in openfoam
|
#1 |
New Member
G R Prasad
Join Date: Aug 2018
Posts: 1
Rep Power: 0 |
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:perator>>(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. |
|
August 3, 2018, 11:31 |
|
#2 |
New Member
Join Date: May 2018
Posts: 14
Rep Power: 8 |
Its not "cylinder" but cylinder without the "
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
openfoam 2.2 force coefficients 0 | mihaipruna | OpenFOAM Running, Solving & CFD | 9 | February 19, 2017 09:32 |
SixDoFRigidBodyMotion under OF2.3 ( self oscillating cylinder) | Scabbard | OpenFOAM Running, Solving & CFD | 1 | July 22, 2014 05:50 |
benchmark: flow over a circular cylinder | goodegg | Main CFD Forum | 12 | January 22, 2013 12:47 |
New OpenFOAM Forum Structure | jola | OpenFOAM | 2 | October 19, 2011 07:55 |
flow around a cylinder | pXYZ | Main CFD Forum | 14 | July 25, 2011 11:05 |