CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Error running a flow past square cylinder

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 16, 2013, 07:37
Post Error running a flow past square cylinder
  #1
Senior Member
 
Join Date: Sep 2013
Location: Bangalore India
Posts: 134
Rep Power: 12
sam.ho is on a distinguished road
Hi
Please look at the snapshot attache with this past .
And guide me where i am doing mistake
Attached Images
File Type: jpg Screenshot from 2013-10-16 17:04:48.jpg (70.0 KB, 15 views)
sam.ho is offline   Reply With Quote

Old   October 17, 2013, 01:00
Default Error due to probe usage in controlDict
  #2
Senior Member
 
Join Date: Sep 2013
Location: Bangalore India
Posts: 134
Rep Power: 12
sam.ho is on a distinguished road
I have run the case without forces and force co-efficients in controlDict. It worked all fine I modifies to get Cd and Cl as follows

/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object controlDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

application icoFoam;

startFrom startTime;

startTime 0;

stopAt endTime;

endTime 300;

deltaT 0.02;

writeControl timeStep;

writeInterval 50;

purgeWrite 0;

writeFormat ascii;

writePrecision 6;

writeCompression off;

timeFormat general;

timePrecision 6;

runTimeModifiable true;

functions
{
probes
{
// Where to load it from
functionObjectLibs ( "libsampling.so" );
type probes;
// Name of the directory for probe data
name probes;
// Write at same frequency as fields
outputControl timeStep;
outputInterval 1;
// Fields to be probed
fields
(
U
);
probeLocations
(
(10 0 0)
);
}

}

functions
{
forces
{
type forces;
functionObjectLibs ("libforces.so");
patches (cube);
pName p;
UName U;
rhoName rhoInf;
rhoInf 1.225; // Reference density, fluid
CofR (0 0 0); // Origin for moment calculations
}

probes
{
// Where to load it from
functionObjectLibs ( "libsampling.so" );
type probes;
// Name of the directory for probe data
name probes;
// Write at same frequency as fields
outputControl timeStep;
outputInterval 1;
// Fields to be probed
fields
(
U
);

probeLocations
(
(10 0 0 )
);

}

forceCoeffs1
{
type forceCoeffs;
functionObjectLibs ( "libforces.so" );
outputControl outputTime;
log yes;
patches (cube);
pName P;
UName U;
rhoName rohInf;
log true;
rhoInf 1.125;
liftDir (0 1 0);
dragDir (1 0 0);
CofR (0 0 0);
pitchAxis (0 1 0);
magUInf 1;
lRef 1;
Aref 1;

}

// ************************************************** *********************** //



Please look in to the error and please help me .
Attached Images
File Type: jpg Screenshot from 2013-10-16 17:04:48.jpg (70.0 KB, 6 views)
sam.ho 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
Flow past a cylinder, Reynolds No: 100, Tracking strouhal Number. Karan FLUENT 11 November 14, 2016 04:49
Flow past a cylinder. Help needed Lurapa Main CFD Forum 1 August 18, 2013 11:25
free surface flow past cylinder vineet FLUENT 1 February 21, 2011 23:11
Flow past 2 smooth circular cylinder slip FLUENT 0 July 8, 2010 18:45
incompressible free surface flow past cylinder vineet FLUENT 2 April 1, 2002 05:56


All times are GMT -4. The time now is 08:58.