YAMLParser
Public Member Functions | Public Attributes | List of all members
FECoordSys Class Reference

This class represents a coordinate system. More...

#include <FECoordSys.h>

Inheritance diagram for FECoordSys:
Identifiable

Public Member Functions

 FECoordSys (int id, double Xx, double Xy, double Xz, double Yx, double Yy, double Yz, double Zx, double Zy, double Zz)
 
 FECoordSys (YAML::Node &yamlNode)
 
virtual ~FECoordSys ()
 
virtual bool assignIndependentAttributes (YAML::Node &yamlNode)
 
virtual void printAttributes ()
 
void BuildFromPoints (YAML::Node yamlNode)
 
std::vector< double > computeOrthogonalVector (double Xx, double Xy, double Xz, double Zx, double Zy, double Zz)
 
void normalizeMatrix ()
 
- Public Member Functions inherited from Identifiable
virtual ~Identifiable ()
 
int getID () const
 Getter for the externally defined identification number. More...
 
virtual Identifiable::Type getType ()
 
virtual std::string getTypeAsString ()
 

Public Attributes

double M [3][3]
 Matrix containing the direction vectors (X, Y, Z) constituting the coordinate system. More...
 
- Public Attributes inherited from Identifiable
std::vector< std::string > s_Types
 
Type type
 The FEM element type (see enum definition) More...
 

Additional Inherited Members

- Public Types inherited from Identifiable
enum  Type {
  NULLTYPE, NODE, COORDSYS, BEAM,
  TRISHELL, QUADSHEL, VECTOR, ECCENT,
  ISOMATERIAL, PIPE, BOX, IHPROFIL,
  LSECTION, TSECTION, PLCOMP, CROSS_SECTION_DUMMY,
  NODELOAD, LOADCOMB
}
 
- Protected Member Functions inherited from Identifiable
void setID (int id)
 Setter for the externally defined identification number. More...
 
- Protected Attributes inherited from Identifiable
int id
 Externally defined identification number. More...
 

Detailed Description

This class represents a coordinate system.

Constructor & Destructor Documentation

◆ FECoordSys() [1/2]

FECoordSys::FECoordSys ( int  id,
double  Xx,
double  Xy,
double  Xz,
double  Yx,
double  Yy,
double  Yz,
double  Zx,
double  Zy,
double  Zz 
)

YAML-independent constructor

id: identification number for the coordinate system object.
Xx, Xy, and Xz represent the vector components for the X-vector.
Yx, Yy, and Yz represent the vector components for the Y-vector.
Zx, Zy, and Zz represent the vector components for the Z-vector.

◆ FECoordSys() [2/2]

FECoordSys::FECoordSys ( YAML::Node &  yamlNode)

Constructor based on information from a YAML::Node

◆ ~FECoordSys()

FECoordSys::~FECoordSys ( )
virtual

Member Function Documentation

◆ assignIndependentAttributes()

bool FECoordSys::assignIndependentAttributes ( YAML::Node &  yamlNode)
virtual

◆ BuildFromPoints()

void FECoordSys::BuildFromPoints ( YAML::Node  yamlNode)

Builds a coordinate system from three points, specified by the PCOORDSYS record

◆ computeOrthogonalVector()

std::vector< double > FECoordSys::computeOrthogonalVector ( double  Xx,
double  Xy,
double  Xz,
double  Zx,
double  Zy,
double  Zz 
)

Computes an orthogonal vector from two three-dimensional vectors.

Input:
XYZ components for vec1
XYZ components for vec2

Output:
Three-dimensional vector orthogonal to vec1 and vec2.

◆ normalizeMatrix()

void FECoordSys::normalizeMatrix ( )

Normalizes the matrix defined in this class.

◆ printAttributes()

void FECoordSys::printAttributes ( )
virtual

Member Data Documentation

◆ M

double FECoordSys::M[3][3]

Matrix containing the direction vectors (X, Y, Z) constituting the coordinate system.


The documentation for this class was generated from the following files: