CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Representation of Term (http://www.cfd-online.com/Forums/openfoam-solving/72452-representation-term.html)

titio February 5, 2010 13:58

Representation of Term
 
Hi Foamers,

I am trying to represent the term tensor & grad(U), being both tensor and grad(U) order 2 tensors. I am considering this term as a source, however I do use neither Sp, Su or SuSp to represent it.

However, from a computacional point of view, is not better to discretize it using Sp, Su and SuSp. I tried

Sp (tensor & grad(U), tensor), but it gave me a error. How I can represent this term?

Regards,

António Martins

su_junwei February 6, 2010 02:46

Hi titio
if you want to discrete the term in a explicit form, just calculate the value of your expression and add it to your equation. You don't have to use sp, su, susp.
The coefficient of is Sp is a dimensionedScalar or volScalarField, however tensor & grad (U) gives a volVectorField.That may be the problem.

regards,Junwei


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