CalculiX "no material assigned" error

About the development of the FEM module/workbench.

Moderator: bernd

freesam
Posts: 6
Joined: Fri Feb 16, 2018 9:32 pm

CalculiX "no material assigned" error

Post by freesam »

Hi all,

First of all, thank you so much for this wonderful tool and the FEM integration !

I'm trying to replicate the tutorial from youtube https://www.youtube.com/watch?v=Qbif13e2iyo

I'm using :
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13289 (Git)
Build type: Release
Branch: master
Hash: 23fff2b1d3a066d335dea509694e8f83f859d16a
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: English/Switzerland (en_CH)

When running CalculiX, I get the following error message for several elements :

*ERROR in calinput: no material was assigned
to element 621

This is apparently due to multiple materials : if I use a single material, the simulation runs fine.

Am I doing something wrong ?

Thanks for your help in advance,

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

Re: CalculiX "no material assigned" error

Post by Christoph »

Hi, I made the video. In the link is a running model just created on the newest development snapshot. You can try if it works on your system. I cleared the mesh, that means you have to remesh the model.

https://www.dropbox.com/s/z19lb0v94qiik ... FCStd?dl=0

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13303 (Git)
Build type: Release
Branch: master
Hash: b47e011c1cc6357fa776624d371ed434989c79b1
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: German/Germany (de_DE)
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: CalculiX "no material assigned" error

Post by bernd »

@freesam:

would you clear the mesh and post the FreeCAD file?
freesam
Posts: 6
Joined: Fri Feb 16, 2018 9:32 pm

Re: CalculiX "no material assigned" error

Post by freesam »

Christoph,

Thanks a lot for your model. I've tried it and it works. My error probably comes from me having not followed strictly the video : I've used Netgen instead of Gmesh. With Gmesh, it works just nicely. Is this an expected behavior with Netgen ?

@bernd I guess you don't need the file anymore, do you ?

Thanks for your support !
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: CalculiX "no material assigned" error

Post by bernd »

no if it works for you, you don't need to post the file.

Multi material analysis should work with netgen and gmsh meshes.

bernd
freesam
Posts: 6
Joined: Fri Feb 16, 2018 9:32 pm

Re: CalculiX "no material assigned" error

Post by freesam »

I've retried the tutorial with gmesh, and get the same error again.

I've attached the meshed file.

Using other files, I was able to get it working with Gmesh, but not Netgen. But I'd suspect I do something wrong which has nothing to do with the mesher I select.

Do you see an issue in this file ?

Thanks again for your help.
Attachments
bimetal-gmsh.FCStd
(360.98 KiB) Downloaded 49 times
Christoph
Posts: 55
Joined: Fri Jul 08, 2016 9:02 pm

Re: CalculiX "no material assigned" error

Post by Christoph »

freesam wrote: Sun Feb 18, 2018 1:00 pm Do you see an issue in this file ?
Your are right, the analysis in the file you attached doesn't work. Then I used compound filter from part workbench on boolean fragments and the analysis worked quite fine.

Maybe you try the attached file...
Attachments
bimetal-gmsh2.FCStd
(1013.96 KiB) Downloaded 45 times
UR_
Veteran
Posts: 1355
Joined: Tue Jan 03, 2017 8:42 pm

Re: CalculiX "no material assigned" error

Post by UR_ »

Sorry, in this simple-as-could-be example ELSET=SolidMaterialSolid and ELSET=SolidMaterial001Solid stays empty.

screenshot.png
screenshot.png (20.79 KiB) Viewed 2000 times

Code: Select all

**********************************************************
** Element sets for materials and FEM element type (solid, shell, beam, fluid)
** written by write_element_sets_material_and_femelement_type function
*ELSET,ELSET=SolidMaterialSolid
*ELSET,ELSET=SolidMaterial001Solid
***********************************************************

ShapeContent.png
ShapeContent.png (6.43 KiB) Viewed 1995 times

file:
MultiMat.FCStd
(29.38 KiB) Downloaded 41 times

tested with:
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13286 (Git)
Build type: Release
Branch: master
Hash: 88e8c98d345c31f7c16711cb1702e10fba21f6c1
Python version: 2.7.8
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: German/Germany (de_DE)


also tested on 0.17.13303
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: CalculiX "no material assigned" error

Post by bernd »

:o :shock: :evil:

confirmed on

OS: Debian GNU/Linux 9.3 (stretch)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.13305 (Git)
Build type: Unknown
Branch: femtmp
Hash: dc763dbd127dcc85f826c228626bc3d0c9b45782
Python version: 2.7.13
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.0.0
Locale: German/Switzerland (de_CH)

I'll have a look !
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: CalculiX "no material assigned" error

Post by bernd »

as workaround use:

- gmsh object and set in preference --> FEM --> general --> create mesh groups for analysis reference shapes to true
Post Reply