|
[Sponsors] |
![]() |
![]() |
#1 | ||
Senior Member
Join Date: Apr 2020
Location: UK
Posts: 825
Rep Power: 16 ![]() |
A trivial question, but I could not find any reference to this online. The relaxationFactors subdictionary of fvSolution for one of the SIMPLE solver tutorial cases reads as follows:
Quote:
Quote:
Last edited by Tobermory; April 3, 2020 at 11:51. Reason: Clarifying the text |
|||
![]() |
![]() |
![]() |
![]() |
#2 |
Senior Member
Join Date: Apr 2020
Location: UK
Posts: 825
Rep Power: 16 ![]() |
Ok - solved. Section 4.2.12 of the User Guide talks about Regular Expressions, of which this is an example.
|
|
![]() |
![]() |
![]() |
![]() |
#3 |
Senior Member
Troy Snyder
Join Date: Jul 2009
Location: Akron, OH
Posts: 220
Rep Power: 19 ![]() |
As you mentioned. This is detailed with the OF user guide. But for those who future reference this forum entry, here is the explanation (taken directly from OF user guide v7)...
"inlet.*" matches any word beginning inlet. . . , including inlet itself, because ‘.’ denotes “any character” and ‘*’ denotes “repeated any number of times, including 0 times”. "(inlet|output)" matches inlet and outlet because () specified an expression grouping and | is an OR operator. |
|
![]() |
![]() |
![]() |
![]() |
#4 |
Senior Member
Join Date: Apr 2020
Location: UK
Posts: 825
Rep Power: 16 ![]() |
Thanks, Troy. The one that had me scratching my head was ".*" ... I was wondering: why not just "*". But that's not the way the regexp language works. As you point out, the "." means any character (including an empty space, but not endline) and the "*" means repeated any number of times (including zero times).
I suggest reading up the page on wikipedia: it's pretty informative. https://en.wikipedia.org/wiki/Regular_expression |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Continuity divergence in simple gas flow | Okka | FLUENT | 7 | January 11, 2019 01:01 |
Simple loop in LaplacianFoam | Houthuys | OpenFOAM Programming & Development | 1 | January 24, 2017 03:18 |
SIMPLE vs. PISO | Kappa | OpenFOAM Running, Solving & CFD | 1 | October 17, 2016 08:08 |
Simple doesn't stop after convergence criteria is achieved | thiagopl | OpenFOAM Running, Solving & CFD | 3 | April 2, 2015 10:29 |
SIMPLE algorithm | Jonathan Castro | Main CFD Forum | 3 | December 10, 1999 04:59 |