Elmer GUI 9.0 does not properly load materials

Clearly defined bug reports and their fixes
Post Reply
catalineacsu
Posts: 12
Joined: 10 Feb 2023, 21:27
Antispam: Yes

Elmer GUI 9.0 does not properly load materials

Post by catalineacsu »

I noticed the materials do not load properly when using GUI

In C:\Program Files\Elmer 9.0-Release\share\ElmerGUI\edf\egmaterials.xml
I see for example:
<material name="Copper (generic)" >
<parameter name="Density" >8960.0</parameter>
<parameter name="Youngs modulus" >115.0e9</parameter>
<parameter name="Poisson ratio" >0.34</parameter>


however, GUI shows no Poisson ratio as seen below and needs to be added manually.
Screenshot 2023-02-11 114531.png
Screenshot 2023-02-11 114531.png (8.1 KiB) Viewed 1038 times
Rich_B
Posts: 423
Joined: 24 Aug 2009, 20:18

Re: Elmer GUI 9.0 does not properly load materials

Post by Rich_B »

Hello,

When you saw the empty poisson ratio field, was the mesh update solver tab also active? If you de-activate the mesh update tab, does it load properly?

Rich.
catalineacsu
Posts: 12
Joined: 10 Feb 2023, 21:27
Antispam: Yes

Re: Elmer GUI 9.0 does not properly load materials

Post by catalineacsu »

Not sure what you mean but I guess it is active as per pic below. I need to remember how to disable the tab, so I'll be back tomorrow with clarifications.
Screenshot 2023-02-11 212043.png
Screenshot 2023-02-11 212043.png (5.74 KiB) Viewed 1029 times
Rich_B
Posts: 423
Joined: 24 Aug 2009, 20:18

Re: Elmer GUI 9.0 does not properly load materials

Post by Rich_B »

Hello,

This behavior is a bug, the poisson ratio in the mesh update menu 'steals' the value from the copper material entry upon loading from the library.

It's on my todo list...

The workaround is to just enter the desired poisson ratio after loading. Also, the bug only pops up when the mesh update tab is active, meaning when the 'active' check box is checked.

Rich.
catalineacsu
Posts: 12
Joined: 10 Feb 2023, 21:27
Antispam: Yes

Re: Elmer GUI 9.0 does not properly load materials

Post by catalineacsu »

Thanks for confirming the bug. However, the bug shows also without the mesh update being active. is there any way I can provide more details?
Rich_B
Posts: 423
Joined: 24 Aug 2009, 20:18

Re: Elmer GUI 9.0 does not properly load materials

Post by Rich_B »

Sure, the forum allows up to 3 attachments per post, and up to 1 megabyte in size per post. Posting a minimal working example is always recommended.

Create a compressed archive (a zip file, or a gz file) of your ElmerGUI project folder. If needed, split the archive into parts to stay under the 1 MB limit.

Alternatively for any Elmersolver question, attach just the sif file, and your original geometry input file, with instructions on how you converted the geometry input file into a set of Elmer mesh files. Sometimes the Elmer mesh files will compress below 1 MB, and one can just attach the zipped mesh files. Since this is an ElmerGUI menu issue, the first method is probably required.

Rich.
Post Reply