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

OpenFOAM - Multiple inlets / outlets

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 26, 2018, 18:51
Default OpenFOAM - Multiple inlets / outlets
  #1
New Member
 
Join Date: Jan 2017
Posts: 22
Rep Power: 9
C. Okubo is on a distinguished road
Hi!

I need to group different inlets and outlets (suppose inlet_1, inlet_2,...). I was trying to use regular expression as the statement below, but it is not working, OF searches for a patch with exactly the name "inlet_.*".

const labelList& inletCells = mesh.boundary()["inlet_.*"].faceCells();

Not sure if the implementation is correct and if regular expressions works inside .C and .H files.

Can anybody give some help or other ideas?

Thanks!

Okubo
C. Okubo 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
OpenFOAM v3.0+ ?? SBusch OpenFOAM 22 December 26, 2016 15:24
OpenFOAM Training: Programming CFD Course 12-13 and 19-20 April 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 14, 2016 11:19
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 5, 2016 04:18
Multiple inlets problem Jeff Main CFD Forum 2 August 17, 2005 11:48
multiple inlets Bob Haase Main CFD Forum 1 January 19, 2001 21:57


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