CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (http://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   [Problem] paraFoam Throws volVectorField Error At t=0 for 0/U (http://www.cfd-online.com/Forums/openfoam-pre-processing/101943-problem-parafoam-throws-volvectorfield-error-t-0-0-u.html)

iamed18 May 17, 2012 15:08

[Problem] paraFoam Throws volVectorField Error At t=0 for 0/U
 
1 Attachment(s)
Hey Everyone,

I'm attempting a modification of the incompressible/icoFoam/cavity tutorial in which the "moving wall" still moves [at (10 0 0)], but it also has an inlet in the middle with value (0 -20 0). I've modified the mesh slightly as well, but that's not where my question lies.

After building my mesh and creating my 0/* files, I opened paraFoam just to see the grid and to assure myself that it looked correct. Upon clicking "Apply", paraFoam throws the following error (assume $THIRD_PARTY is where I've installed my ThirdParty-2.1.0 packages):

Code:

ERROR: In $THIRD_PARTY/ParaView-3.12.0/VTK/IO/vtkOpenFOAMReader.cxx, line 6637
vtkOpenFOAMReaderPrivate (0xfc193a0):
$CASE/0/U is not a valid volVectorField

Now icoFoam ran just fine and the simulation ended up working (more/less...that's a topic for a different post), but every time I open paraFoam to look at the results, it complains about U not being a valid volVectorField. So, I've got U on display here:

U:
Code:

internalField  uniform (0 0 0);

boundaryField
{
    movingWalls
    {
        type            fixedValue;
        value          uniform (10 0 0);
    }

    airBorders
    {
        type            pressureInletOutletVelocity;
        value          uniform (0 0 0);
    }

    theInlet
    {
        type            fixedValue;
        value          (0 -20 0);
    }
    frontAndBack
    {
        type            empty;
    }
}

Does anyone have any insight on this? My only idea is that paraFoam doesn't like the type pressureInletOutletVelocity, but beyond that I don't know. I've also attached my blockMeshDict because I'm not sure if the two aren't fully agreeing.

Thanks in advance for any kind of assistance!
~Ed

kmooney June 1, 2012 09:57

Quote:

Originally Posted by iamed18 (Post 361725)
Hey Everyone,

I'm attempting a modification of the incompressible/icoFoam/cavity tutorial in which the "moving wall" still moves [at (10 0 0)], but it also has an inlet in the middle with value (0 -20 0). I've modified the mesh slightly as well, but that's not where my question lies.

After building my mesh and creating my 0/* files, I opened paraFoam just to see the grid and to assure myself that it looked correct. Upon clicking "Apply", paraFoam throws the following error (assume $THIRD_PARTY is where I've installed my ThirdParty-2.1.0 packages):

Code:

ERROR: In $THIRD_PARTY/ParaView-3.12.0/VTK/IO/vtkOpenFOAMReader.cxx, line 6637
vtkOpenFOAMReaderPrivate (0xfc193a0):
$CASE/0/U is not a valid volVectorField

Now icoFoam ran just fine and the simulation ended up working (more/less...that's a topic for a different post), but every time I open paraFoam to look at the results, it complains about U not being a valid volVectorField. So, I've got U on display here:

U:
Code:

internalField  uniform (0 0 0);

boundaryField
{
    movingWalls
    {
        type            fixedValue;
        value          uniform (10 0 0);
    }

    airBorders
    {
        type            pressureInletOutletVelocity;
        value          uniform (0 0 0);
    }

    theInlet
    {
        type            fixedValue;
        value          (0 -20 0);
    }
    frontAndBack
    {
        type            empty;
    }
}

Does anyone have any insight on this? My only idea is that paraFoam doesn't like the type pressureInletOutletVelocity, but beyond that I don't know. I've also attached my blockMeshDict because I'm not sure if the two aren't fully agreeing.

Thanks in advance for any kind of assistance!
~Ed


It might be that the theInlet entry is missing a 'uniform'. Instead of this:

Code:

    theInlet    {        type            fixedValue;        value          (0 -20 0);    }
Try this:

Code:

    theInlet    {        type            fixedValue;        value    uniform      (0 -20 0);    }

iamed18 June 4, 2012 13:15

Alas, I had missed that! Thank you!

Shanmukhi April 11, 2016 10:03

Same problem
 
I had the same error when I am running in the paraview..

ERROR: In /home/openfoam/OpenFOAM/ParaView-4.4.0//VTK/IO/Geomtry /vtkOpenFOAMReader.cxx, line 6649 vtkOpenFOAMReaderPrivate (0xfc193a0):
$CASE/0/U is not a valid volVectorField

Can any1 help me out with this..

Here is the code I am attaching


FoamFile
{
version 2.0;
format ascii;
class volVectorField;
object U; // This is the fluid velocity at the various boundaries
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions [0 1 -1 0 0 0 0];

internalField uniform (0 0 0);

boundaryField
{
outlet1
{
type inletOutlet;
inletValue (0 0 0);
value (0 0 0);

}
outlet2
{
type inletOutlet;
inletValue (0 0 0);
value (0 0 0);
}
inlet
{
type fixedValue;
value uniform (0.719 0 0);
}
walls
{
type fixedValue;
value uniform (0 0 0);
}
topBottom
{
type fixedValue;
value uniform (0 0 0);
}

}

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


All times are GMT -4. The time now is 04:21.