CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

About div(tensor)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 25, 2012, 06:30
Default About div(tensor)
  #1
Member
 
M Mallikarjuna Reddy
Join Date: Jul 2012
Posts: 91
Rep Power: 14
mmkr825 is on a distinguished road
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
mmkr825 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On



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