CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

Inlet boundary condition

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 9, 2021, 08:56
Default Inlet boundary condition
  #1
New Member
 
Ali Hassan Khan
Join Date: Jan 2018
Location: Tallinn, Estonia
Posts: 2
Rep Power: 0
ali_hassan738 is on a distinguished road
Hello Foamers,
I have been trying to implement a velocity boundary condition in OpenFOAM v2012 following up the groovy boundary condition in swak4FOAM tutorial. As in v2012 there is #eval function instead of former #cal function to specify any function rather a value. I want to specify the inlet boundary condition of a parabola in a 2D pipe as

U = U_max (1 - (h/Total Height)^ 2)

vmax= 0.50
height = 0.40
inflow
{
type fixedValue;
value uniform #eval{
vector(($vmax * (1 - pow( pos().y/ $height ), 2) ,0 ,0))
};
}


The problem I am encountering is that the #eval function is prompting a syntax error as:

--> FOAM FATAL IO ERROR: (openfoam-2012)

Syntax error in expression at position:33
<<<<
vector((0.5000000 * (1 - pow(pos().y/ 0.4000000),2),0,0))
^^^^ near here

>>>>


From void Foam:arsing::genericRagelLemonDriver::reportFata l(const string&, size_t) const
in file primitives/strings/parsing/genericRagelLemonDriver.C at line 170.

FOAM exiting

whereas formerly this boundary condition works fine with the groovyBC. I am sure I am missing some information in the syntax.

Any help in this regard will be appreciated.
ali_hassan738 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cyclic boundary condition in foam-extend 4.0 rellumeister OpenFOAM Pre-Processing 2 March 3, 2020 09:03
Problem in setting Boundary Condition Madhatter92 CFX 12 January 12, 2016 05:39
Radiation interface hinca CFX 15 January 26, 2014 18:11
An error has occurred in cfx5solve: volo87 CFX 5 June 14, 2013 18:44
RPM in Wind Turbine Pankaj CFX 9 November 23, 2009 05:05


All times are GMT -4. The time now is 16:10.