CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   body force (https://www.cfd-online.com/Forums/openfoam-pre-processing/97079-body-force.html)

Goutam February 8, 2012 10:39

body force
 
fvVectorMatrix UEqn
(
fvm::ddt(U)
+ fvm::div(phi, U)
- fvm::laplacian(nu, U)

-beta*(T - T0)*g
;



fvScalarMatrix TEqn(
fvm::ddt(T)
+ fvm::div(phi, T)
- fvm::laplacian(DT, T)
;




I add body force with the momentum equation, when I run my problem,

I am getting the value of p, T and U. only problem is, no variation is found

for U. I consider g as (9.71 0 0). moving top wall temp is 1, cold bottom

wall temp is 0. others walls temp is zeroGradient. its a simple 2D case.

Goutam February 8, 2012 10:40

body force
 
fvVectorMatrix UEqn
(
fvm::ddt(U)
+ fvm::div(phi, U)
- fvm::laplacian(nu, U)

-beta*(T - T0)*g
);

fvScalarMatrix TEqn(
fvm::ddt(T)
+ fvm::div(phi, T)
- fvm::laplacian(DT, T)
);


I add body force with the momentum equation, when I run my problem,
I am getting the value of p, T and U. only problem is, no variation is found
for U. I consider g as (9.71 0 0). moving top wall temp is 1, cold bottom
wall temp is 0. others walls temp is zeroGradient. its a simple 2D case.


All times are GMT -4. The time now is 04:40.