pyNastran  0.5.0
pyNastran BDF Reader/Writer, OP2 Parser, and GUI
pyNastran.bdf.cards.coordinateSystems.Cord2x Class Reference
Inheritance diagram for pyNastran.bdf.cards.coordinateSystems.Cord2x:
pyNastran.bdf.cards.coordinateSystems.Coord pyNastran.bdf.cards.baseCard.BaseCard pyNastran.bdf.bdfInterface.BDF_Card.BDFCard pyNastran.bdf.cards.coordinateSystems.CORD2C pyNastran.bdf.cards.coordinateSystems.CORD2R pyNastran.bdf.cards.coordinateSystems.CORD2S

List of all members.

Public Member Functions

def __init__
 defines the CORD2x class
def resolveCid
 Turns the coordinate system from being a coordinate system of type 1 depending on a type 2 to a type 1 depending on nothing.
def crossReference
 Links self.rid to a coordinate system.
def transformToGlobal
 Transforms a point from the local coordinate system to the reference coordinate frames "global" coordinate system.
def Rid
 Returns the reference coordinate system self.rid.

Public Attributes

 isResolved
 rid coordinate system is now resolved, time to resolve the cid coordinate system.
 cid
 coordinate system ID
 rid
 reference coordinate system ID
 e1
 origin in a point relative to the rid coordinate system
 e2
 z-axis in a point relative to the rid coordinate system
 e3
 a point on the xz-plane relative to the rid coordinate system
 i
 the axes are normalized, so assume they're points and resolve them in the XYZ system, but dont subtract e1 off (hence the False)
 j
 j = (k cross e13) normalized
 k
 e_{13}
 isCrossReferenced
 has the coordinate system been linked yet

Detailed Description

Definition at line 332 of file coordinateSystems.py.


Constructor & Destructor Documentation

def pyNastran.bdf.cards.coordinateSystems.Cord2x.__init__ (   self,
  card,
  data 
)

defines the CORD2x class

Parameters:
selfthe object pointer
carda BDFCard object
dataa list analogous to the card

Reimplemented from pyNastran.bdf.cards.coordinateSystems.Coord.

Reimplemented in pyNastran.bdf.cards.coordinateSystems.CORD2C, pyNastran.bdf.cards.coordinateSystems.CORD2S, and pyNastran.bdf.cards.coordinateSystems.CORD2R.

Definition at line 340 of file coordinateSystems.py.

Referenced by pyNastran.bdf.cards.coordinateSystems.Cord2x.transformToGlobal().


Member Function Documentation

Turns the coordinate system from being a coordinate system of type 1 depending on a type 2 to a type 1 depending on nothing.

More generally, takes a coordinate system that depends on multiple levels of coordinate systems and resolves them in order to resolve it's coordinate frame. So, if a coordinate system is of type 2, this will effectively set rid to 0 with a type 2.

This should handle any number of coordinate systems or coordinate system types assuming there is no circular references.

Definition at line 384 of file coordinateSystems.py.

References pyNastran.bdf.cards.coordinateSystems.Coord.e1, pyNastran.bdf.cards.coordinateSystems.Cord2x.e1, pyNastran.bdf.cards.coordinateSystems.Coord.isResolved, pyNastran.bdf.cards.coordinateSystems.Cord2x.isResolved, and pyNastran.bdf.cards.coordinateSystems.Cord2x.transformToGlobal().

Links self.rid to a coordinate system.

Parameters:
selfthe object pointer
modelthe BDF object
Warning:
Doesn't set rid to the coordinate system if it's in the global. This isn't a problem, it's meant to speed up the code in order to resolve extra coordinate systems.

Reimplemented from pyNastran.bdf.cards.baseCard.BaseCard.

Definition at line 425 of file coordinateSystems.py.

Referenced by pyNastran.bdf.bdf.BDF.readBDF(), and pyNastran.bdf.bdf.BDF.readBDF_Punch().

def pyNastran.bdf.cards.coordinateSystems.Cord2x.transformToGlobal (   self,
  p,
  resolveAltCoord = True,
  debug = False 
)

Transforms a point from the local coordinate system to the reference coordinate frames "global" coordinate system.

\[ \large [p_{global}]_{1x3} = [p_{local} -p_{origin}]_{1x3}[\Beta_{ij}]_{3x3} \]

where \( [\Beta]_{ij} \) is the transformation matrix

