58 os <<
" My Material " + std::to_string(material_id + 1) +
": "
62 os <<
" Material Model : \"Elastic\"" << std::endl;
72 "in PeriDigmMaterial::WriteToFile, material type not defined");
static void PrintError(std::string const &info)
Definition utils_io.cpp:18
static std::string ToString(int value)
Definition utils_io.cpp:27
A class representing the material properties used in a peridynamic simulation.
Definition peridigm_material.hpp:16
Type type
The type of material model used.
Definition peridigm_material.hpp:29
double poissons_ratio
The Poisson's ratio of the material.
Definition peridigm_material.hpp:44
double youngs_modulus
The Young's modulus of the material.
Definition peridigm_material.hpp:39
void WriteInputFile(std::ostream &os, int material_id)
Writes the material parameters to a file stream in Peridigm-compatible format.
Definition peridigm_material.hpp:57
double density
The density of the material.
Definition peridigm_material.hpp:34
Type
An enum representing the type of material model used.
Definition peridigm_material.hpp:24
@ Elastic
Definition peridigm_material.hpp:24
Definition bond_entry.hpp:7