CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Force Coefficients fioe flow over cylinder in openfoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 2, 2018, 04:33
Post Force Coefficients fioe flow over cylinder in openfoam
  #1
New Member
 
G R Prasad
Join Date: Aug 2018
Posts: 1
Rep Power: 0
Ravi336 is on a distinguished road
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.
Ravi336 is offline   Reply With Quote

Old   August 3, 2018, 11:31
Default
  #2
New Member
 
Join Date: May 2018
Posts: 14
Rep Power: 8
Jeneas is on a distinguished road
Its not "cylinder" but cylinder without the "
Jeneas is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 07:39.