Felt in FEM Workbench
Moderator: bernd
Forum rules
and Helpful information for the FEM forum
and Helpful information for the FEM forum
Re: Felt in FEM Workbench
Hey Sudhanshu,
i wrote a few tutorials on how to extend the solver framework a while back:
https://www.freecadweb.org/wiki/Extend_FEM_Module
https://www.freecadweb.org/wiki/Add_FEM ... n_Tutorial
https://www.freecadweb.org/wiki/Add_FEM ... t_Tutorial
They are a little outdated, the package structure and module naming has since been changed - but they may still be helpful
regards,
Markus
i wrote a few tutorials on how to extend the solver framework a while back:
https://www.freecadweb.org/wiki/Extend_FEM_Module
https://www.freecadweb.org/wiki/Add_FEM ... n_Tutorial
https://www.freecadweb.org/wiki/Add_FEM ... t_Tutorial
They are a little outdated, the package structure and module naming has since been changed - but they may still be helpful
regards,
Markus
My GSoC Devlog: ceeli.github.io/gsoc
Re: Felt in FEM Workbench
I have looked into the first link already.m42kus wrote: ↑Thu Apr 04, 2019 7:07 am Hey Sudhanshu,
i wrote a few tutorials on how to extend the solver framework a while back:
https://www.freecadweb.org/wiki/Extend_FEM_Module
https://www.freecadweb.org/wiki/Add_FEM ... n_Tutorial
https://www.freecadweb.org/wiki/Add_FEM ... t_Tutorial
They are a little outdated, the package structure and module naming has since been changed - but they may still be helpful
Will take a look at the other two.
Thanks for the help.
Re: Felt in FEM Workbench
So yesterday I was trying to install Netgen so that I could compare it with Corduroy.
I found the official installation instructions here and it looks rather painful to get the newest version of Netgen installed on your pc.
Then I switched to doing some FEM analysis to get deeper insights as a user.
There I noticed that though I had never installed netgen nor calculix (not that I remember even if I did) FreeCAD was able to use them.
But I have heard that you need to separately install 3rd party softwares in FreeCAD to use them.
So here are my few doubts:
1. How does FreeCAD installs netgen? Does it follow that painful process or is there some other way?
2. How is a solver, lets say Calculix, installed in FreeCAD? Through the addon manager or does it come with the installation of FEM workbench?
Re: Felt in FEM Workbench
which OS are you on?
Netgen is integrated in FreeCAD. If it is not in your FreeCAD, use gmsh instead of netgen!
Installation of gmsh and calculix depends on your os. Again which os are you on?
Netgen is integrated in FreeCAD. If it is not in your FreeCAD, use gmsh instead of netgen!
Installation of gmsh and calculix depends on your os. Again which os are you on?
Re: Felt in FEM Workbench
I am using Ubuntu 18.04.
So which version of Netgen was integrated in FreeCAD, the one available through PPA or the one that needs to be compiled manually?
Also, what about the solvers?
Are they also integrated or separately installed along with the workbench?
Re: Felt in FEM Workbench
calculix needs to be installed. The binary will than be ccx. Set the path ot ccx in FEM preferences.
https://launchpad.net/~freecad-communit ... ubuntu/ppa
Do you compile FreeCAD yourself?
For meshing the easieast would be to install the gmesh for ubuntu and set the path to gmsh in FEM prefereces.
This both should do the trick for you.
https://launchpad.net/~freecad-communit ... ubuntu/ppa
Do you compile FreeCAD yourself?
For meshing the easieast would be to install the gmesh for ubuntu and set the path to gmsh in FEM prefereces.
This both should do the trick for you.
Re: Felt in FEM Workbench
I have compiled it once, it was 0.16 version back then.bernd wrote: ↑Sun Apr 07, 2019 2:24 pm calculix needs to be installed. The binary will than be ccx. Set the path ot ccx in FEM preferences.
https://launchpad.net/~freecad-communit ... ubuntu/ppa
Do you compile FreeCAD yourself?
It was my first blog by the way.
But the one that I am using currently was installed via apt.
Is there any difference between gmesh and netgen?
I had seen this topic being discussed in two threads by you, but wasn't able to understand it much.
I just want to compare the input and output of corduroy with either of the meshers in FreeCAD.
Re: Felt in FEM Workbench
To get started with FEM it does not matter if you use Gmsh or Netgen. If your FreeCAD does not inlcude Netgen just install Gmsh from ubuntu repo.
Re: Felt in FEM Workbench
Of course there is a difference. Gmsh and Netgen are two different programs. They basically do the same thing, create a mesh of a solid object; however, since they are different programs, they have their own ways of working. It's like asking "Is there a difference between Arch and Ubuntu?"
There is a lot of confusing information that has transpired over the years in the forum and wiki, so I will try to summarize it as follows:I had seen this topic being discussed in two threads by you, but wasn't able to understand it much.
I just want to compare the input and output of corduroy with either of the meshers in FreeCAD.
- Netgen was previously included with FreeCAD, and you could use it directly within the FEM Workbench. However, because FreeCAD changed OpenCascade libraries two years ago, Netgen stopped working, so it was removed. In theory, you could select a solid, and with a single button (FEM MeshNetgenFromShape), you'd get a mesh.
- The same thing is possible with Gmsh. If you install this program, you can select a solid, and with a single button (FEM MeshGmshFromShape), you can get a mesh.
- However, independently of that button being present in the FEM Workbench or not, you can install and use Netgen and Gmsh outside FreeCAD, just like any other pre-processor that you have used. See FEM Install and FEM Mesh for more information.
Set up the personal package repositories and
Code: Select all
sudo apt install gmsh
sudo apt install netgen
At the end of the day, a mesher has a ton of options to produce a mesh. All of them work more or less the same if you know what parameters you need to tweak.
Always add the important information to your posts if you need help. Also see Tutorials and Video tutorials.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
To support the documentation effort, and code development, your donation is appreciated: liberapay.com/FreeCAD.
Re: Felt in FEM Workbench
Just to make clear. Netgen was never included in FreeCAD source. FreeCAD needs to be compiled and linked against Netgen to make Netgen mesher inside FreeCAD working. May be, may be not, the provided FreeCAD binaries for various operating systems include netgen mesher or not!vocx wrote: ↑Sun Apr 07, 2019 7:18 pm There is a lot of confusing information that has transpired over the years in the forum and wiki, so I will try to summarize it as follows:
- Netgen was previously included with FreeCAD, and you could use it directly within the FEM Workbench. However, because FreeCAD changed OpenCascade libraries two years ago, Netgen stopped working, so it was removed. In theory, you could select a solid, and with a single button (FEM MeshNetgenFromShape), you'd get a mesh.
As stated, to get started just use gmsh.