View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0000444OpenFOAM[All Projects] Bugpublic2012-03-02 12:282012-03-12 08:23
Reporterattesz86 
Assigned Toandy 
PriorityhighSeverityminorReproducibilityhave not tried
StatusresolvedResolutionno change required 
Platformx64OSUbuntuOS Version11.10
Product Version2.1.x 
Target VersionFixed in Version2.1.x 
Summary0000444: rotatingWallVelocity gives error
DescriptionThe rotatingWallVelocity boundary condition gives the following error:

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

file: /nobackup/rm/felfoldi/OFsimulation/0/U::boundaryField::rotwall.*::omega at line 60.

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

FOAM exiting
Steps To Reproduce"rotwall.*"
    {
    type rotatingWallVelocity;
    origin (0 0 0);
        axis (0 1 0);
        omega 230.3834;
    }

I'm also using:

"rotwall.*"
    {
    type rotatingWallVelocity;
    origin origin [0 1 0 0 0 0 0] (0 0 0);
        axis axis [0 0 0 0 0 0 0] (0 1 0);
        omega omega [0 0 -1 0 0 0 0] 230.3834;
    }

But in the latter case, i'm getting another error:


--> FOAM FATAL IO ERROR:
Expected a '(' while reading VectorSpace<Form, Cmpt, nCmpt>, found on line 58 the word 'origin'

file: /nobackup/rm/felfoldi/OFsimulation/0/U::boundaryField::rotwall.*::origin at line 58.

    From function Istream::readBegin(const char*)
    in file db/IOstreams/IOstreams/Istream.C at line 94.

FOAM exiting
Additional InformationMy case is an AMI simulation, with rotating walls.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
(0001104)
andy (manager)
2012-03-02 12:39

The former syntax is correct:

"rotwall.*"
{
    type rotatingWallVelocity;
    origin (0 0 0);
    axis (0 1 0);
    omega 230.3834;
}

Are you using a recent build of 2.1.x?
(0001105)
attesz86 (reporter)
2012-03-02 13:50
edited on: 2012-03-02 13:51

No, I'm not. I checked the feature on a simplified case using the most recent build, and it works, so maybe this is the problem. I'll compile the code on our cluster and give you a feedback about my 20M cell case, if you are interested. Thank you.

(0001132)
attesz86 (reporter)
2012-03-10 11:36

The final solution is to add a "constant" keyword before the value:

"rotwall.*"
{
    type rotatingWallVelocity;
    origin (0 0 0);
    axis (0 1 0);
    omega constant 230.3834;
}
(0001133)
andy (manager)
2012-03-12 08:23

Thanks for the update

For info, in the current 2.1.x line the 'constant' entry can be omitted - these entries will fall back to the constant form for backwards compatibility

- Issue History
Date Modified Username Field Change
2012-03-02 12:28 attesz86 New Issue
2012-03-02 12:39 andy Note Added: 0001104
2012-03-02 13:50 attesz86 Note Added: 0001105
2012-03-02 13:51 attesz86 Note Edited: 0001105 View Revisions
2012-03-02 13:51 attesz86 Note Edited: 0001105 View Revisions
2012-03-05 17:09 andy Status new => resolved
2012-03-05 17:09 andy Fixed in Version => 2.1.x
2012-03-05 17:09 andy Resolution open => no change required
2012-03-05 17:09 andy Assigned To => andy
2012-03-10 11:36 attesz86 Note Added: 0001132
2012-03-10 11:36 attesz86 Status resolved => feedback
2012-03-10 11:36 attesz86 Resolution no change required => reopened
2012-03-12 08:23 andy Note Added: 0001133
2012-03-12 08:23 andy Status feedback => resolved
2012-03-12 08:23 andy Resolution reopened => no change required