ElmerGrid

Discussion about building and installing Elmer
Post Reply
payam
Posts: 13
Joined: 20 Sep 2017, 11:37
Antispam: Yes

ElmerGrid

Post by payam »

When I try to send mesh file from GMSH to elmer grid i get Below Error .Could you please help me how I can solve my problem?

C:\Users\payam.shams>ElmerGrid 14 2 TEST.msh

Starting program Elmergrid
Elmergrid reading in-line arguments
Output will be saved to file TEST.

Elmergrid loading data:
-----------------------
LoadGmshInput: The opening of the mesh file TEST.msh.msh failed!

Thank you for using Elmergrid!
Send bug reports and feature wishes to elmeradm@csc.fi
mzenker
Posts: 1997
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: ElmerGrid

Post by mzenker »

Hi,

I cannot reproduce your case on a Windows 7 machine. I assume your TEST.msh file is in C:\Users\payam.shams? Otherwise cd to the directory where the file is located. Can you open your TEST.msh with gmsh?

HTH,

Matthias
payam
Posts: 13
Joined: 20 Sep 2017, 11:37
Antispam: Yes

Re: ElmerGrid

Post by payam »

Yes,I Can open my file by Gmsh.
mzenker
Posts: 1997
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: ElmerGrid

Post by mzenker »

Oh yes, did you save your file as ASCII or binary? I am not sure if ElmerGrid can read binary .msh files.
payam
Posts: 13
Joined: 20 Sep 2017, 11:37
Antispam: Yes

Re: ElmerGrid

Post by payam »

How can I understand my file is save as binary or ASCII?
mzenker
Posts: 1997
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: ElmerGrid

Post by mzenker »

Open it with an editor.
Or save it a second time with gmsh, using File->Export. There is a dialog where you can choose between ASCII and binary. Choose "Version 2 ASCII".
payam
Posts: 13
Joined: 20 Sep 2017, 11:37
Antispam: Yes

Re: ElmerGrid

Post by payam »

if it said the below message it means I solve my problem
Elmergrid loading data:
-----------------------
Format chosen using the first line: $MeshFormat
Loading mesh in Gmsh format 2.0 from file RSM.msh
Allocating for 19763 knots and 40388 elements.
Moving bulk elements to boundary elements
Leading bulk elementtype is 303
Trailing bulk elementtype is 202
There are 1296 (out of 40388) lower dimensional elements.
Node 2357 belongs to maximum of 31 elements
Found 864 side elements that have two parents.
Found correctly 1296 side elements.
Parent elements were reordered up to indx 39092.
Moved 39092 elements (out of 40388) to new positions
Successfully read the mesh from the Gmsh input file.

Elmergrid creating and manipulating meshes:
-------------------------------------------
Dimension 3 not active but higher dimensions are?
Coordinates defined in 2 dimensions

Elmergrid saving data with method 2:
-------------------------------------
Saving mesh in ElmerSolver format to directory RSM.
Reusing an existing directory
Saving 19763 coordinates to mesh.nodes.
Saving 39092 element topologies to mesh.elements.
Saving boundary elements to mesh.boundary.
Saving header info to mesh.header.
Saving names info to mesh.names.
Saving entities info to entities.sif.
mzenker
Posts: 1997
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: ElmerGrid

Post by mzenker »

Looks good. So it was saved in another format before?
payam
Posts: 13
Joined: 20 Sep 2017, 11:37
Antispam: Yes

Re: ElmerGrid

Post by payam »

I am not sure. How can I understan about it_
mzenker
Posts: 1997
Joined: 07 Dec 2009, 11:49
Location: Germany

Re: ElmerGrid

Post by mzenker »

Your problem went away when you saved the file a second time?
Then it was probably a format issue.
Post Reply