\[ \large [\Beta]_{ij} \left[ \begin{array}{ccc} g_x \cdot i & g_x \cdot j & g_x \cdot k \\ g_y \cdot i & g_y \cdot j & g_y \cdot k \\ g_z \cdot i & g_z \cdot j & g_z \cdot k \end{array} \right] \]

\( g \) is the global directional vector (e.g. \( g_x = [1,0,0]\)) \( ijk \) is the ith direction in the local coordinate system

Warning:
make sure you cross-reference before calling this
you probably shouldnt call this, call the Node methods Position and PositionWRT

Definition at line 456 of file coordinateSystems.py.

References pyNastran.bdf.cards.coordinateSystems.Cord2x.__init__(), pyNastran.bdf.cards.elements.bush.BushElement.Cid(), pyNastran.bdf.cards.loads.loads.Load.Cid(), pyNastran.bdf.cards.coordinateSystems.Coord.Cid(), pyNastran.bdf.cards.elements.bush.CBUSH.Cid(), pyNastran.bdf.cards.elements.elements.CGAP.Cid(), pyNastran.bdf.cards.loads.staticLoads.GRAV.Cid(), pyNastran.bdf.cards.elements.mass.CONM1.Cid(), pyNastran.bdf.cards.loads.staticLoads.ACCEL1.Cid(), pyNastran.bdf.cards.loads.staticLoads.FORCE.Cid(), pyNastran.bdf.cards.loads.staticLoads.MOMENT.Cid(), pyNastran.bdf.cards.loads.staticLoads.PLOAD4.Cid(), pyNastran.bdf.cards.aero.SPLINE2.Cid(), pyNastran.bdf.cards.aero.SPLINE5.Cid(), pyNastran.bdf.cards.coordinateSystems.RectangularCoord.coordToXYZ(), pyNastran.bdf.cards.coordinateSystems.CylindricalCoord.coordToXYZ(), pyNastran.bdf.cards.coordinateSystems.SphericalCoord.coordToXYZ(), pyNastran.bdf.cards.coordinateSystems.Coord.e1, pyNastran.bdf.cards.coordinateSystems.Cord2x.e1, pyNastran.bdf.cards.coordinateSystems.Coord.i, pyNastran.bdf.cards.coordinateSystems.Cord2x.i, pyNastran.bdf.cards.coordinateSystems.Coord.isResolved, pyNastran.bdf.cards.coordinateSystems.Cord2x.isResolved, pyNastran.bdf.cards.coordinateSystems.Coord.j, pyNastran.bdf.cards.coordinateSystems.Cord2x.j, pyNastran.bdf.cards.coordinateSystems.Coord.k, pyNastran.bdf.cards.coordinateSystems.Cord2x.k, pyNastran::general::general.ListPrint(), pyNastran.bdf.cards.coordinateSystems.Cord2x.rid, pyNastran.bdf.cards.constraints.SPCAX.rid, and pyNastran.bdf.cards.coordinateSystems.Cord2x.Rid().

Referenced by pyNastran.bdf.cards.coordinateSystems.Coord.normalize(), and pyNastran.bdf.cards.coordinateSystems.Cord2x.resolveCid().


Member Data Documentation

rid coordinate system is now resolved, time to resolve the cid coordinate system.

rid may be in a different coordinate system than cid

Reimplemented from pyNastran.bdf.cards.coordinateSystems.Coord.

Definition at line 340 of file coordinateSystems.py.

Referenced by pyNastran.bdf.cards.coordinateSystems.Cord2x::resolveCid(), pyNastran.bdf.cards.coordinateSystems.Cord2x::transformToGlobal(), and pyNastran.bdf.cards.coordinateSystems.SphericalCoord::XYZtoCoord().

coordinate system ID

Reimplemented from pyNastran.bdf.cards.coordinateSystems.Coord.

Definition at line 341 of file coordinateSystems.py.

