
Thank you for your answer.
Indeed the treatment of a momentum source term is a topic widely discussed. My main question deals with the convection term when is a constant velocity different than the variable we looked to solve. I am not sure the classical process with phi0 instead of phi in the convection term as I mentioned in the quoted code above is correct ? Regards, Cyp 
convection term
Hello, Cyp
did you find any confirmation on topic how to treat convection term with some known U0 ? I have similar task, but without source term. Do i have to modify standard PISO loop from IcoFoam? In my case i have: + fvm::div(phi, U) + fvm::div(phi0, U) + fvm::div(phi, U0) 
Quote:
Hi levka, If you want to add fvm::div(phi0, U) in the NaviersStokes equations you do not have to change the PISO loop. However, the last term you mentioned cannot be treated implicitly (I mean, using fvm::div(...)). Indeed the unknown of this equation is U. When you use fvm::blahblah , you build the linear matrix system where U is the unknown. In your equation, fvm::div(phi,U0) means that you want to build the matrix for U0 within the matrix for U... It doesn't make sens. I suggest you consider this term as an explicit source term using fvc::div(phi,U0). Once again, in this case, the PISO loop doesn't change. Best, Cyp 
...
Thanks a lot!
I will give a try and come back. Quote:

...
1 Attachment(s)
Hello, Cyp
Have a look at the attached picture (that is a probe of U in time). I computed the following: fvVectorMatrix UEqn ( fvm::ddt(U) + fvm::div(phi, U)  fvm::laplacian(nu, U) + fvm::div(phi0, U) ); solve(UEqn == fvc::grad(p) fvc::div(phi, U0)); Where U0 constant velocity profile, phi0 flux based on that U0. U(initially) profile of full turbulent flow at Re=5000. The result i obtained is not expected: flow became absolutely laminar... I suppose to see turbulent flow, according to the math equations Do you have any idea? 
If you consider the additional source term as an argument of the solve function, you have to modified the reconstruction of the velocity (see the link mentioned in the second post of this topic).
You should try : Code:
fvVectorMatrix UEqn Cyp 
...
Cyp,
finally i found that your idea is working, thanks! Code:
fvVectorMatrix UEqn 
All times are GMT 4. The time now is 14:09. 