Materials dialogue problem

About the development of the FEM module/workbench.

Moderator: bernd

UR_
Veteran
Posts: 1355
Joined: Tue Jan 03, 2017 8:42 pm

Re: Materials dialogue problem

Post by UR_ »

Found another little FCMat file destroyer

workflow:
- copy attached FCMat file to your Material folder (works with any other external FCMat file too.)
- start FreeCAD and load 3D FEM example from start page
- open task view of "SolidMaterial"
- select previously "installed" AlCuMgPb from drop down menu
- in Young's Modulus edit box 72000 GPa appears
- change it to 70000 GPa
- hit button [save customed material]
- select AlCuMgPb.FCMat as file name
- confirm overwrite
- open just overwritten AlCuMgPb.FCMat with your favorite text editor and watch all the broken data

AlCuMgPb.FCMat.zip
(492 Bytes) Downloaded 35 times
please don't forget to unzip before


tested with:
OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.13780 (Git)
Build type: Release
Branch: master
Hash: 9fb122008b99ea2d30ed3e6f7cc93a3b7717cce5
Python version: 2.7.14
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.2.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: Materials dialogue problem

Post by bernd »

we really need to rethink how materials are handled. We need a far more robust system. I've an idea. I will open a new topic
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Materials dialogue problem

Post by bernd »

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

Re: Materials dialogue problem

Post by bernd »

UR_ wrote: Thu May 24, 2018 7:01 pm Found another little FCMat file destroyer

workflow:
- copy attached FCMat file to your Material folder (works with any other external FCMat file too.)
- start FreeCAD and load 3D FEM example from start page
- open task view of "SolidMaterial"
- select previously "installed" AlCuMgPb from drop down menu
- in Young's Modulus edit box 72000 GPa appears
- change it to 70000 GPa
- hit button [save customed material]
- select AlCuMgPb.FCMat as file name
- confirm overwrite
- open just overwritten AlCuMgPb.FCMat with your favorite text editor and watch all the broken data
saving mat files has been totally deleted from FEM material task dialog. Instead it possible to use the MaterialEditor directly from the task panel. This editor has a button to save and load material cards. The big advantage is, we have one code for all workbenches to load and save mat files. use 0.18.13882 or newer

bernd
User avatar
HarryvL
Veteran
Posts: 1335
Joined: Sat Jan 06, 2018 7:38 pm
Location: Netherlands

Re: Materials dialogue problem

Post by HarryvL »

While playing with the material task panel I hit a few problems with the behaviour of the input fields and wonder if I am using the latest version of this recent development, i.e. (EDIT: this is for concrete):

> upon entering of the panel the density is set at 2400.00 kg/m^3. When putting the cursor at the first position and pressing <Delete> the cursor jumps to the end of the field. The same happens after entering new digits at the start of the field
> The default for Young's modulus is 32.00 GPa. When clearing this field by highlighting <Double click> and <Delete> the field gets automatically filled with 0.00 Pa with the cursor jumping to the end.
> A strange handling of numbers by splitting the number in two parts (before and after the decimal point)?

Am I doing something wrong?

OS: Ubuntu 16.04.4 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.13980 (Git)
Build type: Debug
Branch: trajectories
Hash: fac95438864d4f617dd7702016cbe1694a1a3868
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Locale: English/UnitedStates (en_US)
Last edited by HarryvL on Sun Jun 24, 2018 10:22 pm, edited 1 time in total.
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: Materials dialogue problem

Post by bernd »

Code: Select all

ui=Gui.UiLoader()
w=ui.createWidget("Gui::InputField")
w.show()
Code above opens a simple FreeCAD Gui::InputField in a small pop up. Does this have the same problems for you?
User avatar
HarryvL
Veteran
Posts: 1335
Joined: Sat Jan 06, 2018 7:38 pm
Location: Netherlands

Re: Materials dialogue problem

Post by HarryvL »

this one?:

Screenshot from 2018-06-29 07-15-57.png
Screenshot from 2018-06-29 07-15-57.png (5.47 KiB) Viewed 858 times

That doesn't have the cursor jumping to the end, but still the funny split behavior (before and after decimal point)
User avatar
HarryvL
Veteran
Posts: 1335
Joined: Sat Jan 06, 2018 7:38 pm
Location: Netherlands

Re: Materials dialogue problem

Post by HarryvL »

I mean, it looks like the number is split in two parts. double clicking only selects part of the number (before or after decimal point)
User avatar
HarryvL
Veteran
Posts: 1335
Joined: Sat Jan 06, 2018 7:38 pm
Location: Netherlands

Re: Materials dialogue problem

Post by HarryvL »

Here an example of what happens when entering numbers:

phpBB [video]
Post Reply