CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Possibility to transport a Matrix? (http://www.cfd-online.com/Forums/openfoam-programming-development/104413-possibility-transport-matrix.html)

yuhai July 9, 2012 06:55

Possibility to transport a Matrix?
 
Dear Friends,

I want to introduct a new 3x3 elements variable Matrix into pimpleFoam or pisoFoam by transport equation. (noncoupled)
the basis equation is (in reality it is more complex):

ddt(S)
+(U.grad)S
=f1(grad(U).S+S.grad(U))

in the equation, S is the 3x3 element matrix.

Is it possible?

Thanks!

ARTem July 9, 2012 08:48

Hello, yuhai.
I haven't used it yet, but have you tried volTensorField or volSymmTensorField?
Typedef, given in src finiteVolume fields volFields volFieldsFwd.H:
typedef GeometricField<symmTensor, fvPatchField, volMesh> volSymmTensorField;
typedef GeometricField<tensor, fvPatchField, volMesh> volTensorField;
And detailed description of available operations with tensors and symmTensors is given in ProgrammersGuide at p. 15 and below (you can easily google and download it).

gschaider July 9, 2012 11:34

Quote:

Originally Posted by ARTem (Post 370451)
Hello, yuhai.
I haven't used it yet, but have you tried volTensorField or volSymmTensorField?
Typedef, given in src finiteVolume fields volFields volFieldsFwd.H:
typedef GeometricField<symmTensor, fvPatchField, volMesh> volSymmTensorField;
typedef GeometricField<tensor, fvPatchField, volMesh> volTensorField;
And detailed description of available operations with tensors and symmTensors is given in ProgrammersGuide at p. 15 and below (you can easily google and download it).

Yep. Tensor is the way to go. And yes: it works. Some turbulence models rely on transporting tensors


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