Skip to content
Snippets Groups Projects
Commit cdda41ae authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

add tensor examples
parent 9c5d0039
No related branches found
No related tags found
No related merge requests found
...@@ -6,31 +6,64 @@ General.Color.Background = White ; ...@@ -6,31 +6,64 @@ General.Color.Background = White ;
General.Color.Foreground = Black ; General.Color.Foreground = Black ;
General.Color.Text = Black ; General.Color.Text = Black ;
View "default"{ x = 0;
SP(0,10,0){1} ; // a scalar point y = 15;
VP(0,8,0){1,0,0} ; // a vector point z = 0;
SL(0,6,0, 1,6,0){1,2} ; // a scalar line
VL(0,4,0, 1,4,0){1,0,0, 2,0,0} ; // a vector line View "Primitives"{
ST(0,2,0, 1,2,0, 0,3,0){1,2,3} ; // a scalar triangle T3(x,y--,z,0){"Scalar, vector and tensor points"};
VT(0,0,0, 1,0,0, 0,1,0){1,0,0, 2,0,0, 3,0,0} ; // a vector triangle SP(x,y--,z){1};
SS(0,-2,0, 1,-2,0, 0,-1,0, 0,-2,1){1,2,3,4} ; // a scalar tetrahedron VP(x,y--,z){1,0,0};
VS(0,-4,0, 1,-4,0, 0,-3,0, 0,-4,1){1,0,0, 2,0,0, 3,0,0, 4,0,0} ; // a vector tetrahedron TP(x,y--,z){1,0,0,0,0,0,0,0,0};
SQ(0,-6,0, 1,-6,0, 1,-5,0, 0,-5,0){1,2,3,4} ; // a scalar quadrangle
VQ(0,-8,0, 1,-8,0, 1,-7,0, 0,-7,0){1,0,0, 2,0,0, 3,0,0, 4,0,0} ; // a vector quadrangle T3(x,y--,z,0){"Scalar, vector and tensor lines"};
SH(0,-10,0, 1,-10,0, 1,-9,0, 0,-9,0, SL(x,y--,z, x+.5,y,z){1,2};
0,-10,1, 1,-10,1, 1,-9,1, 0,-9,1){1,2,3,4,4,3,2,1} ; // a scalar hexahedron VL(x,y--,z, x+.5,y,z){1,0,0, 2,0,0};
VH(0,-12,0, 1,-12,0, 1,-11,0, 0,-11,0, TL(x,y--,z, x+.5,y,z){1,0,0,0,0,0,0,0,0, 2,0,0,0,0,0,0,0,0};
0,-12,1, 1,-12,1, 1,-11,1, 0,-11,1)
{1,0,0, 2,0,0, 3,0,0, 4,0,0, 4,0,0, 3,0,0, 2,0,0, 1,0,0}; // a vector hexahedron T3(x,y--,z,0){"Scalar, vector and tensor triangles"};
SI(0,-14,0, 1,-14,0, 0,-13,0, ST(x,y--,z, x+.5,y,z, x,y+.5,z){1,2,3};
0,-14,1, 1,-14,1, 0,-13,1){1,2,3,3,2,1} ; // a scalar prism VT(x,y--,z, x+.5,y,z, x,y+.5,z){1,0,0, 2,0,0, 3,0,0};
VI(0,-16,0, 1,-16,0, 0,-15,0, TT(x,y--,z, x+.5,y,z, x,y+.5,z)
0,-16,1, 1,-16,1, 0,-15,1) {1,0,0,0,0,0,0,0,0, 2,0,0,0,0,0,0,0,0, 3,0,0,0,0,0,0,0,0};
{1,0,0, 2,0,0, 3,0,0, 3,0,0, 2,0,0, 1,0,0} ; // a vector prism
T3(x,y--,z,0){"Scalar, vector and tensor quadrangles"};
SQ(x,y--,z, x+.5,y,z, x+.5,y+.5,z, x,y+.5,z){1,2,3,4};
VQ(x,y--,z, x+.5,y,z, x+.5,y+.5,z, x,y+.5,z){1,0,0, 2,0,0, 3,0,0, 4,0,0};
TQ(x,y--,z, x+.5,y,z, x+.5,y+.5,z, x,y+.5,z)
{1,0,0,0,0,0,0,0,0, 2,0,0,0,0,0,0,0,0, 3,0,0,0,0,0,0,0,0, 4,0,0,0,0,0,0,0,0};
T3(x,y--,z,0){"Scalar, vector and tensor tetrahedra"};
SS(x,y--,z, x+.5,y,z, x,y+.5,z, x,y,z+.5){1,2,3,4};
VS(x,y--,z, x+.5,y,z, x,y+.5,z, x,y,z+.5){1,0,0, 2,0,0, 3,0,0, 4,0,0};
TS(x,y--,z, x+.5,y,z, x,y+.5,z, x,y,z+.5)
{1,0,0,0,0,0,0,0,0, 2,0,0,0,0,0,0,0,0, 3,0,0,0,0,0,0,0,0, 4,0,0,0,0,0,0,0,0};
T3(x,y--,z,0){"Scalar, vector and tensor hexahedra"};
SH(x,y--,z, x+.5,y,z, x+.5,y+.5,z, x,y+.5,z,
x,y,z+.5, x+.5,y,z+.5, x+.5,y+.5,z+.5, x,y+.5,z+.5){1,2,3,4,4,3,2,1};
VH(x,y--,z, x+.5,y,z, x+.5,y+.5,z, x,y+.5,z,
x,y,z+.5, x+.5,y,z+.5, x+.5,y+.5,z+.5, x,y+.5,z+.5)
{1,0,0, 2,0,0, 3,0,0, 4,0,0, 4,0,0, 3,0,0, 2,0,0, 1,0,0};
TH(x,y--,z, x+.5,y,z, x+.5,y+.5,z, x,y+.5,z,
x,y,z+.5, x+.5,y,z+.5, x+.5,y+.5,z+.5, x,y+.5,z+.5)
{1,0,0,0,0,0,0,0,0, 2,0,0,0,0,0,0,0,0, 3,0,0,0,0,0,0,0,0, 4,0,0,0,0,0,0,0,0,
4,0,0,0,0,0,0,0,0, 3,0,0,0,0,0,0,0,0, 2,0,0,0,0,0,0,0,0, 1,0,0,0,0,0,0,0,0};
T3(x,y--,z,0){"Scalar, vector and tensor prisms"};
SI(x,y--,z, x+.5,y,z, x,y+.5,z,
x,y,z+.5, x+.5,y,z+.5, x,y+.5,z+.5){1,2,3,3,2,1};
VI(x,y--,z, x+.5,y,z, x,y+.5,z,
x,y,z+.5, x+.5,y,z+.5, x,y+.5,z+.5)
{1,0,0, 2,0,0, 3,0,0, 3,0,0, 2,0,0, 1,0,0};
TI(x,y--,z, x+.5,y,z, x,y+.5,z,
x,y,z+.5, x+.5,y,z+.5, x,y+.5,z+.5)
{1,0,0,0,0,0,0,0,0, 2,0,0,0,0,0,0,0,0, 3,0,0,0,0,0,0,0,0,
3,0,0,0,0,0,0,0,0, 2,0,0,0,0,0,0,0,0, 1,0,0,0,0,0,0,0,0};
}; };
Duplicata View[0]; Duplicata View[0];
View[1].Name = "with-options" ; View[1].Name = "Primitives (dupl. 1)" ;
View[1].OffsetX = 3 ; View[1].OffsetX = 3 ;
View[1].IntervalsType = 2 ; View[1].IntervalsType = 2 ;
View[1].ShowElement = 1 ; View[1].ShowElement = 1 ;
...@@ -38,7 +71,7 @@ View[1].ArrowLocation = 2 ; ...@@ -38,7 +71,7 @@ View[1].ArrowLocation = 2 ;
View[1].ColorTable = {Red,Green,Magenta,Cyan,Brown,Pink} ; View[1].ColorTable = {Red,Green,Magenta,Cyan,Brown,Pink} ;
Duplicata View[0]; Duplicata View[0];
View[2].Name = "with-options-2" ; View[2].Name = "Primitives (dupl. 2)" ;
View[2].OffsetX = 6 ; View[2].OffsetX = 6 ;
View[2].IntervalsType = 4 ; View[2].IntervalsType = 4 ;
View[2].ShowElement = 1 ; View[2].ShowElement = 1 ;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment