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

simpleFoam: problem with the U file

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 21, 2012, 12:41
Default simpleFoam: problem with the U file
  #1
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 455
Rep Power: 9
samiam1000 is on a distinguished road
Dear all,

I am trying to run simpleFoam, getting a very strange error. I am pretty sure that the same case worked until a couple of weeks ago.

Anyway, that's the error that I get:
Code:
lab@lab-laptop:~/Documenti/cases_OF/OF_case8_incomp_T_vol$ simpleFoam 
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.1.0                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.org                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : 2.1.0-0bc225064152
Exec   : simpleFoam
Date   : Mar 21 2012
Time   : 16:36:28
Host   : "lab-laptop"
PID    : 7436
Case   : /home/lab/Documenti/cases_OF/OF_case8_incomp_T_vol
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Reading field p

Reading field U



--> FOAM FATAL IO ERROR: 
wrong token type - expected word, found on line 50 the doubleScalar 0.0034803

file: /home/lab/Documenti/cases_OF/OF_case8_incomp_T_vol/0/U::boundaryField::bc_hc1_ext::flowRate at line 50.

    From function operator>>(Istream&, word&)
    in file primitives/strings/word/wordIO.C at line 74.

FOAM exiting
and this is my U file:
Code:
/*--------------------------------*- C++ -*----------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2.0.1                                 |
|   \\  /    A nd           | Web:      www.OpenFOAM.com                      |
|    \\/     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
{
    wall-air_external
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    wall-air_internal
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    bc_intake
    {
        type            zeroGradient;
    }
    bc_hc2_ext
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    bc_hc2_int
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    bc_hc1_ext
    {
        type            flowRateInletVelocity;
        flowRate        0.0034803; // It's an incompressible case, hence the flow has to be in [m^3/s] (+ inlet, - outlet)
        value           uniform (-0.8203572715 0 -0.0717719589);
    }
    bc_hc1_int
    {
        type            flowRateInletVelocity;
        flowRate        0.0034803; // It's an incompressible case, hence the flow has to be in [m^3/s] (+ inlet, - outlet)
        value           uniform (-0.8203572715 0 -0.0717719589);
    }
    bc_back_1
    {
        type            flowRateInletVelocity;
        flowRate        0.0016784;
        value           uniform (0 0 -0.097500752);
    }
    bc_back_2
    {
        type            flowRateInletVelocity;
        flowRate        0.0014643;
        value           uniform (0 0 -0.1386807915);
    }
    bc_back_3
    {
        type            flowRateInletVelocity;
        flowRate        0.0014643;
        value           uniform (0 0 -0.1386807915);
    }
    bc_back_4
    {
        type            flowRateInletVelocity;
        flowRate        0.0014643;
        value           uniform (0 0 -0.1386807915);
    }
    bc_back_5
    {
        type            flowRateInletVelocity;
        flowRate        0.0014643;
        value           uniform (0 0 -0.1386807915);
    }
    bc_back_6
    {
        type            flowRateInletVelocity;
        flowRate        0.0014643;
        value           uniform (0 0 -0.1386807915);
    }
    symmetry-air_infinite
    {
        type	symmetryPlane;
    }
    symmetry-air_internal
    {
        type	symmetryPlane;
    }
    symmetry-air_external
    {
        type	symmetryPlane;
    }
    packs_front_6
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    packs_front_4
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    packs_front_5
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    packs_front_3
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    packs_front_2
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    walls_air_infinite
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    walls_ceiling
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    walls_floor-air_infinite
    {
	type            fixedValue;
	value           uniform (0 0 0);
    }
    walls_floor-air_external
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    symmetry_2-air_infinite
    {
        type	symmetryPlane;
    }
    symmetry_2-air_internal
    {
        type	symmetryPlane;
    }
    symmetry_2-air_external
    {
        type	symmetryPlane;
    }
    bc_outlet_external
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    chamber_inlet
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
    chamber_outlet
    {
        type            fixedValue;
        value           uniform (0 0 0);
    }
}
// ************************************************************************* //
Could anyone help?

Thanks,

Samuele
samiam1000 is offline   Reply With Quote

Old   March 21, 2012, 16:07
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,433
Blog Entries: 33
Rep Power: 73
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Greetings Samuele,

Did the case work back then with OpenFOAM 2.0.1 or 2.1.0?
According to the output and file, it looks like a few weeks ago you were still using 2.0.1 and now are using 2.1.0.

The solution should be something like this on the line that gives the error:
Code:
flowRate                     uniform 0.0034803;
Here is a recent and similar reported issue: http://www.openfoam.org/mantisbt/view.php?id=471

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   March 22, 2012, 04:46
Default
  #3
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 455
Rep Power: 9
samiam1000 is on a distinguished road
Thanks for answering.

Got it!

Samuele
samiam1000 is offline   Reply With Quote

Old   December 17, 2012, 07:22
Default
  #4
Senior Member
 
Claus Meister
Join Date: Aug 2009
Location: Wiesbaden, Germany
Posts: 241
Rep Power: 8
idrama is on a distinguished road
Hallo,

instead of uniform write constant. It's better.

Cheers
idrama is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
swak4Foam-groovyBC build problem zxj160 OpenFOAM 18 July 30, 2013 14:14
error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Native Meshers: blockMesh 2 March 14, 2012 11:56
BlockMesh FOAM warning gaottino OpenFOAM Native Meshers: blockMesh 7 July 19, 2010 15:11
DxFoam reader update hjasak OpenFOAM Post-Processing 69 April 24, 2008 02:24
error while compiling the USER Sub routine CFD user CFX 3 November 25, 2002 16:16


All times are GMT -4. The time now is 23:31.