stuck in analysis

About the development of the FEM module/workbench.

Moderator: bernd

Post Reply
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

stuck in analysis

Post by Jee-Bee »

I was curious about the iterations used in thermo mechanical.
so i created a model but aperently one with wrong material properties... now when double click at material it gives
this messages in report view

Code: Select all

Previously used material cannot be found in material directories. Using transient material.
Traceback (most recent call last):
  File "/Applications/FreeCAD.app/Contents/Mod/Fem/_ViewProviderMechanicalMaterial.py", line 55, in setEdit
    taskd = _TaskPanelMechanicalMaterial._TaskPanelMechanicalMaterial(self.Object)
  File "/Applications/FreeCAD.app/Contents/Mod/Fem/_TaskPanelMechanicalMaterial.py", line 79, in __init__
    self.choose_material(index)
  File "/Applications/FreeCAD.app/Contents/Mod/Fem/_TaskPanelMechanicalMaterial.py", line 223, in choose_material
    self.set_mat_params_in_combo_box(self.material)
  File "/Applications/FreeCAD.app/Contents/Mod/Fem/_TaskPanelMechanicalMaterial.py", line 263, in set_mat_params_in_combo_box
    tec_with_new_unit = tec.getValueAs(tec_new_unit)
<type 'exceptions.ValueError'>: Unit mismatch
Active Task Dialog found! Please close this one first!
the firts is just wrong material i think... but the last line say something about closing dialog ... but i don't have an open dialog. the same error is given when double clicking calculix solver
Attachments
Beam_temp.FCStd
(9.76 KiB) Downloaded 21 times
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: stuck in analysis

Post by bernd »

would you post a file and the exact steps to reproduce.
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: stuck in analysis

Post by Jee-Bee »

File is attached in original message (sorry 2 step)
steps to reproduce
  • open file
  • activate analysis
  • double click on material to change properties
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: stuck in analysis

Post by bernd »

Jee-Bee wrote:File is attached in original message (sorry 2 step)
steps to reproduce
  • open file
  • activate analysis
  • double click on material to change properties
I can reproduce it. Watch the report widget during file loading. It says:

Code: Select all

<unknown exception traceback><type 'exceptions.ImportError'>: No module named _MechanicalMaterial
<unknown exception traceback><type 'exceptions.ImportError'>: No module named _ViewProviderMechanicalMaterial
Sure because there are no longer modules _MechanicalMaterial and _ViewProviderMechanicalMaterial in up to date FreeCAD FEM because they have been replaced by other modules during development. See git commit 739fe3a

Just delete the old material object before you make a double click on it by right click delete and make a new material.

bernd

OS: Debian GNU/Linux 8.7 (jessie)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.9835 (Git)
Build type: Unknown
Branch: master
Hash: 175d17764af0369050dcf371822ef95d5b5efe9e
Python version: 2.7.9
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 7.0.0
Jee-Bee
Veteran
Posts: 2566
Joined: Tue Jun 16, 2015 10:32 am
Location: Netherlands

Re: stuck in analysis

Post by Jee-Bee »

oke thanks i'll check it
Post Reply