This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/applications/utilities/postProcessing/graphics/ensightFoamReader/tensorConversion.H
2010-08-25 22:42:57 +01:00

36 lines
607 B
C

if (component == 0)
{
var_array[counter++] = tf[n].xx();
}
else if (component == 1)
{
var_array[counter++] = tf[n].yy();
}
else if (component == 2)
{
var_array[counter++] = tf[n].zz();
}
else if (component == 3)
{
var_array[counter++] = tf[n].xy();
}
else if (component == 4)
{
var_array[counter++] = tf[n].xz();
}
else if (component == 5)
{
var_array[counter++] = tf[n].yz();
}
else if (component == 6)
{
var_array[counter++] = tf[n].yx();
}
else if (component == 7)
{
var_array[counter++] = tf[n].zx();
}
else if (component == 8)
{
var_array[counter++] = tf[n].zy();
}