[Solved] Requested property: [Material], not found

About the development of the FEM module/workbench.

Moderator: bernd

Erni24
Posts: 12
Joined: Fri Feb 24, 2017 6:00 pm

[Solved] Requested property: [Material], not found

Postby Erni24 » Sat Jul 13, 2019 9:54 am

Hi all,

I try to follow anisim's video "How to use two materials". But run into a problem with electrostatic simulation.
I can create the mesh, i assign air and steel to solid1 and solid2 of the compSolid.
The sif file is written, starting the simulation runs for a while...

Then in the solver window:

Code: Select all

SingleSolver: Attempting to call solver
SingleSolver: Solver Equation string is: stat elec solver
StatElecSolve: -------------------------------------
StatElecSolve: STATELEC SOLVER:
StatElecSolve: -------------------------------------
DefaultStart: Starting solver: stat elec solver
StatElecSolve: Starting Assembly...
WARNING:: ListFind:
WARNING:: ListFind:  Requested property: [Material], not found
WARNING:: ListFind:
and in the output panel:

Code: Select all

Exception (Sat Jul 13 11:45:01 2019): File to load not existing or not readable: case0001.vtu  
Exception in thread Thread-60:
Traceback (most recent call last):
  File "/tmp/.mount_FreeCAe6p9QU/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/tmp/.mount_FreeCAe6p9QU/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/tmp/.mount_FreeCAe6p9QU/usr/Mod/Fem/femsolver/task.py", line 115, in protector
    self.run()
  File "/tmp/.mount_FreeCAe6p9QU/usr/Mod/Fem/femsolver/elmer/tasks.py", line 137, in run
    self.solver.ElmerResult.read(postPath)
Base.FreeCADError: {'sclassname': 'N4Base13FileExceptionE', 'sErrMsg': 'File to load not existing or not readable', 'sfile': '', 'iline': 0, 'sfunction': '', 'swhat': 'File to load not existing or not readable: case0001.vtu', 'btranslatable': False, 'breported': True, 'filename': 'case0001.vtu'}
How can i fix this?

Dietmar

OS: Debian GNU/Linux bullseye/sid (KDE//usr/share/xsessions/plasma)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.17349 (Git) AppImage
Build type: Release
Branch: master
Hash: 7eccda34d090ab641b29fa4be24c515cfa39c601
Python version: 3.7.3
Qt version: 5.9.7
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)
Last edited by Erni24 on Fri Jul 19, 2019 9:44 pm, edited 2 times in total.
chrisb
Posts: 16887
Joined: Tue Mar 17, 2015 9:14 am

Re: Requested property: [Material], not found

Postby chrisb » Sat Jul 13, 2019 10:29 am

Hi Dietmar, can you please edit your post and change the quote tags to code tags. It keeps the indentation and improves readability.
User avatar
bernd
Posts: 8046
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Requested property: [Material], not found

Postby bernd » Sat Jul 13, 2019 1:12 pm

you use a very old version ! FEM development is fast! Would you try on 0.18.2 or even better on latest 0.19.x
Erni24
Posts: 12
Joined: Fri Feb 24, 2017 6:00 pm

Re: Requested property: [Material], not found

Postby Erni24 » Sat Jul 13, 2019 2:40 pm

Hope you just red the version in a wrong way. I downloaded the AppImage yesterday from dev tree :D
User avatar
Kunda1
Posts: 4803
Joined: Thu Jan 05, 2017 9:03 pm

Re: Requested property: [Material], not found

Postby Kunda1 » Sat Jul 13, 2019 3:11 pm

Erni24 wrote:
Sat Jul 13, 2019 9:54 am
Version: 0.19.17349 (Git) AppImage
Yea, it's the dev version, @bernd
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
Erni24
Posts: 12
Joined: Fri Feb 24, 2017 6:00 pm

Re: Requested property: [Material], not found

Postby Erni24 » Sat Jul 13, 2019 5:09 pm

I figured out one point.
1) in the sif file is no material section
Erni24
Posts: 12
Joined: Fri Feb 24, 2017 6:00 pm

Re: Requested property: [Material], not found

Postby Erni24 » Sun Jul 14, 2019 3:09 pm

adding a material section allows me to start the simulation, but it ends in an error:

Code: Select all

Solver binary path: /usr/local/bin/ElmerSolver 
Exception (Sun Jul 14 16:58:03 2019): File to load not existing or not readable: case0001.vtu  
Exception in thread Thread-74:
Traceback (most recent call last):
  File "/tmp/.mount_FreeCAmnGlcv/usr/lib/python3.7/threading.py", line 917, in _bootstrap_inner
    self.run()
  File "/tmp/.mount_FreeCAmnGlcv/usr/lib/python3.7/threading.py", line 865, in run
    self._target(*self._args, **self._kwargs)
  File "/tmp/.mount_FreeCAmnGlcv/usr/Mod/Fem/femsolver/task.py", line 115, in protector
    self.run()
  File "/tmp/.mount_FreeCAmnGlcv/usr/Mod/Fem/femsolver/elmer/tasks.py", line 137, in run
    self.solver.ElmerResult.read(postPath)
Base.FreeCADError: {'sclassname': 'N4Base13FileExceptionE', 'sErrMsg': 'File to load not existing or not readable', 'sfile': '', 'iline': 0, 'sfunction': '', 'swhat': 'File to load not existing or not readable: case0001.vtu', 'btranslatable': False, 'breported': True, 'filename': 'case0001.vtu'}
the section in the sif file looks like:

Code: Select all


Body 1
  Equation = Integer 1
  Name = String "Solid1"  
  Material = Integer 1
End

Material 1
  Relative Permittivity = Real 1.0
End
Erni24
Posts: 12
Joined: Fri Feb 24, 2017 6:00 pm

Re: Requested property: [Material], not found

Postby Erni24 » Sun Jul 14, 2019 4:03 pm

next step...

if i put

Code: Select all

Relative Permittivity = 1.00058986
into (for instance) Air.FCMat file, the material section in case.sif is written. Seems to be, the material files for dielectric materials need an improvement.
User avatar
bernd
Posts: 8046
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Requested property: [Material], not found

Postby bernd » Mon Jul 15, 2019 4:23 am

Kunda1 wrote:
Sat Jul 13, 2019 3:11 pm
Erni24 wrote:
Sat Jul 13, 2019 9:54 am
Version: 0.19.17349 (Git) AppImage
Yea, it's the dev version, @bernd
:oops: my misstake
User avatar
bernd
Posts: 8046
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Requested property: [Material], not found

Postby bernd » Mon Jul 15, 2019 4:25 am

Erni24 wrote:
Sun Jul 14, 2019 4:03 pm
next step...

if i put

Code: Select all

Relative Permittivity = 1.00058986
into (for instance) Air.FCMat file, the material section in case.sif is written. Seems to be, the material files for dielectric materials need an improvement.
this shoul be catched in elmer writer somehow.

About the mat files ... Would you edit all fluid materials in this regard?