How to change a coefficient to re-calibrate an existing turbulence model
1 Attachment(s)
Hello,
I am using kOmegaSST model to modify it into kOmegaBSL model (both are sub-class of kOmegaSSTBase class). Between these two models, there is one difference where I have to change one coefficient (alphaK1 should be changed from 0.85 to 0.5). So, I want to change this value in my new model. In the base-class (kOmegaSSTBase.C), this coefficient is defined as follows in the constructor of its class: Code:
alphaK1_ The above piece of code uses lookupOrAddToDict() function which is defined as follows: Code:
Foam::dimensioned< Type > lookupOrAddToDict Code:
alphaK1_ I'm attaching the current version of my kOmegaBSL.C file with this post. Can you please suggest anything in it? Thank you. Regards. Purn :) |
Solution
One known solution is:
I need to add the coefficient in the pitzDaily/constant/turbulenceProperties of the case file which I am running. The file should look like this: Code:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // |
Still looking for a solution on how to change the coefficient by default.
:) |
1 Attachment(s)
I found out a solution but I am not sure it the standard way of doing this.
I made another dimensionedScalar alphaK10 and then gave the value of this coefficient to the alphaK1 during run time in the correct() function. Take a look on (line 83 to 91), and (line 160 to 162) in this updated version of my .C file. |
All times are GMT -4. The time now is 12:54. |