Interpolation Scheme on grad(U)
Hi everyone,
Since the flow I want to simulate show that dU/dz is non-linear, I want to implement an interpolation scheme on velocity U by applying the scheme on grad(U) in the sub dictionnary 'gradSchemes', file fvSchemes. Everything compile successfully (no message of error), but the results (U, k ,epsilon) are not what I should observe (comparing with litterature). Does anyone see something really bad that could cause an issue in the following code that I am endup with? FYI, I used the interpolation scheme 'localMax' as a template. Thank you very much for the feedback. Code:
#ifndef UInterpolationScheme_H |
just randomly shooting - might be the source of problems? https://www.cfd-online.com/Forums/op...vc-grad-u.html
|
Thank for answering,
Actually, I came across this thread some weeks ago and I was suspecting that could be the issue. But, in the k-epsilon turbulence model, just before resolving the transport equation, we can see these lines here: Code:
tmp<volTensorField> tgradU = fvc::grad(U); Also, I performed some testing by using my new interpolation scheme files and then instead of implementing the new formula, I was using the following formula: Code:
vff[facei] = (vf[P_id] + vf[N_id])/2; What is your thought? Thanks again for answering. |
All times are GMT -4. The time now is 11:46. |