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

boundary name matching syntax, "*."

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

Like Tree1Likes
  • 1 Post By Yann

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 20, 2025, 08:46
Default boundary name matching syntax, ".*" - dot asterisk
  #1
New Member
 
Tim
Join Date: Jun 2018
Posts: 16
Rep Power: 9
tbraun84 is on a distinguished road
I haven't been able to find in the documentation a description of how matching multiple boundaries based on a pattern works, though I found out what works by examples and experimentation.

In the tutorials there are numerous examples of field files that have syntax like
Code:
"wall.*"
{
     zeroGradient;
     otherKey     otherValue;
}
I've found that a pattern like "wall*" does not actually match all of the boundaries beginning with "wall" but "wall.*" will match "wall_left" and "wall_right" even though those do not contain a dot/period character.

Can one explain what the ".*" does? Is this just the pattern for wildcard because regular asterisk is reserved by the interpreter (even within quotation marks)?

Last edited by tbraun84; February 20, 2025 at 09:52. Reason: Fixed typo in title: "*." -> ".*" and add literal of symbols to aid in search
tbraun84 is offline   Reply With Quote

Old   February 20, 2025, 09:40
Default
  #2
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,298
Rep Power: 30
Yann will become famous soon enoughYann will become famous soon enough
Hello,

Check the section 4.2.13 about regular expressions in the user guide:
https://doc.cfd.direct/openfoam/user...ic-file-format

Cheers,
Yann
tbraun84 likes this.
Yann is offline   Reply With Quote

Reply

Tags
boundaryfield

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
Radiation in semi-transparent media with surface-to-surface model? mpeppels CFX 11 August 22, 2019 07:30
My radial inflow turbine Abo Anas CFX 27 May 11, 2018 01:44
CFD analaysis of Pelton turbine amodpanthee CFX 31 April 19, 2018 18:02
Out File does not show Imbalance in % Mmaragann CFX 5 January 20, 2017 10:20
Problem in setting Boundary Condition Madhatter92 CFX 12 January 12, 2016 04:39


All times are GMT -4. The time now is 09:49.