Karin&NiKo wrote:
Dear Gmsh Gurus,

I am very interested in the your high order adaptive views (though I am mainly interested in second order fields). I would like to know which kinds of views this is working with, what are the main options and essentially if it makes sense to try to integrate it as a Gmsh file format in a finite element software?

Happy new year to all of you! Long life to Gmsh!


Hello Nicolas - For standard (e.g. P2) finite elements you won't have to
change anything in your codes: Gmsh will know the function spaces and
the adaptive stuff will work out-of-the box with any format (MSH, MED,
etc.). Right now the function spaces are only implemented for simplices
(lines, triangles, tetrahedra); we still need to implement high-order
hexahedra and prisms. If you have some spare time... :-)

Attached is a very simple example in MSH format: load the file and go to
Tools->Options->View. Then select "Adapt visualization grid" and select
the maximum recursion level and the visualization error: et voilĂ  !

For more exotic finite elements you will have to define the function
spaces "by hand" in the input files. We haven't finalized the format yet
for MSH; there is a sample implementation for the old parsed POS format
in the code.

Cheers,

Christophe



NiKo


------------------------------------------------------------------------

_______________________________________________
gmsh mailing list
[email protected]
http://www.geuz.org/mailman/listinfo/gmsh


--
Prof. Christophe Geuzaine
University of Liege, Electrical Engineering and Computer Science
http://www.montefiore.ulg.ac.be/~geuzaine

$MeshFormat
2 0 8
$EndMeshFormat
$Nodes
27
1 0 0 0
2 1 0 0
3 1 1 0
4 0 1 0
5 1 1 1
6 1 0 1
7 0 0 1
8 0 1 1
9 0.4999999999986718 1 0
10 1 0.5000000000013305 0
11 0.5000000000013305 0 0
12 0 0.4999999999986718 0
13 1 0.5000000000013305 1
14 0.5000000000013305 0 1
15 0 0.4999999999986718 1
16 0.4999999999986718 1 1
17 1 1 0.4999999999986718
18 1 0 0.4999999999986718
19 0 0 0.4999999999986718
20 0 1 0.4999999999986718
21 0.5 0.5 0
22 1 0.5 0.5
23 0.5 0 0.5
24 0 0.5 0.5
25 0.5 1 0.5
26 0.5 0.5 1
27 0.5 0.5 0.5
$EndNodes
$Elements
38
1 15 3 0 1 0 1
2 15 3 0 2 0 2
3 15 3 0 3 0 3
4 15 3 0 4 0 4
5 15 3 0 5 0 5
6 15 3 0 6 0 6
7 15 3 0 10 0 7
8 15 3 0 14 0 8
9 8 3 0 1 0 4 3 9
10 8 3 0 2 0 3 2 10
11 8 3 0 3 0 2 1 11
12 8 3 0 4 0 1 4 12
13 8 3 0 8 0 5 6 13
14 8 3 0 9 0 6 7 14
15 8 3 0 10 0 7 8 15
16 8 3 0 11 0 8 5 16
17 8 3 0 13 0 3 5 17
18 8 3 0 14 0 2 6 18
19 8 3 0 18 0 1 7 19
20 8 3 0 22 0 4 8 20
21 9 3 0 6 0 3 2 4 10 21 9
22 9 3 0 6 0 2 1 4 11 12 21
23 9 3 0 15 0 2 6 5 18 13 22
24 9 3 0 15 0 3 2 5 10 22 17
25 9 3 0 19 0 6 2 7 18 23 14
26 9 3 0 19 0 2 1 7 11 19 23
27 9 3 0 23 0 1 4 7 12 24 19
28 9 3 0 23 0 4 8 7 20 15 24
29 9 3 0 27 0 4 3 5 9 17 25
30 9 3 0 27 0 8 4 5 20 25 16
31 9 3 0 28 0 7 5 6 26 13 14
32 9 3 0 28 0 7 8 5 15 16 26
33 11 3 0 1 0 7 4 8 2 24 20 15 23 27 21
34 11 3 0 1 0 5 4 3 2 25 9 17 22 10 21
35 11 3 0 1 0 6 5 2 7 13 22 18 14 23 26
36 11 3 0 1 0 7 4 2 1 24 21 23 19 11 12
37 11 3 0 1 0 5 4 2 8 25 21 22 16 27 20
38 11 3 0 1 0 5 8 2 7 16 27 22 26 23 15
$EndElements
$NodeData
1
"2nd order view"
1
0.0
3
0
1
27
1   2  
2   2  
3   2  
4   2  
5   2  
6   2  
7   2  
8   2  
9   1  
10  1 
11  1 
12  1 
13  1 
14  1 
15  1 
16  1 
17  1 
18  1 
19  1 
20  1 
21   1
22   1
23   1
24   1
25   1
26   1
27   1
$EndNodeData
$NodeData
1
"2nd order view"
1
1.0
3
1
1
27
1   12  
2   12  
3   12  
4   12  
5   2  
6   2  
7   2  
8   2  
9   1  
10  1 
11  1 
12  1 
13  1 
14  1 
15  1 
16  1 
17  1 
18  1 
19  1 
20  1 
21   1
22   1
23   1
24   1
25   1
26   1
27   1
$EndNodeData

_______________________________________________
gmsh mailing list
[email protected]
http://www.geuz.org/mailman/listinfo/gmsh

Reply via email to