Public Member Functions | Public Attributes | List of all members
Material Class Reference

Contains material data such as Young's Modulus, Shear Modulus and Poisson's ratio, and if needed could include additional material properties. More...

#include <Material.h>

Public Member Functions

 Material (double E, double nu)
 Constructor. More...
 
void calculateG (double E, double nu)
 Calculates Shear Modulus. More...
 

Public Attributes

double E
 Young's Modulus ( \( E \))
 
double G
 Shear Modulus ( \( G \))
 
double nu
 Poisson's ratio ( \( \nu\))
 

Detailed Description

Contains material data such as Young's Modulus, Shear Modulus and Poisson's ratio, and if needed could include additional material properties.

Constructor & Destructor Documentation

Material::Material ( double  E,
double  nu 
)

Constructor.

Parameters
Eis the Young's modulus
nuis Poisson's ratioConstuctor that takes E and \( \nu\) and calculates the Shear modulus from the relationship: \( G = \frac{E}{2(1+\nu)} \)

Member Function Documentation

void Material::calculateG ( double  E,
double  nu 
)

Calculates Shear Modulus.

Takes E and \( \nu\) as arguments and calculates the Shear modulus from the relationship: \( G = \frac{E}{2(1+\nu)} \)

Parameters
Eis the Young's modulus
nuis Poisson's ratio

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