mayank.dce2k7 |
September 8, 2013 15:02 |
and OF-2.2.1
Hi Foamers,
I recently switched from OF-2.1.1 to OF-2.2.1. I installed swak4Foam it compiled fine which was checked by re-running ./Allwmake command which returned the list of libraries. Now I ran a simple steady state simulation using swak Data entry and encountered errors which were not there in OF-2.1.1.
Below is 0/U file: where I implemented swakDataEntry.
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.1.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
{
INLET
{
type groovyBC;
variables "r2=(pow(pos().x,2)+pow(pos().y,2));R2=sum(area())/pi;para=-((R2-r2)/R2)*normal();";
valueExpression "2*0.0852*para"; //where 0.351 is the average velocity
value uniform (0 0 0);
}
PART_1
{
type fixedValue;
value uniform (0 0 0);
}
OUTLET1
{
type flowRateInletVelocity;
volumetricFlowRateExpression "0";
volumetricFlowRate swak {
variables "phi1{INLET}=-0.502*sum(area())*0.0852;";
expression "phi1"; // volume flow going out of domain from outlet 1 which 0.52 times that at inlet
valueType patch;
patchName OUTLET1;};
value uniform ( 0 0 0 );
}
OUTLET2
{
type zeroGradient;
}
}
Error message:
Create mesh for time = 0
Reading field p
Reading field U
--> FOAM FATAL IO ERROR:
keyword independentVariableName is undefined in dictionary ""
file: from line 47 to line 50.
From function dictionary::lookupEntry(const word&, bool, bool) const
in file db/dictionary/dictionary.C at line 402.
FOAM exiting
|