OpenSees, the Open System for Earthquake Engineering Simulation
Moderator: bernd
Forum rules
and Helpful information for the FEM forum
and Helpful information for the FEM forum
Re: OpenSees, the Open System for Earthquake Engineering Simulation
Would you like to add it generally to a specific material? Means all the time you use this material or you open this material card the shear modulus is given.
Would you like to add it for a material which is part of a FreeCAD FEM analysis file?
Would you like to add it for a material which is part of a FreeCAD FEM analysis file?
- ebrahim raeyat
- Posts: 621
- Joined: Sun Sep 09, 2018 7:00 pm
- Location: Iran
- Contact:
Re: OpenSees, the Open System for Earthquake Engineering Simulation
yes, I want to obtain it in my analysis, I don't want to change it generally in Freecad.
Re: OpenSees, the Open System for Earthquake Engineering Simulation
works great here ...
- start FreeCAD
- open a material inside a analysis
- edit shear modulus with material editor (as shown in your screen)
- access material parameter in Python
example attached, open file run code:
- start FreeCAD
- open a material inside a analysis
- edit shear modulus with material editor (as shown in your screen)
- access material parameter in Python
example attached, open file run code:
Code: Select all
App.ActiveDocument.MechanicalSolidMaterial.Material['ShearModulus']
Code: Select all
>>>
>>> App.ActiveDocument.MechanicalSolidMaterial.Material['ShearModulus']
'300 kPa'
>>>
- Attachments
-
- femanalysis_material_with_shearmodulus1.FCStd
- (7.87 KiB) Downloaded 57 times
- ebrahim raeyat
- Posts: 621
- Joined: Sun Sep 09, 2018 7:00 pm
- Location: Iran
- Contact:
Re: OpenSees, the Open System for Earthquake Engineering Simulation
I made it, everything is ok, but when I want to create an input file, it takes me this error:
Code: Select all
File "/home/ebi/freecads/freecad-build/Mod/Fem/femsolver/opensees/writer.py", line 131, in write_opensees_input_file
self.get_element_sets_material_and_femelement_type()
File "/home/ebi/freecads/freecad-build/Mod/Fem/femsolver/writerbase.py", line 501, in get_element_sets_material_and_femelement_type
self.get_element_rotation1D_elements()
File "/home/ebi/freecads/freecad-build/Mod/Fem/femsolver/writerbase.py", line 416, in get_element_rotation1D_elements
self.theshape
AttributeError: 'FemInputWriterOpenSees' object has no attribute 'theshape'
Re: OpenSees, the Open System for Earthquake Engineering Simulation
I may know what the problem is. Do you have a branch to tes with? Your opensees branch is nor uptodate?!
- ebrahim raeyat
- Posts: 621
- Joined: Sun Sep 09, 2018 7:00 pm
- Location: Iran
- Contact:
Re: OpenSees, the Open System for Earthquake Engineering Simulation
I must commit it to my opensees branch? I sent you a PR, but let me ask you a question:
how can I work on two branches simultaneously, for example when I working on adding example, I want also to work on adding shell element to opensees, how can I do that? if I checkout one branch that did not complete it's changes, git take me an error. thanks.
Re: OpenSees, the Open System for Earthquake Engineering Simulation
if you work on two new features use two branches. To checkout another branch you need to commit your changes.
Cherry-pick or a rebase can be used to move changes from branch to the other.
BTW: commit often with les changes.
Cherry-pick or a rebase can be used to move changes from branch to the other.
BTW: commit often with les changes.
Re: OpenSees, the Open System for Earthquake Engineering Simulation
It's also possible to git stash (if you're not ready to commit)
Alone you go faster. Together we go farther
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
Please mark thread [Solved]
Want to contribute back to FC? Checkout:
'good first issues' | Open TODOs and FIXMEs | How to Help FreeCAD | How to report Bugs
- ebrahim raeyat
- Posts: 621
- Joined: Sun Sep 09, 2018 7:00 pm
- Location: Iran
- Contact:
Re: OpenSees, the Open System for Earthquake Engineering Simulation
thanks, I will examine it.
- ebrahim raeyat
- Posts: 621
- Joined: Sun Sep 09, 2018 7:00 pm
- Location: Iran
- Contact:
Re: OpenSees, the Open System for Earthquake Engineering Simulation
can you detect the problem?