|
[Sponsors] |
September 25, 2012, 06:30 |
About div(tensor)
|
#1 |
Member
M Mallikarjuna Reddy
Join Date: Jul 2012
Posts: 91
Rep Power: 14 |
Hi Foamers,
I have a doubt about laplacian and divergence. For many problems we write div(nu, grad(T)) simply as laplacian(nu, T). For my application i need to write div(tensor), Which gives a vector field. But i am getting some error message as follows. UEqn:- tmp<fvVectorMatrix> UEqn ( fvm::div(phi, U) - fvc::div(2*nu*pow(1-T/0.68,-1.82), symm(grad(U))) ); Error:- UEqn.H:7:62: error: no matching function for call to ‘div(Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> >, Foam::tmp<Foam::GeometricField<Foam::SymmTensor<do uble>, Foam::fvPatchField, Foam::volMesh> >)’ make: *** [Make/linuxGccDPOpt/sbm1Foam.o] Error 1 where symm(grad(U)) is rate of strain tensor.(1/2*(grad(U)+grad(U).T)). please guide me to rectify this problem.. Thanks Regards Mallikarjuna |
|
|
|