Referenced by pyNastran.bdf.cards.loads.staticLoads.GRAV.__init__(), pyNastran.bdf.cards.coordinateSystems.CORD1S.__init__(), pyNastran.bdf.cards.coordinateSystems.CORD2R.__init__(), pyNastran.op2.tables.oes_stressStrain.real.oes_solids.SolidStressObject.addNewEid(), pyNastran.op2.tables.oes_stressStrain.real.oes_solids.SolidStressObject.addNewEidSort1(), pyNastran.op2.tables.oes_stressStrain.real.oes_solids.SolidStrainObject.addNewEidSort1(), pyNastran.op2.tables.oes_stressStrain.real.oes_solids.SolidStrainObject.addNewTransient(), pyNastran.bdf.cards.elements.bush.BushElement.Cid(), pyNastran.bdf.cards.loads.loads.Load.Cid(), pyNastran.bdf.cards.elements.bush.CBUSH.Cid(), pyNastran.bdf.cards.elements.elements.CGAP.Cid(), pyNastran.bdf.cards.loads.staticLoads.FORCE.Cid(), pyNastran.bdf.cards.elements.elements.CGAP.crossReference(), pyNastran.bdf.cards.loads.staticLoads.GRAV.crossReference(), pyNastran.bdf.cards.loads.staticLoads.ACCEL1.crossReference(), pyNastran.bdf.cards.loads.loads.RFORCE.crossReference(), pyNastran.bdf.cards.loads.staticLoads.PLOAD4.getLoads(), pyNastran.bdf.cards.loads.staticLoads.Moment.M(), pyNastran.bdf.cards.elements.mass.CONM1.Nid(), pyNastran.bdf.cards.elements.mass.CONM1.nodeIDs(), pyNastran.bdf.cards.coordinateSystems.Cord1x.NodeIDs(), pyNastran.bdf.cards.loads.staticLoads.ACCEL1.rawFields(), pyNastran.bdf.cards.loads.loads.RFORCE.rawFields(), pyNastran.bdf.cards.loads.staticLoads.FORCE2.rawFields(), pyNastran.bdf.cards.coordinateSystems.CORD1C.rawFields(), pyNastran.bdf.cards.loads.loads.TLOAD2.reprFields(), pyNastran.bdf.cards.aero.SPLINE1.reprFields(), pyNastran.bdf.cards.aero.SPLINE4.reprFields(), pyNastran.bdf.cards.coordinateSystems.Cord2x.Rid(), pyNastran.bdf.cards.loads.staticLoads.GRAV.transformLoad(), and pyNastran.bdf.cards.loads.staticLoads.PLOAD4.transformLoad().

origin in a point relative to the rid coordinate system

Reimplemented from pyNastran.bdf.cards.coordinateSystems.Coord.

Definition at line 343 of file coordinateSystems.py.

Referenced by pyNastran.bdf.cards.coordinateSystems.CORD1S.__init__(), pyNastran.bdf.cards.coordinateSystems.CORD2R.__init__(), pyNastran.op2.tables.oes_stressStrain.complex.oes_bars.ComplexBarStrainObject.__repr__(), pyNastran.op2.tables.oes_stressStrain.real.oes_bars.BarStrainObject.__repr__(), pyNastran.op2.tables.oes_stressStrain.complex.oes_bars.ComplexBarStrainObject.__reprTransient__(), pyNastran.op2.tables.oes_stressStrain.real.oes_bars.BarStrainObject.__reprTransient__(), pyNastran.op2.tables.oes_stressStrain.real.oes_solids.SolidStrainObject.add(), pyNastran.op2.tables.oes_stressStrain.complex.oes_bars.ComplexBarStrainObject.addF06Data(), pyNastran.op2.tables.oes_stressStrain.complex.oes_bars.ComplexBarStrainObject.addNewEid(), pyNastran.op2.tables.oes_stressStrain.real.oes_bars.BarStrainObject.addNewEid(), pyNastran.op2.tables.oes_stressStrain.real.oes_solids.SolidStrainObject.addNewEid(), pyNastran.op2.tables.oes_stressStrain.complex.oes_bars.ComplexBarStrainObject.addNewEidSort1(), pyNastran.op2.tables.oes_stressStrain.real.oes_bars.BarStrainObject.addNewEidSort1(), pyNastran.op2.tables.oes_stressStrain.real.oes_solids.SolidStrainObject.addNewEidSort1(), pyNastran.op2.tables.oes_stressStrain.real.oes_solids.SolidStrainObject.addNewTransient(), pyNastran.op2.tables.oes_stressStrain.real.oes_solids.SolidStrainObject.addSort1(), pyNastran.bdf.cards.thermal.thermal.CHBDYP.crossReference(), pyNastran.op2.tables.oes_stressStrain.real.oes_solids.SolidStrainObject.deleteTransient(), pyNastran.op2.tables.oes_stressStrain.complex.oes_bars.ComplexBarStrainObject.getTransients(), pyNastran.op2.tables.oes_stressStrain.real.oes_bars.BarStrainObject.getTransients(), pyNastran.op2.tables.oes_stressStrain.real.oes_solids.SolidStrainObject.processF06Data(), pyNastran.bdf.cards.properties.bars.PBEAM.rawFields(), pyNastran.bdf.cards.thermal.thermal.CHBDYP.reprFields(), pyNastran.bdf.cards.thermal.thermal.PCONV.reprFields(), pyNastran.bdf.cards.coordinateSystems.Cord2x.resolveCid(), pyNastran.bdf.cards.coordinateSystems.Cord2x.transformToGlobal(), pyNastran.bdf.cards.properties.bars.PBEAM.writeCodeAster(), pyNastran.op2.tables.oes_stressStrain.real.oes_solids.SolidStrainObject.writeElement(), pyNastran.op2.tables.oes_stressStrain.real.oes_solids.SolidStrainObject.writeElementTransient(), pyNastran.op2.tables.oes_stressStrain.complex.oes_bars.ComplexBarStrainObject.writeF06(), pyNastran.op2.tables.oes_stressStrain.real.oes_bars.BarStrainObject.writeF06(), pyNastran.op2.tables.oes_stressStrain.complex.oes_bars.ComplexBarStrainObject.writeF06Transient(), pyNastran.op2.tables.oes_stressStrain.real.oes_bars.BarStrainObject.writeF06Transient(), and pyNastran.bdf.cards.coordinateSystems.CylindricalCoord.XYZtoCoord().

