CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   VolTensorField (https://www.cfd-online.com/Forums/openfoam-pre-processing/62220-voltensorfield.html)

evgenii February 22, 2006 05:26

Hi, everyone! I need to use i
 
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

eugene February 22, 2006 05:50

And this template goes for all
 
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"


All times are GMT -4. The time now is 10:25.