Multi Material Tutorial
Moderator: bernd
Forum rules
and Helpful information for the FEM forum
and Helpful information for the FEM forum
Multi Material Tutorial
I'm trying to determine correct material type and structure geometry for my open source caravan project. I need to create assemblies with different materials. Is FEM module capable of doing that? If so, how can I declare "ABS" for wheels (pink) and "Aluminum" for chassis (olive) and "Steel" for axle (blue)?
- Attachments
-
- fem-multi-material-example-non-asm3.FCStd
- (34.73 KiB) Downloaded 75 times
Assembly 3 notes: https://github.com/ceremcem/freecad-notes
Re: Multi Material Tutorial
I added multiple materials as example
I noticed that it is impossible to pre-select shapes before adding. I no there is spoken about that before... but one thing i noticed when creating a force the select is direct active while it is not with the material selection...
I have an older version but not that old...
OS: OS X El Capitan (10.11)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.17175 (Git)
Build type: Release
Branch: master
Hash: 507c40669d48ae4732268324cd0140c80cf68222
Python version: 3.7.3
Qt version: 5.9.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Netherlands (en_NL)
I noticed that it is impossible to pre-select shapes before adding. I no there is spoken about that before... but one thing i noticed when creating a force the select is direct active while it is not with the material selection...
I have an older version but not that old...
OS: OS X El Capitan (10.11)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.17175 (Git)
Build type: Release
Branch: master
Hash: 507c40669d48ae4732268324cd0140c80cf68222
Python version: 3.7.3
Qt version: 5.9.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/Netherlands (en_NL)
- Attachments
-
- fem-multi-material-example-non-asm3.FCStd
- (37.57 KiB) Downloaded 68 times
Re: Multi Material Tutorial
(to be removed, see below post)
Last edited by ceremcem on Sat Aug 10, 2019 7:42 pm, edited 1 time in total.
Assembly 3 notes: https://github.com/ceremcem/freecad-notes
Re: Multi Material Tutorial
(to be deleted because it was an incorrect error report)
Last edited by ceremcem on Sun Aug 11, 2019 12:56 pm, edited 1 time in total.
Assembly 3 notes: https://github.com/ceremcem/freecad-notes
Re: Multi Material Tutorial
I understood how to declare multiple materials for multiple solids/geometries. However, I can see no complete Analysis (no mesh, no Calculix results) in your example file.
I tried creating separate meshes for each materials but Fem threw the error: "Fem: Multiple mesh in analysis is not yet supported". So I created a compound: Selected all solids (chassis, axle, wheels) and clicked Part->Compound -> Make compound, renewed material and solid relations, then created a mesh (with Netgen) by using this compound. Clicking "Write .inp file" threw the following error:
Code: Select all
FEM mesh has no volume elements, either define a shell thicknesses or provide a FEM mesh with volume elements.
- Attachments
-
- fem-multi-material-example-non-asm3-2.FCStd
- (119.85 KiB) Downloaded 59 times
Assembly 3 notes: https://github.com/ceremcem/freecad-notes
Re: Multi Material Tutorial
You need to create a single mesh from all objects at the same time.
When creating the .inp file for Calculix than there is made a distinction between what nodes belongs to what materials.
When creating the .inp file for Calculix than there is made a distinction between what nodes belongs to what materials.
Re: Multi Material Tutorial
You have to make a single mesh from all bodies combied in a compsolid. To do this select all bodies and make a boolean fragment and then switch from standard to compsolid under mode in the property of this boolean fragment. Than you can add a compound filter to remove the last compound and stay with only one compsolid existing of 6 solids (see the screennshot). Then you should mesh this with Gmesh because Netgen is not supporting multiple materials at the moment. It is important that the mesh is sharing the nodes between the different faces (see second and third screenshot).
It should worked now but I still got an error that calculix can't write the .inp file
I thought it was because the of the geometry. I found out that the axle was sticking into the wheels (see screenshot)
After I fixed this, everything has worked well.
Watch this, unfortunately in German but it shows the concept well https://youtu.be/T-ggqH3tXHs?t=492
It should worked now but I still got an error that calculix can't write the .inp file
Code: Select all
Error in get_femelement_sets_from_group_data -- > femelements_count_ok() failed!
After I fixed this, everything has worked well.
Watch this, unfortunately in German but it shows the concept well https://youtu.be/T-ggqH3tXHs?t=492
- Attachments
-
- result.png (295.45 KiB) Viewed 2104 times
-
- achse-into-wheel.png (140.17 KiB) Viewed 2104 times
-
- mesh-compsolid-will-work.png (262.87 KiB) Viewed 2104 times
-
- mesh-compound-wont-work.png (98.75 KiB) Viewed 2104 times
-
- compound-compsolid.png (8.68 KiB) Viewed 2104 times
Last edited by shIxx on Thu Sep 12, 2019 7:09 pm, edited 8 times in total.
Re: Multi Material Tutorial
I attached the .FCStd as well without the mesh for smaler file size
Edit:
BTW if you want the axle to go through the wheels, than you have to cut the axle out of the wheels. This should also work.
In summary, it can be said that its important to:
- have no overlapping geometries!
- use compsolid instead of compound
- and mesh with Gmesh
Edit:
BTW if you want the axle to go through the wheels, than you have to cut the axle out of the wheels. This should also work.
In summary, it can be said that its important to:
- have no overlapping geometries!
- use compsolid instead of compound
- and mesh with Gmesh
- Attachments
-
- fem-multi-material-example-fixed.FCStd
- (56.91 KiB) Downloaded 56 times
Last edited by shIxx on Thu Sep 12, 2019 7:09 pm, edited 2 times in total.
Re: Multi Material Tutorial
I found a very important comment on the video I posted above. I translated this comment in English for all English-speaking people here (by google translate):
With several materials with different E-modules, the stress evaluation at the contact surfaces is wrong! This is because in the FEM method, from the integration points of the elements, the stresses at the common nodes are averaged. With different moduli of elasticity, these stresses are higher with the equation Sigma = E * epsilon and lower with the high modulus of elasticity. These are then averaged together at the nodes. I therefore recommend only evaluating the strains epsilon. If someone needs the tensions, the strains themselves must be multiplied by the respective modulus of elasticity.
- Attachments
-
- contact-stress.png (491.01 KiB) Viewed 2066 times
Last edited by shIxx on Thu Sep 12, 2019 5:56 pm, edited 4 times in total.
Re: Multi Material Tutorial
sry for the double posts but I have repeated the analysis with Netgen and it looks like Netgen does support multiple materials from now on *thumbs up*
I think this was not possible in .17, but it seems it is implemented now in .18.
I think this was not possible in .17, but it seems it is implemented now in .18.