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;
}
i.e. no relaxation, just enforcement of diagonalisation on all equations, and I wanted to add relaxation on K for stability, viz:
Code:
equations
{
".*" 1;
K.* 0.9;
}
Now here's the rub - which keyword wins out for the K equation? The first line sets the RF to 1, the second to 0.9. Is it the first keyword that is listed, or the last? And what would the code use if I had:
Code:
equations
{
K.* 0.7;
".*" 1;
K.* 0.9;
}
As far as I know, you cannot get the code to tell you what factor it is using - please correct me if you know better.
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!