CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   Determining forces on a cell face in OpenFoam (http://www.cfd-online.com/Forums/openfoam/60769-determining-forces-cell-face-openfoam.html)

srinath September 5, 2008 06:22

Hello I have the following
 
Hello

I have the following lines in my code which don't compile.
Could someone tell me what's wrong.

volTensorField tauMC("tauMC",mu*dev2(fvc::grad(U)().T()));
surfaceTensorField tauMC_surf=linearInterpolate(tauMC);
surfaceVectorField phi_rhoU_visc = tauMC_surf & mesh.Sf;

Regards
Srinath

srinath September 6, 2008 02:44

the last line should read sur
 
the last line should read
surfaceVectorField phi_rhoU_visc = tauMC_surf & mesh.Sf();

Everything works fine now


All times are GMT -4. The time now is 23:59.