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

Nonuniform boundary syntax

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

Reply
 
LinkBack Thread Tools Display Modes
Old   December 11, 2008, 12:51
Default Sorry for a stupid question, b
  #1
Member
 
Juho Peltola
Join Date: Mar 2009
Location: Finland
Posts: 80
Rep Power: 8
juho is on a distinguished road
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 is offline   Reply With Quote

Old   December 11, 2008, 17:13
Default Ahem... Sorry about that. I ju
  #2
Member
 
Juho Peltola
Join Date: Mar 2009
Location: Finland
Posts: 80
Rep Power: 8
juho is on a distinguished road
Ahem... Sorry about that. I just noticed there's a

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

on the top of the U-file.
juho 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
Specifying nonuniform boundary condition maka OpenFOAM Running, Solving & CFD 59 October 22, 2014 14:52
Set nonuniform boundary values nikwin OpenFOAM Running, Solving & CFD 1 November 30, 2008 08:12
Problem with nonuniform boundary conditions qtian OpenFOAM Pre-Processing 2 July 25, 2007 15:30
FixedValue nonuniform BC dmoroian OpenFOAM Running, Solving & CFD 1 November 3, 2006 05:26
Nonuniform gradient boundary condition ankgupta8um OpenFOAM Running, Solving & CFD 1 March 14, 2006 02:34


All times are GMT -4. The time now is 18:08.