Concrete branch ready for testing

About the development of the FEM module/workbench.

Moderator: bernd

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

Re: Concrete branch ready for testing

Postby bernd » Thu Apr 04, 2019 8:52 pm

HarryvL wrote:
Thu Apr 04, 2019 7:43 pm
bernd wrote:
Thu Apr 04, 2019 7:12 pm
there you have a normal material object and nog a reinfoced material object.
Yes, but I cannot do anything with that object. Do I still have to use Python to link material objects to the reinforced material object?
https://forum.freecadweb.org/viewtopic. ... 20#p297144
User avatar
bernd
Posts: 8353
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Concrete branch ready for testing

Postby bernd » Thu Apr 04, 2019 8:53 pm

User avatar
HarryvL
Posts: 1051
Joined: Sat Jan 06, 2018 7:38 pm

Re: Concrete branch ready for testing

Postby HarryvL » Fri Apr 05, 2019 3:55 am

bernd wrote:
Thu Apr 04, 2019 8:53 pm
added the unit test ... https://github.com/berndhahnebach/FreeC ... 85dc1681f5
:D
User avatar
bernd
Posts: 8353
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Concrete branch ready for testing

Postby bernd » Mon Apr 08, 2019 12:57 pm

added a task panel and two materials, concrete-harry and reinforcement-harry. We need to replace them but for testing I found this useful :D

Would you give all this femconcrete another try? May be add material from scratch to one of your example file.
User avatar
HarryvL
Posts: 1051
Joined: Sat Jan 06, 2018 7:38 pm

Re: Concrete branch ready for testing

Postby HarryvL » Tue Apr 09, 2019 4:23 am

OK will do
User avatar
HarryvL
Posts: 1051
Joined: Sat Jan 06, 2018 7:38 pm

Re: Concrete branch ready for testing

Postby HarryvL » Tue Apr 09, 2019 5:23 am

git pull -X https://github.com/bernhahnebach/FreeCAD_bhb femconcrete

didn't work for me. I get

Code: Select all

fatal: 'femconcrete' does not appear to be a git repository
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
I am sure I am doing something stupid again.
User avatar
Kunda1
Posts: 5576
Joined: Thu Jan 05, 2017 9:03 pm

Re: Concrete branch ready for testing

Postby Kunda1 » Tue Apr 09, 2019 4:54 pm

HarryvL wrote:
Tue Apr 09, 2019 5:23 am
git pull -X https://github.com/berndhahnebach/FreeCAD_bhb femconcrete
berndhahnebach :lol:
https://github.com/berndhahnebach/FreeCAD_bhb
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
User avatar
bernd
Posts: 8353
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: Concrete branch ready for testing

Postby bernd » Tue Apr 09, 2019 5:05 pm

harry did you sell the d of mine ... ? Hopefully you some good money for this :lol: :mrgreen:
User avatar
HarryvL
Posts: 1051
Joined: Sat Jan 06, 2018 7:38 pm

Re: Concrete branch ready for testing

Postby HarryvL » Tue Apr 09, 2019 6:51 pm

:shock: :lol:
User avatar
HarryvL
Posts: 1051
Joined: Sat Jan 06, 2018 7:38 pm

Re: Concrete branch ready for testing

Postby HarryvL » Wed Apr 10, 2019 4:09 am

Hi Bernd, I did a quick test (file attached) and found the following:

1) It looks like you added back in a standard directory for CCX file saving. However when you change that to your own directory it doesn't stick. So next time you want to save you get sent back to the default.
2) Concrete friction angle is not set to a default value. If left blank then FC crashes upon post processing
3) There is no unit specified for friction angle, so it is unclear if you need to put it in degrees or radians. If only a value is added (say 30) then again post processing crashes with:

Code: Select all

 File "/home/harry/FC_Dev/Build/Mod/Fem/femresult/resulttools.py", line 381, in add_principal_stress_reinforced
    matrix_af = float(FreeCAD.Units.Quantity(obj.Material['AngleOfFriction']).getValueAs('rad'))
ValueError: Unit mismatch
4) Same issue as 2) above for yield strength of steel
5) If I manually correct the above (add friction angle 0.3 rad and yield strength 500 MPa) then I still get a crash in post processing:

Code: Select all

  File "/home/harry/FC_Dev/Build/Mod/Fem/femresult/resulttools.py", line 384, in add_principal_stress_reinforced
    reinforce_ratio = float(obj.Reinforcement['ReinforcementRatio'])
KeyError: 'ReinforcementRatio'
Frame2D_BHB.FCStd
(354.65 KiB) Downloaded 4 times
OS: Ubuntu 16.04.5 LTS (Unity/ubuntu)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16428 (Git)
Build type: Unknown
Branch: femconcrete
Hash: a82fe5a724640e64383038eba43066cc07b88dce
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)