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

What is ".*" in pointDisplacement file?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 12, 2019, 16:58
Default What is ".*" in pointDisplacement file?
  #1
Senior Member
 
Andrew Somorjai
Join Date: May 2013
Posts: 175
Rep Power: 12
massive_turbulence is on a distinguished road
Hello all,

I just wondered if ".*" means "for all" patches in this snippet from a pointDisplacement file; kind of like in SQL where you use something like "select * from ..."?


Code:
boundaryField
{
    ".*"
    {
        type            uniformFixedValue;
        uniformValue    (0 0 0);
    }
thanks!
massive_turbulence is offline   Reply With Quote

Old   February 12, 2019, 17:04
Default
  #2
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,685
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
It is a regex (regular expression) - POSIX flavour.
olesen is offline   Reply With Quote

Old   February 12, 2019, 17:06
Default
  #3
Senior Member
 
Andrew Somorjai
Join Date: May 2013
Posts: 175
Rep Power: 12
massive_turbulence is on a distinguished road
Quote:
Originally Posted by olesen View Post
It is a regex (regular expression) - POSIX flavour.
What does it mean though, does it simply apply to every patch that is not otherwise defined in the same file?
massive_turbulence is offline   Reply With Quote

Old   February 12, 2019, 17:54
Default
  #4
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 14
clapointe is on a distinguished road
Yes. You could test this by removing it -- should trigger a crash and a message to the effect of "patch not defined in pointDisplacement.boundaryField".

Caelan
clapointe is offline   Reply With Quote

Old   February 12, 2019, 18:19
Default
  #5
Senior Member
 
Andrew Somorjai
Join Date: May 2013
Posts: 175
Rep Power: 12
massive_turbulence is on a distinguished road
Quote:
Originally Posted by clapointe View Post
Yes. You could test this by removing it -- should trigger a crash and a message to the effect of "patch not defined in pointDisplacement.boundaryField".

Caelan
I see, on wikipedia it says

"s.* matches s followed by zero or more characters, for example: "s" and "saw" and "seed"."
massive_turbulence is offline   Reply With Quote

Reply

Tags
patch, select, types


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
how to calculate mass flow rate on patches and summation of that during the run? immortality OpenFOAM Post-Processing 104 February 16, 2021 08:46
[foam-extend.org] problem when installing foam-extend-1.6 Thomas pan OpenFOAM Installation 7 September 9, 2015 21:53
[swak4Foam] Problem installing swak_2.x for OpenFoam-2.4.0 towanda OpenFOAM Community Contributions 6 September 5, 2015 21:03
"parabolicVelocity" in OpenFoam 2.1.0 ? sawyer86 OpenFOAM Running, Solving & CFD 21 February 7, 2012 11:44
ParaView Compilation jakaranda OpenFOAM Installation 3 October 27, 2008 11:46


All times are GMT -4. The time now is 01:40.