z-axis in a point relative to the rid coordinate system

Reimplemented from pyNastran.bdf.cards.coordinateSystems.Coord.

Definition at line 344 of file coordinateSystems.py.

Referenced by pyNastran.bdf.cards.coordinateSystems.CORD1S.__init__(), pyNastran.bdf.cards.coordinateSystems.CORD2R.__init__(), pyNastran.op2.tables.oes_stressStrain.complex.oes_bars.ComplexBarStrainObject.__repr__(), pyNastran.op2.tables.oes_stressStrain.real.oes_bars.BarStrainObject.__repr__(), pyNastran.op2.tables.oes_stressStrain.complex.oes_bars.ComplexBarStrainObject.__reprTransient__(), pyNastran.op2.tables.oes_stressStrain.real.oes_bars.BarStrainObject.__reprTransient__(), pyNastran.op2.tables.oes_stressStrain.real.oes_solids.SolidStrainObject.add(), pyNastran.op2.tables.oes_stressStrain.complex.oes_bars.ComplexBarStrainObject.addF06Data(), pyNastran.op2.tables.oes_stressStrain.complex.oes_bars.ComplexBarStrainObject.addNewEid(), pyNastran.op2.tables.oes_stressStrain.real.oes_bars.BarStrainObject.addNewEid(), pyNastran.op2.tables.oes_stressStrain.real.oes_solids.SolidStrainObject.addNewEid(), pyNastran.op2.tables.oes_stressStrain.complex.oes_bars.ComplexBarStrainObject.addNewEidSort1(), pyNastran.op2.tables.oes_stressStrain.real.oes_bars.BarStrainObject.addNewEidSort1(), pyNastran.op2.tables.oes_stressStrain.real.oes_solids.SolidStrainObject.addNewEidSort1(), pyNastran.op2.tables.oes_stressStrain.real.oes_solids.SolidStrainObject.addNewTransient(), pyNastran.op2.tables.oes_stressStrain.real.oes_solids.SolidStrainObject.addSort1(), pyNastran.bdf.cards.thermal.thermal.CHBDYP.crossReference(), pyNastran.op2.tables.oes_stressStrain.real.oes_solids.SolidStrainObject.deleteTransient(), pyNastran.op2.tables.oes_stressStrain.complex.oes_bars.ComplexBarStrainObject.getTransients(), pyNastran.op2.tables.oes_stressStrain.real.oes_bars.BarStrainObject.getTransients(), pyNastran.op2.tables.oes_stressStrain.real.oes_solids.SolidStrainObject.processF06Data(), pyNastran.bdf.cards.properties.bars.PBEAM.rawFields(), pyNastran.bdf.cards.thermal.thermal.CHBDYP.reprFields(), pyNastran.bdf.cards.thermal.thermal.PCONV.reprFields(), pyNastran.bdf.cards.properties.bars.PBEAM.writeCodeAster(), pyNastran.op2.tables.oes_stressStrain.real.oes_solids.SolidStrainObject.writeElement(), pyNastran.op2.tables.oes_stressStrain.real.oes_solids.SolidStrainObject.writeElementTransient(), pyNastran.op2.tables.oes_stressStrain.complex.oes_bars.ComplexBarStrainObject.writeF06(), pyNastran.op2.tables.oes_stressStrain.real.oes_bars.BarStrainObject.writeF06(), pyNastran.op2.tables.oes_stressStrain.complex.oes_bars.ComplexBarStrainObject.writeF06Transient(), and pyNastran.op2.tables.oes_stressStrain.real.oes_bars.BarStrainObject.writeF06Transient().

