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

size (#1) is not equal to the given value of (#2)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 11, 2024, 20:35
Question size (#1) is not equal to the given value of (#2)
  #1
New Member
 
Kihyun
Join Date: Jun 2024
Location: Seoul
Posts: 2
Rep Power: 0
hiccup is on a distinguished road
Hi I am beginner of OpenFoam. And I am using OpenFoam2.3.1.
I'm trying to solve basic icoFoam Problem. BlockMEesh, surfaceFeatureExtract, snappyHexMesh, and icoFoam work very well. BUt error comes up when i try to see result on the praview. When i press apply and play button, this happens

Code:
FOAM FATAL IO ERROR: 
size 4000 is not equal to the given value of 59676

file: /home/openfoam/shared_folder/2shot/0.22/p from line 18 to line 4051.

    From function Field<Type>::Field(const word& keyword, const dictionary&, const label)
    in file /home/openfoam/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/Field.C at line 292.

FOAM exiting
These are my cods that i use

Code:
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            fixedValue;
        value           uniform (27.7 0 0);
    }
    outlet
    {
        type            zeroGradient;
    }
    back
    {
        type            slip;
    }
    sky
    {
	type	slip;
    }
    front
    {
        type            slip;
    }
	bottom
    {
        type             slip;
    }
	carGroup
    {
        type            fixedValue;
	value           uniform (0 0 0);
    }
}

Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       volScalarField;
    object      p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [0 2 -2 0 0 0 0];

internalField   uniform 0;

boundaryField
{
     inlet
    {
        type            zeroGradient;
    }
    outlet
    {
        type           fixedValue;
	value uniform 0;
    }
    back
    {
        type            zeroGradient;
    }
    sky
    {
	type	zeroGradient;
    }
    front
    {
        type            zeroGradient;
    }
	bottom
    {
        type           zeroGradient;
    }
	carGroup
    {
        type            zeroGradient;
    }
}
Code:
FoamFile
{
    version     2.0;
    format      ascii;
    class       dictionary;
    object      blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //


convertToMeters 1;

vertices        
(
    (0 0  0)
    (2 0  0)
    (2  0.7 0)
    (0  0.7 0)
    (0 0 0.3)
    (2 0  0.3)
    (2 0.7 0.3)
    (0 0.7 0.3)
);

blocks          
(
    hex (0 1 2 3 4 5 6 7) (40 10 10) simpleGrading (1 1 1)
);

edges           
(
);

boundary
(
    inlet
    {
        type patch;
        faces
        (
            (0 4 7 3)
        );
    }
    outlet
    {
        type patch;
        faces
        (
            (1 2 6 5)
        );
    }
    back
    {
        type wall;
        faces
        (
            (0 3 2 1)
        );
	}
	sky
	{
	type wall;
	faces
	(
	(3 7 6 2)
	);
	}
 
    front
    {
        type wall;
        faces
        (
            (4 5 6 7)
        );
    }
    bottom
    {
        type wall;
        faces
        (
            (0 1 5 4)
        );
    }
);

mergePatchPairs 
(
);
I can do nothing because of this problem. I deleted every block files or result files but it doesn't work.
hiccup is offline   Reply With Quote

Reply

Tags
blockmesh, snappyhexmesh


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[blockMesh] edges not aligned with or perpendicular to non-empty directions ynos OpenFOAM Meshing & Mesh Conversion 6 March 26, 2020 15:02
Number of cells in mesh:16000 does not equal size of cellLevel:24400 rupesh_w OpenFOAM Pre-Processing 1 February 15, 2016 11:00
Hydrocyclone simulation and catalogue size problem alexandre.david CFX 8 May 15, 2015 08:40
Phase locked average in run time panara OpenFOAM 2 February 20, 2008 14:37
OpenFOAM 13 AMD quadcore parallel results msrinath80 OpenFOAM Running, Solving & CFD 1 November 10, 2007 23:23


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