Skip to content

Commit

Permalink
0225
Browse files Browse the repository at this point in the history
  • Loading branch information
tian50 committed Feb 25, 2021
1 parent 1247038 commit cb8c324
Show file tree
Hide file tree
Showing 3 changed files with 78 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
1.2.0

- Added separated classes of beam, shell properties, inherited from MaterialSection
15 changes: 15 additions & 0 deletions ms/beam2.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import numpy as np
import msgpi.sg as sg


class Beam(object):
"""[summary]
Parameters
----------
object : [type]
[description]
"""

def __init(self):
self.name = ''
60 changes: 60 additions & 0 deletions sg.py
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,66 @@ def offsetBeamRefCenter(self, offset_x2, offset_x3):



class BeamProperty(MaterialSection):
"""A beam property class (smdim = 1)
Parameters
----------
MaterialSection : [type]
[description]
label : str
Label of the property that will be returned.
Mass
* msijo - Entry (i, j) of the 6x6 mass matrix at the origin
* msijc - Entry (i, j) of the 6x6 mass matrix at the mass center
* mpl - Mass per unit length
* mmoi1/mmoi2/mmoi3 - Mass moment of inertia about x1/x2/x3 axis
Stiffness
* stfijc - Entry (i, j) of the 4x4 classical stiffness matrix
* stfijr - Entry (i, j) of the 6x6 refined stiffness matrix
* eac/ear - Axial stiffness of the classical/refined model
* gjc/gjr - Torsional stiffness of the classical/refined model
* ei2c/eifc/ei2r/eifr - Bending stiffness around x2 (flapwise) of the classical/refined model
* ei3c/eicc/ei3r/eicr - Bending stiffness around x3 (chordwise or lead-lag) of the classical/refined model
Compliance
* cmpijc - Entry (i, j) of the 4x4 classical compliance matrix
* cmpijr - Entry (i, j) of the 6x6 refined compliance matrix
Centers
* mcy/mc2 - y (or x2) component of the mass center
* mcz/mc3 - z (or x3) component of the mass center
* tcy/tc2 - y (or x2) component of the tension center
* tcz/tc3 - z (or x3) component of the tension center
* scy/sc2 - y (or x2) component of the shear center
* scz/sc3 - z (or x3) component of the shear center
Returns
-------
[type]
[description]
"""

def __init__(self):
#: list of floats: (beam model) Neutral axes/Tension center. [x1, x2, x3]
self.tension_center = None
#: list of floats: (beam model) Elastic axis/Shear center. [x1, x2, x3]
self.shear_center = None









class StructureGene(object):
""" A finite element level structure gene model in the theory of MSG.
Expand Down

0 comments on commit cb8c324

Please sign in to comment.