pyNastran
0.5.0
pyNastran BDF Reader/Writer, OP2 Parser, and GUI
|
Functions | |
def | bar |
The purpose of this code is to automatically generate the moment of inertia equations. | |
def | cross |
y b1 ^ b3 | b2 a---p1--b | | | h1 k--l | c-----d | | | | o---------p2-> x h2 | | j--i f-----e | | h3 | | h-------g | |
def | box |
y ^ | w1 | w2 w3 | a-----p1------b | | | h1 | e--|----f | | | | | | | | | | | h2 | | o-------|--> x | | | | | h-------g | | | h3 d-------------c | |
def | Box1 |
y ^ | w1 | w2 w3 | a-----p1------b | | | h1 | e--|----f | | | | | | | | | | | h2 | | o-------|--> x | | | | | h-------g | | | h3 d-------------c | |
def | T |
y ^ | a---k-p1-l---b | | | h1 | | | h---g | d---c | | | | o----------> x | | | | h2 j f----e i w1 w2 w3 | |
def | Ixx |
from http://en.wikipedia.org/wiki/Second_moment_of_area J_{xx} = {1}{12} {i = 1}^{n-1} ( y_i^2 + y_i y_{i+1} + y_{i+1}^2 ) a_i J_{yy} = {1}{12} {i = 1}^{n-1} ( x_i^2 + x_i x_{i+1} + x_{i+1}^2 ) a_i J_{xy} = {1}{24} {i = 1}^{n-1} ( x_i y_{i+1} + 2 x_i y_i + 2 x_{i+1} y_{i+1} + x_{i+1} y_i ) a_i | |
def | add |
def | sub |
def | subx |
def | suby |
def | addx |
def | addy |
def inertiaFormulas.bar | ( | ) |
The purpose of this code is to automatically generate the moment of inertia equations.
only the locations of The nodes of the elements are required, as well as the triangular sections that are generated. For example, [1,a,b] means a positive triangular section (+1) with the 3 nodes at a, b, and <0,0>. This is easily understood if the triangle creates an area. Some are positive, some are negative, but if you sum them all up you get the total area of the section. This allows you to generate the moments of inertia for complex sections.
y ^ | 1----|----2 | | | | | | h | o----------> x | | | | 4---------3 b
b = w1 h = h1
Definition at line 55 of file inertiaFormulas.py.
def inertiaFormulas.cross | ( | ) |
y b1 ^ b3 | b2 a---p1--b | | | h1 k--l | c-----d | | | | o---------p2-> x h2 | | j--i f-----e | | h3 | | h-------g
Definition at line 98 of file inertiaFormulas.py.
References addx(), addy(), box(), Ixx(), subx(), and suby().
Referenced by pyNastran::general::generalMath.Area(), pyNastran::general::generalMath.AreaNormal(), bar(), pyNastran.converters.panair.panairGridPatch.PanairPatch.getPanelArea(), pyNastran.converters.panair.panairGridPatch.PanairPatch.getPanelAreaNormal(), pyNastran.converters.panair.panairGridPatch.PanairPatch.getPanelProperties(), pyNastran.converters.panair.panairGridPatch.PanairPatch.getSubpanelProperties(), pyNastran.bdf.cards.elements.shell.CTRIA3.Interp(), pyNastran::general::generalMath.solveTridag(), pyNastran.bdf.bdf_Methods.BDFMethods.sumMoments(), and pyNastran::bdf::cards::elements::solid.Volume4().
def inertiaFormulas.box | ( | ) |
y ^ | w1 | w2 w3 | a-----p1------b | | | h1 | e--|----f | | | | | | | | | | | h2 | | o-------|--> x | | | | | h-------g | | | h3 d-------------c
# given #a-d = D2 #(f-g)_y = D3 #d-c = D1 #(g-c)_x = D4
Definition at line 178 of file inertiaFormulas.py.
References addx(), Box1(), Ixx(), subx(), and suby().
Referenced by cross().
def inertiaFormulas.Box1 | ( | ) |
y ^ | w1 | w2 w3 | a-----p1------b | | | h1 | e--|----f | | | | | | | | | | | h2 | | o-------|--> x | | | | | h-------g | | | h3 d-------------c
# given #a-b = D1 #a-d = D2
#(b-f)_y = D3 #(g-c)_y = D4 #(g-c)_x = D5 #(d-h)_x = D6
Definition at line 243 of file inertiaFormulas.py.
References addx(), Ixx(), subx(), suby(), and T().
Referenced by box().
def inertiaFormulas.T | ( | ) |
y ^ | a---k-p1-l---b | | | h1 | | | h---g | d---c | | | | o----------> x | | | | h2 j f----e i w1 w2 w3
# given a-b = D1 (b-e)_y = D2 a-h = D3 f-e = D4
Area seems off
Inertias should be relative to the CG
Definition at line 308 of file inertiaFormulas.py.
def inertiaFormulas.Ixx | ( | sections | ) |
from http://en.wikipedia.org/wiki/Second_moment_of_area J_{xx} = {1}{12} {i = 1}^{n-1} ( y_i^2 + y_i y_{i+1} + y_{i+1}^2 ) a_i J_{yy} = {1}{12} {i = 1}^{n-1} ( x_i^2 + x_i x_{i+1} + x_{i+1}^2 ) a_i J_{xy} = {1}{24} {i = 1}^{n-1} ( x_i y_{i+1} + 2 x_i y_i + 2 x_{i+1} y_{i+1} + x_{i+1} y_i ) a_i
Definition at line 353 of file inertiaFormulas.py.
def inertiaFormulas.add | ( | p1, | |
p2, | |||
s1 = 1 , |
|||
s2 = 1 |
|||
) |
def inertiaFormulas.sub | ( | p1, | |
p2 | |||
) |
Definition at line 412 of file inertiaFormulas.py.
References suby().
def inertiaFormulas.subx | ( | p1, | |
p2x | |||
) |
def inertiaFormulas.suby | ( | p1, | |
p2y | |||
) |
def inertiaFormulas.addx | ( | p1, | |
p2x | |||
) |
def inertiaFormulas.addy | ( | p1, | |
p2y | |||
) |