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

This class represents a (normalized) vector used to define element orientation. More...

#include <FEVector.h>

Inheritance diagram for FEVector:
GenericFE Identifiable

Public Member Functions

 FEVector (YAML::Node &yamlNode, std::string vecType)
 
 FEVector (int id, double x, double y, double z)
 
 ~FEVector ()
 
Identifiable::Type getType ()
 
std::string getTypeAsString ()
 
virtual void printAttributes () override
 
virtual bool assignIndependentAttributes (YAML::Node &yamlNode) override
 
void normalizeVector ()
 Normalize the vector (named vec) More...
 
- Public Member Functions inherited from Identifiable
virtual ~Identifiable ()
 
int getID () const
 Getter for the externally defined identification number. More...
 

Public Attributes

double vec [3]
 The vector data. Contents: x-, y-, and z-components of the vector. 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 (normalized) vector used to define element orientation.

Constructor & Destructor Documentation

◆ FEVector() [1/2]

FEVector::FEVector ( YAML::Node &  yamlNode,
std::string  vecType 
)

◆ FEVector() [2/2]

FEVector::FEVector ( int  id,
double  x,
double  y,
double  z 
)

YAML-independent constructor

◆ ~FEVector()

FEVector::~FEVector ( )

Member Function Documentation

◆ assignIndependentAttributes()

bool FEVector::assignIndependentAttributes ( YAML::Node &  yamlNode)
overridevirtual

Setter for independent (dependency level null) attributes

Implements GenericFE.

◆ getType()

Identifiable::Type FEVector::getType ( )
virtual

Function returning the type of the element.
Used to specify element types for operatins such as comparison.

Reimplemented from Identifiable.

◆ getTypeAsString()

std::string FEVector::getTypeAsString ( )
virtual

Function returning the type as a string.
Used to throw informative error messages

Reimplemented from Identifiable.

◆ normalizeVector()

void FEVector::normalizeVector ( )

Normalize the vector (named vec)

◆ printAttributes()

void FEVector::printAttributes ( )
overridevirtual

Print attributes to console

Implements GenericFE.

Member Data Documentation

◆ vec

double FEVector::vec[3]

The vector data. Contents: x-, y-, and z-components of the vector.


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