View Issue Details

IDProjectCategoryView StatusLast Update
0000444OpenFOAMBugpublic2012-03-12 08:23
Reporterattesz86 Assigned Touser2 
PriorityhighSeverityminorReproducibilityhave not tried
Status resolvedResolutionno change required 
Platformx64OSUbuntuOS Version11.10
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.

Activities

user2

2012-03-02 12:39

  ~0001104

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?

attesz86

2012-03-02 13:50

reporter   ~0001105

Last edited: 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.

attesz86

2012-03-10 11:36

reporter   ~0001132

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;
}

user2

2012-03-12 08:23

  ~0001133

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 user2 Note Added: 0001104
2012-03-02 13:50 attesz86 Note Added: 0001105
2012-03-02 13:51 attesz86 Note Edited: 0001105
2012-03-02 13:51 attesz86 Note Edited: 0001105
2012-03-05 17:09 user2 Status new => resolved
2012-03-05 17:09 user2 Fixed in Version => 2.1.x
2012-03-05 17:09 user2 Resolution open => no change required
2012-03-05 17:09 user2 Assigned To => user2
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 user2 Note Added: 0001133
2012-03-12 08:23 user2 Status feedback => resolved
2012-03-12 08:23 user2 Resolution reopened => no change required