CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   gradient of a tensor (https://www.cfd-online.com/Forums/openfoam-programming-development/214750-gradient-tensor.html)

EmadTandis February 12, 2019 05:38

gradient of a tensor
 
Hi all,
I need to evaluate "u.grad(B)" where u is velocity vector and B is a second order tensor. But I faced an error says gradient of tensor cannot be evaluated. Do you have any suggestion to evaluate the term?

massive_turbulence February 12, 2019 08:15

Quote:

Originally Posted by EmadTandis (Post 724466)
Hi all,
I need to evaluate "u.grad(B)" where u is velocity vector and B is a second order tensor. But I faced an error says gradient of tensor cannot be evaluated. Do you have any suggestion to evaluate the term?

If you can take the derivative of each component of the 2nd order tensor that would probably work! You would need to do some extra coding on your part.

From: https://www.cfd-online.com/Forums/op...-openfoam.html

"Unfortunately I didn't find any solution, however I defined some volScalarField for every component of stress tensor separately and then calculated the derivative of them."

roozbeh_s February 7, 2021 17:03

Quote:

Originally Posted by EmadTandis (Post 724466)
Hi all,
I need to evaluate "u.grad(B)" where u is velocity vector and B is a second order tensor. But I faced an error says gradient of tensor cannot be evaluated. Do you have any suggestion to evaluate the term?

Dear Emad,
have you found any solution to take a gradient of a tensor?


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