CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Nonuniform boundary syntax (https://www.cfd-online.com/Forums/openfoam-solving/58219-nonuniform-boundary-syntax.html)

juho December 11, 2008 11:51

Sorry for a stupid question, b
 
Sorry for a stupid question, but could someone point out whats wrong in my syntax when I try to set a nonuniform inlet velocity manually?

This is the boundary:

=====================
/0/U:
=====================

inlet
{
type fixedValue;
value nonuniform List<vector>
10
(
(0 0 0)
(0 0 0) // This is the line 41
(0 0 0)
(0 0 0)
(0 1 0)
(0 1 0)
(0 0 0)
(0 0 0)
(0 0 0)
(0 0 0)
)
;
}
===================

And this is the error message I get when I start a solver:

===================

Expected a ')' while reading binaryBlock, found on line 41 an error

file: /home/peltol20/OpenFOAM/peltol20-1.5/run/bed4/0/Ub at line 41.

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

==================

I've copied the syntax from boundaries written by OpenFOAM and looked at samples on the forum, but I can't see what could be wrong. I'm using the 1.5 version.

juho December 11, 2008 16:13

Ahem... Sorry about that. I ju
 
Ahem... Sorry about that. I just noticed there's a

FoamFile {
...
format binary;
...
}

on the top of the U-file.


All times are GMT -4. The time now is 19:34.