CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

[Problem] paraFoam Throws volVectorField Error At t=0 for 0/U

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By kmooney

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 17, 2012, 16:08
Question [Problem] paraFoam Throws volVectorField Error At t=0 for 0/U
  #1
Member
 
Edward Leonard
Join Date: May 2012
Location: Calumet, MI
Posts: 31
Rep Power: 14
iamed18 is on a distinguished road
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
Attached Files
File Type: txt blockMeshDict.txt (1.8 KB, 1 views)
iamed18 is offline   Reply With Quote

Old   June 1, 2012, 10:57
Default
  #2
Senior Member
 
kmooney's Avatar
 
Kyle Mooney
Join Date: Jul 2009
Location: San Francisco, CA USA
Posts: 323
Rep Power: 18
kmooney is on a distinguished road
Quote:
Originally Posted by iamed18 View Post
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 likes this.
kmooney is offline   Reply With Quote

Old   June 4, 2012, 14:15
Default
  #3
Member
 
Edward Leonard
Join Date: May 2012
Location: Calumet, MI
Posts: 31
Rep Power: 14
iamed18 is on a distinguished road
Alas, I had missed that! Thank you!
iamed18 is offline   Reply With Quote

Old   April 11, 2016, 11:03
Question Same problem
  #4
New Member
 
Shanmukhi
Join Date: Jul 2015
Posts: 2
Rep Power: 0
Shanmukhi is on a distinguished road
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);
}

}

// ************************************************** *********************** //
Shanmukhi 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



All times are GMT -4. The time now is 01:46.