If it is not OpenSource I will not do any dev in my spare time in this regard. I would recommend to use the TCL interface than. Made a issue to bring light in the darkness ... https://github.com/OpenSeesPy-pip/opens ... /issues/11shahram10715 wrote: ↑Fri Feb 28, 2020 10:06 amIts a good choice but we must consider that this package is not published open source yet.ebrahim raeyat wrote: ↑Wed Feb 26, 2020 9:22 pm thanks to openseespy, we can write opensees input file in python format and benefit from all of python library!
https://openseespydoc.readthedocs.io/en/latest/
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
Re: OpenSees, the Open System for Earthquake Engineering Simulation
See https://github.com/FreeCAD/FreeCAD_Cond ... /README.mdshahram10715 wrote: ↑Fri Feb 28, 2020 10:03 amI'm not quite sure but I think it is dedicated to python packages only.
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
Re: OpenSees, the Open System for Earthquake Engineering Simulation
according to a post on the issue OpenSeesPy is opensource and included in main opensees.bernd wrote: ↑Fri Feb 28, 2020 11:04 amIf it is not OpenSource I will not do any dev in my spare time in this regard. I would recommend to use the TCL interface than. Made a issue to bring light in the darkness ... https://github.com/OpenSeesPy-pip/opens ... /issues/11shahram10715 wrote: ↑Fri Feb 28, 2020 10:06 amIts a good choice but we must consider that this package is not published open source yet.ebrahim raeyat wrote: ↑Wed Feb 26, 2020 9:22 pm thanks to openseespy, we can write opensees input file in python format and benefit from all of python library!
https://openseespydoc.readthedocs.io/en/latest/
Would be good if one you you both opensees guys would test this OpenSeesPy and could give some feedback. Python is the languarge we speak, thus it would be cool to use this one.
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
yes, it is in main source of opensees:bernd wrote: ↑Fri Feb 28, 2020 3:28 pm according to a post on the issue OpenSeesPy is opensource and included in main opensees.
Would be good if one you you both opensees guys would test this OpenSeesPy and could give some feedback. Python is the languarge we speak, thus it would be cool to use this one.
cheers bernd
i will try to prepare an example for openseespy, these are available:
https://openseespydoc.readthedocs.io/en ... mples.html
- kkremitzki
- Veteran
- Posts: 2517
- Joined: Thu Mar 03, 2016 9:52 pm
- Location: Illinois
Re: OpenSees, the Open System for Earthquake Engineering Simulation
OpenSees' license
is not open source because of its non-commercial restriction, failing #6 of The Open Source Definition, "6. No Discrimination Against Fields of Endeavor". It's source-available. With its current license it will never, for example, be able to be distributed in Debian.The Regents grants permission, without fee and without a written license agreement, for (a) use,
reproduction, modification, and distribution of this software and its documentation by educational,
research, and non-profit entities for noncommercial purposes only;
- ebrahim raeyat
- Posts: 625
- Joined: Sun Sep 09, 2018 7:00 pm
- Location: Iran
- Contact:
Re: OpenSees, the Open System for Earthquake Engineering Simulation
according to this issue on openseespy-pip i changed the name of element, but new question:
node numbering for C3D20 element is different than 20NodeBrick element in opensees, i map those node number, but it gives me this error:
now, my question is: what is principle axis in C3D20 element?
i examin it in three state, first no change between them, one for as is in picture and another for axis that i assume, but in those state gives me that error. this is my python script that convert node numbering:
node numbering for C3D20 element is different than 20NodeBrick element in opensees, i map those node number, but it gives me this error:
Code: Select all
Twenty_Node_Brick::Jacobian3d - Non-positive Jacobian: -1.73472e-11
0 -8.260282e-01 -8.260282e-01 -8.260282e-01 2.261895e-01
1 -3.936492e-01 -2.745967e-02 -2.745967e-02 -1.087298e-01
2 -1.274597e-01 -1.274597e-01 6.350833e-03 -3.127017e-02
3 -2.745967e-02 -3.936492e-01 -2.745967e-02 -1.087298e-01
4 -2.745967e-02 -2.745967e-02 -3.936492e-01 -1.087298e-01
5 -1.274597e-01 6.350833e-03 -1.274597e-01 -3.127017e-02
6 -2.602817e-02 -2.602817e-02 -2.602817e-02 -6.189500e-03
7 6.350833e-03 -1.274597e-01 -1.274597e-01 -3.127017e-02
8 1.219677e+00 -1.774597e-01 -1.774597e-01 3.149193e-01
9 1.774597e-01 1.549193e-01 -2.254033e-02 4.000000e-02
10 1.549193e-01 1.774597e-01 -2.254033e-02 4.000000e-02
11 -1.774597e-01 1.219677e+00 -1.774597e-01 3.149193e-01
12 1.549193e-01 -2.254033e-02 1.774597e-01 4.000000e-02
13 2.254033e-02 1.967734e-02 2.254033e-02 5.080666e-03
14 1.967734e-02 2.254033e-02 2.254033e-02 5.080666e-03
15 -2.254033e-02 1.549193e-01 1.774597e-01 4.000000e-02
16 -1.774597e-01 -1.774597e-01 1.219677e+00 3.149193e-01
17 1.774597e-01 -2.254033e-02 1.549193e-01 4.000000e-02
18 2.254033e-02 2.254033e-02 1.967734e-02 5.080666e-03
19 -2.254033e-02 1.774597e-01 1.549193e-01 4.000000e-02
i examin it in three state, first no change between them, one for as is in picture and another for axis that i assume, but in those state gives me that error. this is my python script that convert node numbering:
Code: Select all
inpfile = open('/home/ebi/Box_Mesh001.inp', 'r')
line = inpfile.readline()
while not line.startswith("** Volume elements"):
line = inpfile.readline()
continue
inpfile.readline()
line = inpfile.readline()
with open('/home/ebi/opensees/openseespy/element.tcl', 'w') as pyfile:
while not line.startswith('*'):
try:
num, *nodes = line.split(',')[:-1]
line = inpfile.readline()
nodes2 = line.split(',')[:-1]
n = nodes + nodes2
maps = [7, 8, 5, 6, 3, 4, 1, 2, 15, 16, 13, 14, 11, 12, 9, 10, 19, 20, 17, 18]
node = ''.join(f'{n[i - 1]} ' for i in maps)
# node = ''.join(f'{i} ' for i in n)
pyfile.write(f"element 20NodeBrick {num} {node} 1\n")
line = inpfile.readline()
except:
break
Re: OpenSees, the Open System for Earthquake Engineering Simulation
have you read FEM_Mesh and FEM_Mesh_CalculiX they may help
Re: OpenSees, the Open System for Earthquake Engineering Simulation
Thanks reminding about this!kkremitzki wrote: ↑Fri Feb 28, 2020 11:25 pm OpenSees' license
is not open source because of its non-commercial restriction, failing #6 of The Open Source Definition, "6. No Discrimination Against Fields of Endeavor". It's source-available. With its current license it will never, for example, be able to be distributed in Debian.The Regents grants permission, without fee and without a written license agreement, for (a) use,
reproduction, modification, and distribution of this software and its documentation by educational,
research, and non-profit entities for noncommercial purposes only;
- ebrahim raeyat
- Posts: 625
- Joined: Sun Sep 09, 2018 7:00 pm
- Location: Iran
- Contact:
Re: OpenSees, the Open System for Earthquake Engineering Simulation
oops, i mistake this section in convert .inp file to opensees format:
Code: Select all
xyz[-1] = xyz[-1].rstrip("\n")
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
this is my first attempt to visualize 3D cantilever beam with openseespy, it's cool: