CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Error running a flow past square cylinder (https://www.cfd-online.com/Forums/openfoam-solving/124962-error-running-flow-past-square-cylinder.html)

sam.ho October 16, 2013 07:37

Error running a flow past square cylinder
 
1 Attachment(s)
Hi :)
Please look at the snapshot attache with this past .
And guide me where i am doing mistake

sam.ho October 17, 2013 01:00

Error due to probe usage in controlDict
 
1 Attachment(s)
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 .


All times are GMT -4. The time now is 05:00.