SPHinXsys
alpha version
|
Base of all materials. More...
#include <base_material.h>
Inherited by SPH::BaseDiffusion, SPH::Fluid, and SPH::Solid.
Public Member Functions | |
BaseMaterial (Real rho0) | |
virtual void | assignBaseParticles (BaseParticles *base_particles) |
std::string | MaterialType () |
std::string | LocalParametersName () |
Real | ReferenceDensity () |
virtual void | writeToXmlForReloadLocalParameters (const std::string &filefullpath) |
virtual void | readFromXmlForLocalParameters (const std::string &filefullpath) |
virtual BaseMaterial * | ThisObjectPtr () |
Protected Attributes | |
std::string | material_type_name_ |
std::string | parameters_name_ |
Real | rho0_ |
BaseParticles * | base_particles_ |
XmlEngine | reload_material_xml_engine_ |
ParticleVariableList | reload_local_parameters_ |
Base of all materials.
Note that the case dependent parameters of the material properties will be defined in applications.
|
virtual |
This will be called in BaseParticle constructor and is important because particles are not defined in SPHBody constructor. For a composite material, i.e. there is a material pointer with another material, one need assign the base particle to that material too.
Reimplemented in SPH::LocallyOrthotropicMuscle, SPH::LocalDirectionalDiffusion, and SPH::HardeningPlasticSolid.
|
protected |
reference density.