NetDEM v1.0
Loading...
Searching...
No Matches
netdem::PeriDigmMaterial Class Reference

A class representing the material properties used in a peridynamic simulation. More...

#include <peridigm_material.hpp>

Public Types

enum  Type { Elastic }
 An enum representing the type of material model used. More...
 

Public Member Functions

void WriteInputFile (std::ostream &os, int material_id)
 Writes the material parameters to a file stream in Peridigm-compatible format.
 

Public Attributes

Type type {Type::Elastic}
 The type of material model used.
 
double density = 2650.0
 The density of the material.
 
double youngs_modulus = 70.0e9
 The Young's modulus of the material.
 
double poissons_ratio = 0.15
 The Poisson's ratio of the material.
 

Detailed Description

A class representing the material properties used in a peridynamic simulation.

The PeriDigmMaterial class represents the material properties used in a peridynamic simulation. It includes methods for writing the material properties to file in a format compatible with the Peridigm code.

Member Enumeration Documentation

◆ Type

An enum representing the type of material model used.

The Type enum represents the type of material model used, which can be currently only Elastic.

Enumerator
Elastic 

Member Function Documentation

◆ WriteInputFile()

void netdem::PeriDigmMaterial::WriteInputFile ( std::ostream & os,
int material_id )
inline

Writes the material parameters to a file stream in Peridigm-compatible format.

This method writes the material parameters to a file stream in Peridigm-compatible format, including the material model, density, Young's modulus, and Poisson's ratio.

Parameters
osThe output stream to write to.
material_idThe ID number of the material.

Member Data Documentation

◆ density

double netdem::PeriDigmMaterial::density = 2650.0

The density of the material.

◆ poissons_ratio

double netdem::PeriDigmMaterial::poissons_ratio = 0.15

The Poisson's ratio of the material.

◆ type

Type netdem::PeriDigmMaterial::type {Type::Elastic}

The type of material model used.

◆ youngs_modulus

double netdem::PeriDigmMaterial::youngs_modulus = 70.0e9

The Young's modulus of the material.


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