SPHinXsys  alpha version
Public Member Functions | Protected Attributes | List of all members
SPH::BaseMaterial Class Reference

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 BaseMaterialThisObjectPtr ()
 

Protected Attributes

std::string material_type_name_
 
std::string parameters_name_
 
Real rho0_
 
BaseParticlesbase_particles_
 
XmlEngine reload_material_xml_engine_
 
ParticleVariableList reload_local_parameters_
 

Detailed Description

Base of all materials.

Note that the case dependent parameters of the material properties will be defined in applications.

Member Function Documentation

◆ assignBaseParticles()

void SPH::BaseMaterial::assignBaseParticles ( BaseParticles base_particles)
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.

Member Data Documentation

◆ rho0_

Real SPH::BaseMaterial::rho0_
protected

reference density.


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