-
Dear professor He, Then I modified the production term Pk (G) in the turbulence kinetic energy equation of the kOmegaSSTLM model Then the full derivative appeared, and it was an intuitive full derivative. Below is a comparison of the derivatives of the two, This is my runScript. py, runScript_v2.txt |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 3 replies
-
Is this channel flow fully laminar? If yes, the deriv wrt beta should be zero because it will not impact the flow. |
Beta Was this translation helpful? Give feedback.
-
gammaInt does not appear in the KRes equation, and what truly affects KEqn is gammaIntEff The expression for the full derivative is: |
Beta Was this translation helpful? Give feedback.
-
As I understand, Can you add |
Beta Was this translation helpful? Give feedback.
-
It is good to hear that it fixes the problem. No, we should put these lines in updateIntermediateVariables because this function is not called during the primal solution, and will be called only in the adjoint. Can you submit the above as a PR to DAFoam's repo? |
Beta Was this translation helpful? Give feedback.
As I understand,
gammaIntEff_ = max(gammaInt_(), gammaSep);
, so they are related. I just looked at the SSTLM code and realized that something may be missing. Check my comment here:dafoam/src/adjoint/DAModel/DATurbulenceModel/DAkOmegaSSTLM.C
Line 756 in 7c38ac1
Can you add
gammaIntEff_ = max(gammaInt_(), gammaSep);
to the above place and see if it fixes the problem? You may also need to add the codes to compute gammaSep. Basically, we need to add the code to update gammaIntEff in updateIntermediateVariables