Different mesh in FC and ElmerGUI

About the development of the FEM module/workbench.

Moderator: bernd

Post Reply
HoWil
Veteran
Posts: 1279
Joined: Sun Jun 14, 2015 7:31 pm
Location: Austria

Different mesh in FC and ElmerGUI

Post by HoWil »

Hello,
I did write some advertising for FC-FEM and elmer-integration in the elmer-forum (see http://elmerfem.org/forum/viewtopic.php ... ac0d10b91f ).
After uploading the images showing the generated mesh in FC, in ElmerGUI and in Paraview I realized that the depicted mehes are a bit different but can not explain why. Please have a look especially at the mesh at the hole in the middle of the plate:
Image
and compare with the mesh shown in ElmerGUI:
Image
Everything looks back to normal when viewing the results (of the simulation run within ElmerGUI) with paraview:
Image

Any hints why the mesh in FC looks somehow in between the coarse mesh shown in ElmerGUI and the mesh exported by Elmer visualized with paraview? Is this simply a visualization problem or is this related to the group I introduced at the inner face of the hole?

The models can be found on the Elmer-forum: http://elmerfem.org/forum/viewtopic.php ... 91f#p17443

Thanks in advance,
HoWil
Christoph
Posts: 55
Joined: Fri Jul 08, 2016 9:02 pm

Re: Different mesh in FC and ElmerGUI

Post by Christoph »

I would guess Elmergui is just not able to visualize second order meshes correctly respectively middle nodes located on curved geometries. If showing node numbers in Elmergui, every edge has a middle node. So everything is fine. Remeshing the mesh in FreeCAD as 1st order, the mesh looks a bit like the one in Elmergui.
Image
polymer
Posts: 278
Joined: Fri Sep 12, 2014 8:49 am

Re: Different mesh in FC and ElmerGUI

Post by polymer »

In Elmer GUI go to:

View -> Shade Model -> Smooth

And all is fine.
HoWil
Veteran
Posts: 1279
Joined: Sun Jun 14, 2015 7:31 pm
Location: Austria

Re: Different mesh in FC and ElmerGUI

Post by HoWil »

Christoph wrote: Tue Nov 14, 2017 10:19 pm I would guess Elmergui is just not able to visualize second order meshes correctly respectively middle nodes located on curved geometries.
polymer wrote: Wed Nov 15, 2017 9:48 am And all is fine.
Excellent! Thx to both of you for your detailed help :!:
BTW.: I am extraordinary positively surprised to see some elmer experts in this forum.

Maybe we should make a poll about which fem software a usual FC-FEM user uses beside FC.

BR, Wilfried
Christoph
Posts: 55
Joined: Fri Jul 08, 2016 9:02 pm

Re: Different mesh in FC and ElmerGUI

Post by Christoph »

polymer wrote: Wed Nov 15, 2017 9:48 am In Elmer GUI go to:

View -> Shade Model -> Smooth

And all is fine.
mhhh, does not work using Elmer 8.3 on Windows 10. I can not see any change using this command.

I am playing around with following software packages:

- FreeCAD
- Salome Meca
- Elmer
- LibreCAD (no simulation, but quite a nice software and I like using it. 3d is fine, but not always necessary)
- Mecway (not open source, in the past it cost 100 dollar, but now 350 dollar - it is highly usable and I like it pretty much (uses CalculiX too))
- Agros2d (excellent software, and often 2d is absolutely sufficient to do the job)
- Z88 Aurora / Arion
- Calculix Launcher from Calculix09 on Youtube (doesn't look nice but works very fine and can perform amazing things (https://www.youtube.com/user/calculix09 ... _polymer=1))

During Christmas, I hope to find some spare time to give a try on Code Saturn...
Last edited by Christoph on Wed Nov 15, 2017 11:10 pm, edited 1 time in total.
thschrader
Veteran
Posts: 3158
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Different mesh in FC and ElmerGUI

Post by thschrader »

Christoph wrote: Wed Nov 15, 2017 7:28 pm
polymer wrote: Wed Nov 15, 2017 9:48 am In Elmer GUI go to:

View -> Shade Model -> Smooth

And all is fine.
mhhh, does not work using Elmer 8.3 on Windows 10. I can not see any change using this command.

I am playing around with following software packages:

- FreeCAD
- Salome Meca
- Elmer
- LibreCAD (no simulation, but quite a nice software and I like using it. 3d is fine, but not always necessary)
- Mecway (not open source, in the past it cost 100 dollar, but now 350 dollar - it is highly usable and I like it pretty much (uses CalculiX too))
- Agros2d (excellent software, and often 2d is absolutely sufficient to do the job)
- Z88 Aurora / Arion
- Calculix Launcher from Calculix09 on Youtube (doesn't look nice but works very fine and can perform amazing things (https://www.youtube.com/user/calculix09 ... _polymer=1))

During Christmas, will hope to find some spare time to give a try on Code Saturn...
Lifer doch malei
Can you give an example?
Christoph
Posts: 55
Joined: Fri Jul 08, 2016 9:02 pm

Re: Different mesh in FC and ElmerGUI

Post by Christoph »

Let's try your wall from here (quick and dirty): https://forum.freecadweb.org/viewtopic. ... 30#p199127

Temperature distribution in Agros2d:
Image

Temperature distribution as diagramm, also in Agros2d:
Image

I used your values regarding thermal conductivity, but as film coefficient 25 W/(m²K) on the cold side and 7,6924 W/(m²K) on the warm side.

Here the file: https://www.dropbox.com/s/u5jbmsmm3fomtj0/wall.a2d?dl=0

Update: sorry, used different temperatures too: warm side 293.15 K and cold side 290.65 K
thschrader
Veteran
Posts: 3158
Joined: Sat May 20, 2017 12:06 pm
Location: Germany

Re: Different mesh in FC and ElmerGUI

Post by thschrader »

@Christoph: thanks for the calculation,
please see here
https://forum.freecadweb.org/viewtopic. ... 1&start=30
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Different mesh in FC and ElmerGUI

Post by bernd »

Christoph wrote: Tue Nov 14, 2017 10:19 pm I would guess Elmergui is just not able to visualize second order meshes correctly respectively middle nodes located on curved geometries. If showing node numbers in Elmergui, every edge has a middle node. So everything is fine. Remeshing the mesh in FreeCAD as 1st order, the mesh looks a bit like the one in Elmergui.
Guys for your information. FreeCAD see code what uses FreeCAD to display a FEM mesh. https://github.com/FreeCAD/FreeCAD/blob ... 1054-L1066
Post Reply