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

Use of regular expressions for patch names in boundary conditions

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By terrybarnaby
  • 1 Post By terrybarnaby

Reply
 
LinkBack Thread Tools Search this Thread 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: 17
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.
sourav90 likes this.
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: 17
terrybarnaby is on a distinguished road
Ah I have just found out how.
You need double quotes as:

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

Cheers

Terry
sourav90 likes this.
terrybarnaby 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
Impinging Jet Boundary Conditions Anindya Main CFD Forum 25 February 27, 2016 13:58
inlet velocity boundary condition murali CFX 5 August 3, 2012 09:56
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 7, 2008 00:17
Pressure boundary conditions Lionel S. Main CFD Forum 1 August 24, 2007 19:03


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