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

Use of regular expressions for patch names in boundary conditions

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

Reply
 
LinkBack Thread Tools Display Modes
Old   February 10, 2010, 03:53
Default Use of regular expressions for patch names in boundary conditions
  #1
Member
 
Terry Barnaby
Join Date: Mar 2009
Location: Beam Ltd, UK
Posts: 44
Rep Power: 8
terrybarnaby is on a distinguished road
Hi,

I would like to use regular expressions to define the boundary conditions on a set of patches. Does anyone know if this possible in OpenFOAM 1.6 ?

I have tried:

boundaryField
{
car_.*
{
type zeroGradient;
}
}

But this does not work.
terrybarnaby is offline   Reply With Quote

Old   February 10, 2010, 11:40
Default
  #2
Member
 
Terry Barnaby
Join Date: Mar 2009
Location: Beam Ltd, UK
Posts: 44
Rep Power: 8
terrybarnaby is on a distinguished road
Ah I have just found out how.
You need double quotes as:

boundaryField
{
"car_.*"
{
type zeroGradient;
}
}

Cheers

Terry
terrybarnaby 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
inlet velocity boundary condition murali CFX 5 August 3, 2012 08:56
Impinging Jet Boundary Conditions Anindya Main CFD Forum 24 January 11, 2012 14:40
Problems with boundary conditions for a lowRekOmegaSST turbulence model cfdmarkus OpenFOAM Running, Solving & CFD 16 November 14, 2011 05:44
Concentric tube heat exchanger (Air-Water) Young CFX 5 October 6, 2008 23:17
Pressure boundary conditions Lionel S. Main CFD Forum 1 August 24, 2007 18:03


All times are GMT -4. The time now is 13:14.