CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   Determining forces on a cell face in OpenFoam (

srinath September 5, 2008 06:22

Hello I have the following

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;


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 20:57.