YAMLParser
|
This class represents a coordinate system. More...
#include <FECoordSys.h>
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 () |
![]() | |
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... | |
![]() | |
std::vector< std::string > | s_Types |
Type | type |
The FEM element type (see enum definition) More... | |
Additional Inherited Members | |
![]() | |
enum | Type { NULLTYPE, NODE, COORDSYS, BEAM, TRISHELL, QUADSHEL, VECTOR, ECCENT, ISOMATERIAL, PIPE, BOX, IHPROFIL, LSECTION, TSECTION, PLCOMP, CROSS_SECTION_DUMMY, NODELOAD, LOADCOMB } |
![]() | |
void | setID (int id) |
Setter for the externally defined identification number. More... | |
![]() | |
int | id |
Externally defined identification number. More... | |
This class represents a coordinate system.
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::FECoordSys | ( | YAML::Node & | yamlNode | ) |
Constructor based on information from a YAML::Node
|
virtual |
|
virtual |
void FECoordSys::BuildFromPoints | ( | YAML::Node | yamlNode | ) |
Builds a coordinate system from three points, specified by the PCOORDSYS record
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.
void FECoordSys::normalizeMatrix | ( | ) |
Normalizes the matrix defined in this class.
|
virtual |
double FECoordSys::M[3][3] |
Matrix containing the direction vectors (X, Y, Z) constituting the coordinate system.