CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   how to add a damping in the momentum equation (https://www.cfd-online.com/Forums/openfoam-solving/144903-how-add-damping-momentum-equation.html)

htq2014 November 23, 2014 23:34

how to add a damping in the momentum equation
 
Recently, I'm using the groovyBC to make wave with the interFoam solver,so it must build a field as the relaxationZone,and I choose to add a damping in the momentum equation,the special attention is that I use the RAS turbulence model,I have looked some papers about it,but all the papers are in Laminar flow model,so I must solve the question.the momentum equation with damping which compiled by myself as follow:
fvVectorMatrix UEqn
(
fvm::ddt(rho, U)
+ fvm::div(rhoPhi, U)
+ turbulence->divDevRhoReff(rho, U)
- fvm::laplacian(muf,U)
-(fvc::grad(U)&fvc::grad(muf))
+U*rho*thetaField
);
and the part
"- fvm::laplacian(muf,U)
-(fvc::grad(U)&fvc::grad(muf))
+U*rho*thetaField"
is added by me,Among them,the part
"+U*rho*thetaField"
is the damping,but I don't know the parts
"- fvm::laplacian(muf,U)
-(fvc::grad(U)&fvc::grad(muf))"
and
" + turbulence->divDevRhoReff(rho, U)"have question,because in the Laminar flow model paper,only have the part
"- fvm::laplacian(muf,U)
-(fvc::grad(U)&fvc::grad(muf))",so I want somebody give me a guide.


All times are GMT -4. The time now is 22:35.