Diffusion term in k transport equation #1837
Unanswered
JuanSembla
asked this question in
Q&A
Replies: 1 comment 4 replies
-
You need to be here for the actual diffusion term that you mention (around line 230): The residual is then added to the linear system, and its Jacobian is added to the Jacobian, see the theory, especially eq. (49) here: |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello all! I hope you're doing well.
I'm working on turbulence modelling for compressible flows. More precisely, the idea is to obtain data driven models that work as corrections for Menter's k-w SST and so, I'll be modifying the k and omega equations. In order to do so, I would need to access the diffusion term that goes like$$\partial / \partial x_j [(\nu + \sigma_k * \nu_t) \partial k / \partial x_j]$$ . I've seen that in CTurbSSTSolver.cpp, from line 319 onwards, the code goes like:
/--- Compute the source term ---/
auto residual = numerics->ComputeResidual(config);
/--- Subtract residual and the Jacobian ---/
LinSysRes.SubtractBlock(iPoint, residual);
if (implicit) Jacobian.SubtractBlock2Diag(iPoint, residual.jacobian_i);
Is the diffusion term allocated in residual.jacobian_i? And, if it is, where does this allocation take place? I've gone through turb_diffusion.hpp and scalar_diffusion.hpp but I don't seem to have found it yet.
Thank you in advance for your time and cooperation, I hope you have a nice day.
Regards,
JuanSembla.
Beta Was this translation helpful? Give feedback.
All reactions