|
[Sponsors] |
Repeated keywords in the dictionary - useful info |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 15, 2020, 04:21 |
Repeated keywords in the dictionary - useful info
|
#1 |
Senior Member
Join Date: Apr 2020
Location: UK
Posts: 727
Rep Power: 14 |
I was editing my relaxation factors, when a doubt crept into my mind. The factors that I started with were simply a REGEXP:
Code:
equations { ".*" 1; } Code:
equations { ".*" 1; K.* 0.9; } Code:
equations { K.* 0.7; ".*" 1; K.* 0.9; } The answer, according to the user guide (4.2.13), is that the code uses the last instance of any keyword, and that a keyword entry always overrides a REGEXP entry regardless of their order. I thought that that was pretty useful info, and worth sharing. Enjoy! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Gmsh] gmshToFoam generates patches with 0 faces and 0 points | Simurgh | OpenFOAM Meshing & Mesh Conversion | 4 | August 25, 2023 07:58 |
ill defined primitiveEntry starting at keyword 'value' on line 197 ChangeDictionary | Struggle_Achieve | OpenFOAM Pre-Processing | 2 | December 20, 2017 03:58 |
[Gmsh] 3D coil mesh: can't create the volume? | RomainBou | OpenFOAM Meshing & Mesh Conversion | 3 | July 18, 2016 05:09 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 06:51 |
OpenFOAM with Cygwin | kitchener | OpenFOAM Installation | 6 | April 24, 2006 23:09 |