swSim  Version 1.0
All Classes Namespaces Files Functions Variables Typedefs Macros
Classes | Public Member Functions | Public Attributes | List of all members
swSim::Material Class Reference

Defines data structures for Material in swSim. More...

#include "include/Material.hpp"

Inheritance diagram for swSim::Material:
swSim::ParsableObject

Classes

struct  material_s
 

Public Member Functions

 Material ()
 Create the Material. More...
 
 ~Material ()
 Destroy the Material. More...
 
void Init (uint32_t id, float rho, float *c)
 Initilize data values. More...
 
void Copy (Material *other)
 Copy values of one Material to another. More...
 
MPI_Datatype MPICreate ()
 Create the MPI datatype for the Material. More...
 
void RotateStiffnessMatrix (float *rotVec, float *C)
 Get a local stiffness Matrix for that voxel base on the material stiffness matrix and a rotation vector. More...
 
void ParseSwitch (xmlDocPtr doc, xmlNodePtr cur, int caseNumber) override
 Provide parsing instructions for reading inputs associated with the Material. More...
 
Matrix6f StiffnessValuesArrayToMatrix ()
 Convert the array of stiffness Values to an Eigen Matrix. More...
 
- Public Member Functions inherited from swSim::ParsableObject
void Parse (xmlDocPtr doc, xmlNodePtr cur)
 Parse the specific object. More...
 
xmlNodePtr ParseSearch (xmlDocPtr doc, xmlNodePtr cur, const char *value)
 Search to the xml element corespondng to each parsable variable. More...
 
void Do_parse (xmlDocPtr doc, xmlNodePtr cur, double *value)
 Parse a double object. More...
 
void Do_parse (xmlDocPtr doc, xmlNodePtr cur, float *value)
 Parse a float object. More...
 
void Do_parse (xmlDocPtr doc, xmlNodePtr cur, uint8_t *value)
 Parse a uint_8 object. More...
 
void Do_parse (xmlDocPtr doc, xmlNodePtr cur, uint32_t *value)
 Parse a uint_32 object. More...
 
void Do_parse (xmlDocPtr doc, xmlNodePtr cur, uint64_t *value)
 Parse a uint_64 object. More...
 
void Do_parse (xmlDocPtr doc, xmlNodePtr cur, bool *value)
 Parse a boolean object. More...
 
void Do_parse (xmlDocPtr doc, xmlNodePtr cur, char *value)
 Parse a char array object. More...
 

Public Attributes

material_s matS
 Material struct. More...
 
MPI_Datatype mpi_material
 MPI datatype for communication. More...
 
- Public Attributes inherited from swSim::ParsableObject
std::vector< std::string > parseNames
 Vector of parse names to look for when reading inputs. More...
 

Detailed Description

Defines data structures for Material in swSim.

Constructor & Destructor Documentation

◆ Material()

swSim::Material::Material ( )

Create the Material.

◆ ~Material()

swSim::Material::~Material ( )

Destroy the Material.

Member Function Documentation

◆ Init()

void swSim::Material::Init ( uint32_t  id,
float  rho,
float *  c 
)

Initilize data values.

◆ Copy()

void swSim::Material::Copy ( swSim::Material other)

Copy values of one Material to another.

◆ MPICreate()

MPI_Datatype swSim::Material::MPICreate ( )

Create the MPI datatype for the Material.

◆ RotateStiffnessMatrix()

void swSim::Material::RotateStiffnessMatrix ( float *  rotVec,
float *  C 
)

Get a local stiffness Matrix for that voxel base on the material stiffness matrix and a rotation vector.

◆ ParseSwitch()

void swSim::Material::ParseSwitch ( xmlDocPtr  doc,
xmlNodePtr  cur,
int  caseNumber 
)
overridevirtual

Provide parsing instructions for reading inputs associated with the Material.

Reimplemented from swSim::ParsableObject.

◆ StiffnessValuesArrayToMatrix()

Matrix6f swSim::Material::StiffnessValuesArrayToMatrix ( )

Convert the array of stiffness Values to an Eigen Matrix.

Member Data Documentation

◆ matS

material_s swSim::Material::matS

Material struct.

◆ mpi_material

MPI_Datatype swSim::Material::mpi_material

MPI datatype for communication.


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