a point on the xz-plane relative to the rid coordinate system

Reimplemented from pyNastran.bdf.cards.coordinateSystems.Coord.

Definition at line 345 of file coordinateSystems.py.

Referenced by pyNastran.bdf.cards.coordinateSystems.CORD1S.__init__(), pyNastran.bdf.cards.coordinateSystems.CORD2R.__init__(), pyNastran.op2.tables.oes_stressStrain.complex.oes_bars.ComplexBarStrainObject.__repr__(), pyNastran.op2.tables.oes_stressStrain.real.oes_bars.BarStrainObject.__repr__(), pyNastran.op2.tables.oes_stressStrain.complex.oes_bars.ComplexBarStrainObject.__reprTransient__(), pyNastran.op2.tables.oes_stressStrain.real.oes_bars.BarStrainObject.__reprTransient__(), pyNastran.op2.tables.oes_stressStrain.real.oes_solids.SolidStrainObject.add(), pyNastran.op2.tables.oes_stressStrain.complex.oes_bars.ComplexBarStrainObject.addF06Data(), pyNastran.op2.tables.oes_stressStrain.complex.oes_bars.ComplexBarStrainObject.addNewEid(), pyNastran.op2.tables.oes_stressStrain.real.oes_bars.BarStrainObject.addNewEid(), pyNastran.op2.tables.oes_stressStrain.real.oes_solids.SolidStrainObject.addNewEid(), pyNastran.op2.tables.oes_stressStrain.complex.oes_bars.ComplexBarStrainObject.addNewEidSort1(), pyNastran.op2.tables.oes_stressStrain.real.oes_bars.BarStrainObject.addNewEidSort1(), pyNastran.op2.tables.oes_stressStrain.real.oes_solids.SolidStrainObject.addNewEidSort1(), pyNastran.op2.tables.oes_stressStrain.real.oes_solids.SolidStrainObject.addNewTransient(), pyNastran.op2.tables.oes_stressStrain.real.oes_solids.SolidStrainObject.addSort1(), pyNastran.bdf.cards.thermal.thermal.CHBDYP.crossReference(), pyNastran.op2.tables.oes_stressStrain.complex.oes_bars.ComplexBarStrainObject.deleteTransient(), pyNastran.op2.tables.oes_stressStrain.real.oes_bars.BarStrainObject.deleteTransient(), pyNastran.op2.tables.oes_stressStrain.real.oes_solids.SolidStrainObject.deleteTransient(), pyNastran.op2.tables.oes_stressStrain.complex.oes_bars.ComplexBarStrainObject.getTransients(), pyNastran.op2.tables.oes_stressStrain.real.oes_bars.BarStrainObject.getTransients(), pyNastran.op2.tables.oes_stressStrain.real.oes_solids.SolidStrainObject.processF06Data(), pyNastran.bdf.cards.thermal.thermal.CHBDYP.reprFields(), pyNastran.bdf.cards.thermal.thermal.PCONV.reprFields(), pyNastran.op2.tables.oes_stressStrain.real.oes_solids.SolidStrainObject.writeElement(), pyNastran.op2.tables.oes_stressStrain.real.oes_solids.SolidStrainObject.writeElementTransient(), pyNastran.op2.tables.oes_stressStrain.complex.oes_bars.ComplexBarStrainObject.writeF06(), pyNastran.op2.tables.oes_stressStrain.real.oes_bars.BarStrainObject.writeF06(), pyNastran.op2.tables.oes_stressStrain.complex.oes_bars.ComplexBarStrainObject.writeF06Transient(), and pyNastran.op2.tables.oes_stressStrain.real.oes_bars.BarStrainObject.writeF06Transient().

has the coordinate system been linked yet

Reimplemented from pyNastran.bdf.cards.coordinateSystems.Coord.

Definition at line 425 of file coordinateSystems.py.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables