OpenSees, the Open System for Earthquake Engineering Simulation

About the development of the FEM module/workbench.

Moderator: bernd

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

Re: OpenSees, the Open System for Earthquake Engineering Simulation

Post by bernd »

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
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: OpenSees, the Open System for Earthquake Engineering Simulation

Post by bernd »

User avatar
ebrahim raeyat
Posts: 621
Joined: Sun Sep 09, 2018 7:00 pm
Location: Iran
Contact:

Re: OpenSees, the Open System for Earthquake Engineering Simulation

Post by ebrahim raeyat »

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
I had been take this code from compas-fea repo!, although it is not hard to write it.

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.
User avatar
ebrahim raeyat
Posts: 621
Joined: Sun Sep 09, 2018 7:00 pm
Location: Iran
Contact:

Re: OpenSees, the Open System for Earthquake Engineering Simulation

Post by ebrahim raeyat »

bernd wrote: Sat Mar 21, 2020 8:54 pm Do you know about this one https://github.com/FreeCAD/FreeCAD/blob ... entions.md ?
I will try to apply this rules. I use sublime text and i have linting for automatic code pep8 style.
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: OpenSees, the Open System for Earthquake Engineering Simulation

Post by bernd »

great !

another hint. Mainly double quotes are used for strings in FEM.
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: OpenSees, the Open System for Earthquake Engineering Simulation

Post by bernd »

ebrahim 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.
https://forum.freecadweb.org/viewtopic. ... 0&p=379259
User avatar
ebrahim raeyat
Posts: 621
Joined: Sun Sep 09, 2018 7:00 pm
Location: Iran
Contact:

Re: OpenSees, the Open System for Earthquake Engineering Simulation

Post by ebrahim raeyat »

bernd wrote: Sun Mar 22, 2020 8:02 am great !

another hint. Mainly double quotes are used for strings in FEM.
thank, I will apply that.
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: OpenSees, the Open System for Earthquake Engineering Simulation

Post by bernd »

Are you on Linux or on Windows?
User avatar
ebrahim raeyat
Posts: 621
Joined: Sun Sep 09, 2018 7:00 pm
Location: Iran
Contact:

Re: OpenSees, the Open System for Earthquake Engineering Simulation

Post by ebrahim raeyat »

bernd wrote: Wed Mar 25, 2020 12:31 pm Are you on Linux or on Windows?
I am on ubuntu linux , why?
User avatar
bernd
Veteran
Posts: 12851
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: OpenSees, the Open System for Earthquake Engineering Simulation

Post by bernd »

ebrahim raeyat wrote: Wed Mar 25, 2020 5:43 pm
bernd wrote: Wed Mar 25, 2020 12:31 pm Are you on Linux or on Windows?
I am on ubuntu linux , why?
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 []
on master Branch They give the following accepted errors ATM

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
$
Post Reply