I had to add the word uniform myself to make it work in line 32 I added "// I added Uniform here!!!!! [Mina]" to find it easily
Code: Select all
/*--------------------------------*- C++ -*----------------------------------*\
| |
| Generated by the CfdOF workbench for FreeCAD |
| https://gitlab.com/opensimproject/CfdOF |
| |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0.0 0.0 0.0);
boundaryField
{
inlet
{
// Fix all three components of velocity on inflow and only the normal component on outflow,
// in order to be well-posed if there are some faces on the patch which are actually outflows.
type fixedNormalInletOutletVelocity;
fixTangentialInflow yes;
normalVelocity
{
type fixedValue;
value uniform ( 0.0 0.4255 0.0 );
}
value uniform ( 0.0 0.4255 0.0 );
}
open
{
type inletOutlet;
inletValue uniform (0 0 0); // I added Uniform here!!!!! [Mina]
//TODO: We need to write an out-flowing value here so that adjustPhi can have an adjustable flux to work
//TODO: with at iteration 1
value $internalField;
}
open001
{
type pressureInletOutletVelocity;
value $internalField;
}
defaultFaces
{
type slip;
value $internalField;
}
}