CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Laplacian of a TensorField ? (https://www.cfd-online.com/Forums/openfoam-solving/80359-laplacian-tensorfield.html)

T.D. September 23, 2010 07:11

Laplacian of a TensorField ?
 
Hi,

How to calculate laplacian of A*T
if A is a scalar function of another scalar Main field c and , T is a 2nd order tensor

example

when i put

"
solve
(
fvm::ddt(c) + fvm::div(phi,c) == fvm::laplacian(A,T)
);

A=2*pow(c,2)+5;
"

it doesnot work!!!!?

Help lease??

niklas September 23, 2010 07:18

Quote:

Originally Posted by T.D. (Post 276289)
solve
(
fvm::ddt(c) + fvm::div(phi,c) == fvm::laplacian(A,T)
);

so what you are saying is
Code:

scalar + scalar == tensor
I hope you see the mistake here

T.D. September 23, 2010 08:02

Hi
 
Execuse me,
In another words
the last term to the write is

∇·(A*(∇.T)) which must be a scalar ok to go on with the c equation.


where A is a scalar and T is a second order tensor


so ∇·T is div(T) and it is a vector ok (since divergence of a tensor) ??

and V=A*∇·T is a vector then

so ∇·(A*(∇.T)) must be written something like div(A,V) ?? knowing that A is always a function of c.


helpme
Thanks

niklas September 23, 2010 08:14

Quote:

Originally Posted by T.D. (Post 276300)
∇·(A*(∇.T))

ah ok, so its 2 div operations...
∇·(A*(∇.T)) = fvc::div(A*fvc::div(T))

but this will make this term fully explicit.
I think it will be hard to treat it fully implicit.
If you run into stability problems you should try to split it up into implicit/explicit parts.

T.D. September 23, 2010 09:43

HI
 
Hi Niklas thanks,


BUT A is a function of the scalar field c.

so it stays like that ∇·(A*(∇.T)) = fvc::div(A*fvc::div(T)) ??


another thing please: do you know how to turn off all dimensions?

thank you so much

niklas September 23, 2010 09:54

yes of course it does.

and why do you want to turn off dimensions,
it has saved me on numerous occasions.

but ok, I can see that the exp-function can give you problems.

if you are using 1.7.1 it is in
OpenFoam-1.7.1/etc/controlDict

lookup the line
dimensionSet 1;

and change the 1 to 0.

T.D. September 23, 2010 12:40

Thanks
 
Thanks a lot Niklas


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