pyNastran
0.5.0
pyNastran BDF Reader/Writer, OP2 Parser, and GUI
|
Functions | |
def | integrateLine |
Integrates a line of length 1.0. | |
def | evaluatePositiveSpline |
def | buildSpline |
builds a cubic spline or 1st order spline if there are less than 3 terms | |
def | integratePositiveLine |
Integrates a line of length 1.0. | |
def | reduceMatrix |
takes a list of ids and removes those rows and cols | |
def | isListRanged |
Returns true if a<= x <= b or a-x < 0 < b-x. | |
def | isFloatRanged |
Returns true if a<= x <= b or a-x < 0 < b-x. | |
def | printAnnotatedMatrix |
takes a list/dictionary and annotates the row number with that value indicies go from 0 to N | |
def | printMatrix |
def | ListPrint |
def | augmentedIdentity |
Creates an Identity Matrix augmented with zeros. | |
def | solveTridag |
def | Area |
def | AreaNormal |
Returns area,unitNormal n = Normal = a x b Area = 1/2 * |a x b| V = <v1,v2,v3> |V| = sqrt(v1^0.5+v2^0.5+v3^0.5) = norm(V) | |
def | Triangle_AreaCentroidNormal |
Returns area,centroid,unitNormal. | |
def | Normal |
finds the unit normal vector of 2 vectors | |
def | Centroid |
returns the centroid of a triangle |
def pyNastran.general.generalMath.integrateLine | ( | x, | |
y | |||
) |
Integrates a line of length 1.0.
x | the independent variable |
y | the dependent variable |
Definition at line 46 of file generalMath.py.
References buildSpline(), evaluatePositiveSpline(), and massMatrix.quad().
Referenced by pyNastran.bdf.cards.properties.bars.IntegratedLineProperty.I22(), and pyNastran.bdf.cards.properties.bars.PBEAML.MassPerLength().
def pyNastran.general.generalMath.evaluatePositiveSpline | ( | x, | |
args | |||
) |
Definition at line 60 of file generalMath.py.
References buildSpline().
Referenced by integrateLine().
def pyNastran.general.generalMath.buildSpline | ( | x, | |
y | |||
) |
builds a cubic spline or 1st order spline if there are less than 3 terms
x | the independent variable |
y | the dependent variable |
Definition at line 72 of file generalMath.py.
References integratePositiveLine().
Referenced by evaluatePositiveSpline(), integrateLine(), and integratePositiveLine().
def pyNastran.general.generalMath.integratePositiveLine | ( | x, | |
y, | |||
minValue = 0. |
|||
) |
Integrates a line of length 1.0.
x | the independent variable |
y | the dependent variable |
Definition at line 85 of file generalMath.py.
References buildSpline(), massMatrix.quad(), and reduceMatrix().
Referenced by pyNastran.bdf.cards.properties.bars.IntegratedLineProperty.Area(), buildSpline(), pyNastran.bdf.cards.properties.bars.IntegratedLineProperty.I11(), pyNastran.bdf.cards.properties.bars.IntegratedLineProperty.I12(), and pyNastran.bdf.cards.properties.bars.IntegratedLineProperty.J().
def pyNastran.general.generalMath.reduceMatrix | ( | matA, | |
nids | |||
) |
takes a list of ids and removes those rows and cols
Definition at line 101 of file generalMath.py.
References isFloatRanged(), and isListRanged().
Referenced by integratePositiveLine().
def pyNastran.general.generalMath.isListRanged | ( | a, | |
List, | |||
b | |||
) |
Returns true if a<= x <= b or a-x < 0 < b-x.
Definition at line 115 of file generalMath.py.
References isFloatRanged().
Referenced by reduceMatrix().
def pyNastran.general.generalMath.isFloatRanged | ( | a, | |
x, | |||
b | |||
) |
Returns true if a<= x <= b or a-x < 0 < b-x.
Definition at line 128 of file generalMath.py.
References printAnnotatedMatrix().
Referenced by isListRanged(), and reduceMatrix().
def pyNastran.general.generalMath.printAnnotatedMatrix | ( | A, | |
rowNames = None , |
|||
tol = 1e-8 |
|||
) |
takes a list/dictionary and annotates the row number with that value indicies go from 0 to N
Definition at line 146 of file generalMath.py.
References ListPrint(), and printMatrix().
Referenced by isFloatRanged().
def pyNastran.general.generalMath.printMatrix | ( | A, | |
tol = 1e-8 |
|||
) |
Definition at line 156 of file generalMath.py.
References ListPrint().
Referenced by printAnnotatedMatrix().
def pyNastran.general.generalMath.ListPrint | ( | listA, | |
tol = 1e-8 |
|||
) |
Definition at line 168 of file generalMath.py.
References augmentedIdentity(), and pyNastran::bdf::cards::aero.type.
Referenced by printAnnotatedMatrix(), and printMatrix().
Creates an Identity Matrix augmented with zeros.
The location of the extra zeros depends on A.
Definition at line 214 of file generalMath.py.
References solveTridag().
Referenced by ListPrint().
def pyNastran.general.generalMath.solveTridag | ( | A, | |
D | |||
) |
Definition at line 225 of file generalMath.py.
References Area(), AreaNormal(), inertiaFormulas.cross(), and pyNastran::bdf::cards::methods.norm.
Referenced by augmentedIdentity().
def pyNastran.general.generalMath.Area | ( | a, | |
b | |||
) |
Definition at line 236 of file generalMath.py.
References inertiaFormulas.cross(), and pyNastran::bdf::cards::methods.norm.
Referenced by solveTridag().
def pyNastran.general.generalMath.AreaNormal | ( | nodes | ) |
Returns area,unitNormal n = Normal = a x b Area = 1/2 * |a x b| V = <v1,v2,v3> |V| = sqrt(v1^0.5+v2^0.5+v3^0.5) = norm(V)
Area = 0.5 * |n| unitNormal = n/|n|
Definition at line 250 of file generalMath.py.
References Centroid(), inertiaFormulas.cross(), pyNastran::bdf::cards::methods.norm, Normal(), and Triangle_AreaCentroidNormal().
Referenced by solveTridag().
Returns area,centroid,unitNormal.
Definition at line 268 of file generalMath.py.
References Centroid(), and pyNastran::bdf::cards::methods.norm.
Referenced by pyNastran.bdf.cards.elements.shell.TriShell.AreaCentroidNormal(), AreaNormal(), and pyNastran.bdf.cards.elements.shell.CTRIA6.Thickness().
def pyNastran.general.generalMath.Normal | ( | a, | |
b | |||
) |
finds the unit normal vector of 2 vectors
Definition at line 275 of file generalMath.py.
Referenced by AreaNormal().
def pyNastran.general.generalMath.Centroid | ( | A, | |
B, | |||
C | |||
) |
returns the centroid of a triangle
Definition at line 284 of file generalMath.py.
Referenced by AreaNormal(), and Triangle_AreaCentroidNormal().