|
[Sponsors] |
February 22, 2006, 06:26 |
Hi, everyone!
I need to use i
|
#1 |
Member
Efimenko Evgenii
Join Date: Mar 2009
Location: Nizhnij Novgorod, Russia
Posts: 52
Rep Power: 17 |
Hi, everyone!
I need to use in my program tensor field. How to create a zero volTensorField in OpenFoam? I've tried some variants but failed. Hopefully Eugene |
|
February 22, 2006, 06:50 |
And this template goes for all
|
#2 |
Senior Member
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 21 |
And this template goes for all field types
volTensorField fieldName ( IOobject ( "fileName", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), mesh, dimentionedTensor("name", dimensionSet(0,0,0,0,0,0,0), //correct dimensions here tensor::zero) ); The default boundary types are "calculated" |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Taking the absolute value of a volVectorField or a volTensorField | kupiainen | OpenFOAM | 3 | July 25, 2019 14:00 |
How to get the Diagonal elements of volTensorField | su_junwei | OpenFOAM Running, Solving & CFD | 0 | December 1, 2008 11:29 |
VolTensorField Gamma in laplacian | haibinli | OpenFOAM Running, Solving & CFD | 0 | May 17, 2007 02:45 |