Elmer Integration (GSoC) - Activity Log

Contributions from the participants, questions and answers to their projects.
Discussions of proposals for upcoming events.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Elmer Integration (GSoC) - Activity Log

Post by bernd »

I have not used Elmer for a while ...

We have four eqution objects in the GUI:
- Elasticity
- Heat
- Electrostatic
- Fluxsolver

But on FreeCAD master in equations we gone have two objects more. How are they used by the GUI?
- linear
- nonlinear

https://github.com/FreeCAD/FreeCAD/tree ... /equations

@HoWil or m42kus:
Would you take me back on the right track in this regard?
m42kus
Posts: 159
Joined: Tue Sep 02, 2014 9:41 am

Re: Elmer Integration (GSoC) - Activity Log

Post by m42kus »

Hi bernd.

All elmer equation objects derive from one of those to classes. They contain properties common among linear/nonlinear equations. They are never directly used in the GUI.
My GSoC Devlog: ceeli.github.io/gsoc
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Elmer Integration (GSoC) - Activity Log

Post by bernd »

m42kus wrote: Mon Aug 27, 2018 9:00 am All elmer equation objects derive from one of those to classes. They contain properties common among linear/nonlinear equations. They are never directly used in the GUI.
thanks for the fast anwer Markus. Sure :o I remeber ... I should have read the code before writing the post ... See https://github.com/FreeCAD/FreeCAD/blob ... ity.py#L39 or https://github.com/FreeCAD/FreeCAD/blob ... eat.py#L39

I may make a comment somewhere in the code about this. Just to be sure I'm not asking again in a few month :lol: :mrgreen:
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Elmer Integration (GSoC) - Activity Log

Post by bernd »

m42kus wrote: Mon Aug 27, 2018 9:00 am All elmer equation objects derive from one of those to classes. They contain properties common among linear/nonlinear equations. They are never directly used in the GUI.
But than the should not have a ViewProvider! See https://github.com/FreeCAD/FreeCAD/blob ... #L102-L103 and https://github.com/FreeCAD/FreeCAD/blob ... py#L58-L59 Or do we need the VP because the childs are used in the GUI.
m42kus
Posts: 159
Joined: Tue Sep 02, 2014 9:41 am

Re: Elmer Integration (GSoC) - Activity Log

Post by m42kus »

bernd wrote: Mon Aug 27, 2018 12:09 pmBut than the should not have a ViewProvider! See https://github.com/FreeCAD/FreeCAD/blob ... #L102-L103 and https://github.com/FreeCAD/FreeCAD/blob ... py#L58-L59 Or do we need the VP because the childs are used in the GUI.
No we don't need the view provider (at least not right now). I just wrote it because I always put proxys and view proxys togther in one py file. Also we might want to add something to it in the future. Feel free to remove it if you like, but make sure that the equation view objects derive from equation.ViewProxy at some point.
My GSoC Devlog: ceeli.github.io/gsoc
julieng
Posts: 106
Joined: Sun Nov 25, 2018 8:57 pm

Re: Elmer Integration (GSoC) - Activity Log

Post by julieng »

Hello,

I have done some studies 3 years ago with Elmer on conjugate heat transfer problems including phase change solid/ liquid and induction heating.


I discover FreeCAD recently and I am very interested to be able to use Elmer via FreeCAD GUI.


I work with Windows 10, is it possible to have a recent step by step assistance to start a project with FreeCAD and running Elmersolver?
I am not able to find some basic tutorial.

For the moment I have designed simple 3D pipe, mesh it with gmsh but I have the error message that I have to use Elmergrid.
Do I need to export the mesh .unv and convert it with Elmergrid or is there a easier solution direct in FreeCAD.
Do I need to install Elmer and choose aim right directory... etc

Thank you for your answer

Best regards
Attachments
Elmer_Comsol_phasechange_summary.pdf
Elmer/ Comsol phase change
(868.78 KiB) Downloaded 101 times
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Elmer Integration (GSoC) - Activity Log

Post by bernd »

no no need to run elmergrid manually. Just make sure you use gmsh mesh. in preferences of elmer in FreeCAD FEM set binary to elmer and elmergrid ... see post https://forum.freecadweb.org/memberlist ... le&u=15166 and some other posts in this topic

Ahh there is an example on FreeCAD start wb, 3DFEM solver frame work
julieng
Posts: 106
Joined: Sun Nov 25, 2018 8:57 pm

Re: Elmer Integration (GSoC) - Activity Log

Post by julieng »

Thank you Bernd,


My next problem is that Elmer cannot find the material that I have assigned for the body.

"ERROR:: InitializeElementDescriptions: elements.def not found"

I ran a simple elasticity calculation. It works with Calculix but not with Elmer.
I have add the body selection in the sub node elasticity under SolverElmer node


Best regards
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Elmer Integration (GSoC) - Activity Log

Post by bernd »

which FreeCAD version? Are you able to rerun the elmer example from StartWB?
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Elmer Integration (GSoC) - Activity Log

Post by bernd »

would you post your FreeCAD file?
Post Reply