pyNastran  0.5.0
pyNastran BDF Reader/Writer, OP2 Parser, and GUI
pyNastran::general::generalMath Namespace Reference

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

Function Documentation

Integrates a line of length 1.0.

Parameters:
xthe independent variable
ythe 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().

Definition at line 60 of file generalMath.py.

References buildSpline().

Referenced by integrateLine().

builds a cubic spline or 1st order spline if there are less than 3 terms

Parameters:
xthe independent variable
ythe dependent variable
Note:
a 1st order spline is the same as linear interpolation

Definition at line 72 of file generalMath.py.

References integratePositiveLine().

Referenced by evaluatePositiveSpline(), integrateLine(), and integratePositiveLine().

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.Area (   a,
  b 
)

Definition at line 236 of file generalMath.py.

References inertiaFormulas.cross(), and pyNastran::bdf::cards::methods.norm.

Referenced by solveTridag().

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().

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().

 All Classes Namespaces Files Functions Variables