Page 1 of 1

ElmerGrid

Posted: 20 Sep 2017, 11:51
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

Re: ElmerGrid

Posted: 20 Sep 2017, 12:06
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

Re: ElmerGrid

Posted: 20 Sep 2017, 12:09
by payam
Yes,I Can open my file by Gmsh.

Re: ElmerGrid

Posted: 20 Sep 2017, 12:10
by mzenker
Oh yes, did you save your file as ASCII or binary? I am not sure if ElmerGrid can read binary .msh files.

Re: ElmerGrid

Posted: 20 Sep 2017, 12:23
by payam
How can I understand my file is save as binary or ASCII?

Re: ElmerGrid

Posted: 20 Sep 2017, 12:28
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".

Re: ElmerGrid

Posted: 20 Sep 2017, 12:31
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.

Re: ElmerGrid

Posted: 20 Sep 2017, 12:34
by mzenker
Looks good. So it was saved in another format before?

Re: ElmerGrid

Posted: 20 Sep 2017, 12:35
by payam
I am not sure. How can I understan about it_

Re: ElmerGrid

Posted: 20 Sep 2017, 14:38
by mzenker
Your problem went away when you saved the file a second time?
Then it was probably a format issue.