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

Nonuniform boundary syntax

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By juho

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 11, 2008, 11:51
Default Sorry for a stupid question, b
  #1
Member
 
Juho Peltola
Join Date: Mar 2009
Location: Finland
Posts: 89
Rep Power: 17
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, 16:13
Default Ahem... Sorry about that. I ju
  #2
Member
 
Juho Peltola
Join Date: Mar 2009
Location: Finland
Posts: 89
Rep Power: 17
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.
abtinansari likes this.
juho is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with nonuniform boundary conditions qtian OpenFOAM Pre-Processing 4 January 12, 2018 15:03
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 07:12
FixedValue nonuniform BC dmoroian OpenFOAM Running, Solving & CFD 1 November 3, 2006 04:26
Nonuniform gradient boundary condition ankgupta8um OpenFOAM Running, Solving & CFD 1 March 14, 2006 01:34


All times are GMT -4. The time now is 00:35.