|
[Sponsors] |
October 2, 2014, 07:16 |
tensorfields with 12 components??????
|
#1 |
New Member
Join Date: Mar 2014
Posts: 21
Rep Power: 12 |
Hi everybody
In my implementation I need to multiply a tensor with div operator. Does anyone know that It is possible in openfoam to crate a tensor with 12 elements? my tensors need to have 12 components but I get the error regarding that I can not go further 9 elements. I did like this in my createfield volTensorField j2 ( IOobject ( "j2", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE ), mesh, dimensionedTensor( "j2Tensor", dimless, tensor(0,0,0,0,0,0,-1,0,0,1,0,0) ) ); and then j2 & fvc::div(phi,u2) ------------------------------------------- generally I want to know even is it possible to have tensors with more than 9 components??? thanks a lot in advance |
|
October 3, 2014, 01:25 |
|
#2 |
Senior Member
Michael Prinkey
Join Date: Mar 2009
Location: Pittsburgh PA
Posts: 363
Rep Power: 25 |
"Tensors" in OpenFOAM are only rank-2. That is nine elements in 3D. I don't know what rank/symmetries gives you a tensor with 12 components, but OpenFOAM doesn't support it by default.
http://www.foamcfd.org/Nabla/guides/...sGuidese4.html If you need to multiply a 4x3 matrix by a div operator, you can split the div operator apart to get the x,y,z components and multiply everything out by hand. |
|
October 13, 2014, 06:37 |
|
#3 |
New Member
Join Date: Mar 2014
Posts: 21
Rep Power: 12 |
Thanks Micheal for your answer,
can you also mention how can I split the div component? Regards, ALI |
|
October 13, 2014, 09:26 |
|
#4 | |
Senior Member
Michael Prinkey
Join Date: Mar 2009
Location: Pittsburgh PA
Posts: 363
Rep Power: 25 |
Quote:
This presentation gives you all of the details that you need: http://www.tfd.chalmers.se/~hani/kur...rogramming.pdf |
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to extract the components of radial and tangential velocities from pump impeller | renyun0511 | OpenFOAM Running, Solving & CFD | 3 | October 31, 2022 09:31 |
Accessing velocity components and gradient of velcoity components | vivekgnhtr | OpenFOAM Programming & Development | 3 | June 27, 2022 02:39 |
Question on the sequence of grad(U) components | ripperjack | OpenFOAM Post-Processing | 1 | September 18, 2018 12:19 |
wallGradU components | amin66 | OpenFOAM Post-Processing | 9 | March 25, 2016 20:09 |
Transient Statistics for turbo components | Suzzn | CFX | 5 | May 4, 2010 09:56 |