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

Base class of all fluids. More...

#include <base_material.h>

Inherits SPH::BaseMaterial.

Inherited by SPH::CompressibleFluid, and SPH::WeaklyCompressibleFluid.

Public Member Functions

 Fluid (Real rho0, Real mu)
 
Real ReferenceViscosity ()
 
virtual Real getPressure (Real rho)=0
 
virtual Real getPressure (Real rho, Real rho_e)
 
virtual Real DensityFromPressure (Real p)=0
 
virtual Real getSoundSpeed (Real p=0.0, Real rho=1.0)=0
 
virtual FluidThisObjectPtr () override
 
- Public Member Functions inherited from SPH::BaseMaterial
 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)
 

Protected Attributes

Real mu_
 
- Protected Attributes inherited from SPH::BaseMaterial
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 class of all fluids.

Member Data Documentation

◆ mu_

Real SPH::Fluid::mu_
protected

reference sound speed, viscosity.


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