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
Hi ebrahim,
YEAH works great here too. Understood your code now. I had never used multiple inheritance before. It does write the Heading, Materials, Nodes, Elements and Loads for me.
BTW: added the opensees solver to the cantilever example https://github.com/berndhahnebach/FreeC ... 1eb1bf994b and still had to make some small changes to get it writing the file https://github.com/berndhahnebach/FreeC ... bf6a29ff38 Find all in https://github.com/berndhahnebach/FreeC ... emopensees
cheers bernd
YEAH works great here too. Understood your code now. I had never used multiple inheritance before. It does write the Heading, Materials, Nodes, Elements and Loads for me.
BTW: added the opensees solver to the cantilever example https://github.com/berndhahnebach/FreeC ... 1eb1bf994b and still had to make some small changes to get it writing the file https://github.com/berndhahnebach/FreeC ... bf6a29ff38 Find all in https://github.com/berndhahnebach/FreeC ... emopensees
cheers bernd
- ebrahim raeyat
- Posts: 625
- Joined: Sun Sep 09, 2018 7:00 pm
- Location: Iran
- Contact:
Re: OpenSees, the Open System for Earthquake Engineering Simulation
I had been take this code from compas-fea repo!, although it is not hard to write it.bernd wrote: ↑Sat Mar 21, 2020 8:29 pm Hi ebrahim,
YEAH works great here too. Understood your code now. I had never used multiple inheritance before. It does write the Heading, Materials, Nodes, Elements and Loads for me.
BTW: added the opensees solver to the cantilever example https://github.com/berndhahnebach/FreeC ... 1eb1bf994b and still had to make some small changes to get it writing the file https://github.com/berndhahnebach/FreeC ... bf6a29ff38 Find all in https://github.com/berndhahnebach/FreeC ... emopensees
cheers bernd
BTW: I don't understand how can i give your code and apply it in my code. although i can add it by hand, but i want to learn how? I asked it in this related topic.
thanks bernd.
- ebrahim raeyat
- Posts: 625
- Joined: Sun Sep 09, 2018 7:00 pm
- Location: Iran
- Contact:
Re: OpenSees, the Open System for Earthquake Engineering Simulation
I will try to apply this rules. I use sublime text and i have linting for automatic code pep8 style.bernd wrote: ↑Sat Mar 21, 2020 8:54 pm Do you know about this one https://github.com/FreeCAD/FreeCAD/blob ... entions.md ?
Re: OpenSees, the Open System for Earthquake Engineering Simulation
great !
another hint. Mainly double quotes are used for strings in FEM.
another hint. Mainly double quotes are used for strings in FEM.
Re: OpenSees, the Open System for Earthquake Engineering Simulation
https://forum.freecadweb.org/viewtopic. ... 0&p=379259ebrahim raeyat wrote: ↑Sat Mar 21, 2020 11:29 pm I had been take this code from compas-fea repo!, although it is not hard to write it.
- ebrahim raeyat
- Posts: 625
- Joined: Sun Sep 09, 2018 7:00 pm
- Location: Iran
- Contact:
Re: OpenSees, the Open System for Earthquake Engineering Simulation
thank, I will apply that.
Re: OpenSees, the Open System for Earthquake Engineering Simulation
Are you on Linux or on Windows?
- ebrahim raeyat
- Posts: 625
- Joined: Sun Sep 09, 2018 7:00 pm
- Location: Iran
- Contact:
Re: OpenSees, the Open System for Earthquake Engineering Simulation
you could install codespell and flake8 and run the following comands in your bash n the FreeCAD source dirctory to check code quality in FEM
Code: Select all
codespell -q 2 -S *.ts -L childs,dof,dum,methode,nd,normaly,uint,vertexes,freez src/Mod/Fem/
find src/Mod/Fem/ -name "*\.py" | grep -v InitGui.py | grep -v tokrules.py | xargs -I [] flake8 --ignore=E266,E722,W503 --max-line-length=100 []
Code: Select all
$
$ codespell -q 2 -S *.ts -L childs,dof,dum,methode,nd,normaly,uint,vertexes,freez src/Mod/Fem/
src/Mod/Fem/femsolver/z88/writer.py:354: Programm ==> Program
$ find src/Mod/Fem/ -name "*\.py" | grep -v InitGui.py | grep -v tokrules.py | grep -v TestFem.py | xargs -I [] flake8 --ignore=E266,E722,W503 --max-line-length=100 []
src/Mod/Fem/femtest/app/test_ccxtools.py:180:9: F841 local variable 'test_name' is assigned to but never used
src/Mod/Fem/femtest/app/test_ccxtools.py:181:9: F841 local variable 'base_name' is assigned to but never used
src/Mod/Fem/femtest/app/test_ccxtools.py:182:9: F841 local variable 'analysis_dir' is assigned to but never used
$