Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
ElmerCSC
GitHub Repository: ElmerCSC/elmerfem
Path: blob/devel/ElmerWorkflows/Gid2Elmer/GidElmerMarcoInstructions.txt
3204 views
1
Instructions for importing meshes into Elmer from GiD
2
=====================================================
3
4
Note: these procedures have been originally written long ago and may not work with the current version of GiD.
5
6
It is possible to use GiD as a pre processor and mesh generator for Elmer in 2d and 3d analysis.
7
8
Copy the folder elmer.gid under in GiD's problem type folder \GiD\Problemtypes. The folder contains all necessary templates GiD to run under linux- and windows (and possibly Mac) platforms. It may be that the directory also includes the binaries, if not you should compile them from the source codes to stand-alone executables.
9
10
11
Update from Mark Smith in 2014: The updated Elmer problem type for GiD which now handles prism and pyramid elements, though not extensively tested it seems to do the job on windows.
12
Included are the original files : findparents.f90.orig and Elmer.bas.orig. (note that the mac type has not been updated).
13
14
15
16
17
18
Elmer/GiD tutorial in 2D ML 16.5.2004
19
--------------------------------------------------------------------------
20
21
1) Make sure that the folder elmer.gid is copied in \GiD\ProblemTypes.
22
Then, "elmer" should be a valid problem type for GiD and visible in
23
Data -> Problem type.
24
25
2) Invoke GiD and choose File -> New
26
27
3) Create a square: Geometry -> Create -> Object -> Rectangle. Give:
28
29
First corner point: 0 0
30
Second corner point: 1 1
31
32
4) Right-click the mouse and choose a) Render -> Flat lighting b) Rotate ->
33
Trackball. Select a nice view point and give the command "zoom frame".
34
35
5) Choose Data -> Problem type -> elmer
36
37
6) Assign boundary conditions to the boundary lines by choosing Data ->
38
Condition. Select "LineCondition" with Index=1 and assign it to all four
39
boundary lines of the rectangle. NOTE: Only the boundary elements with
40
Index>0 will be written in the mesh file "mesh.boundary".
41
42
7) Choose Data -> Materials and assign Index=1 to the surface of the
43
rectangle. NOTE: Only the bulk elements with material Index>0 will be
44
written in the mesh file "mesh.elements".
45
46
8) Set Utilities -> Preferences -> Meshing -> Mesh always by default: lines
47
This option is needed to generate the mesh.boundary file.
48
49
9) Select Meshing -> Generate. Give size=0.14. As a result, we should
50
get 28 linear boundary elements, 104 triangular bulk elements, and 67
51
nodes.
52
53
10) Save the project: File -> Save as.
54
55
11) Save the mesh in elmer-format by choosing Calculate -> Calculate. The
56
mesh.* files written by GiD can be found from the project-folder.
57
58
Any questions? Write a message to: [email protected]
59
60