MPM-Geomechanics
Material Point Method for simulating geo-materials under large deformation conditions
Loading...
Searching...
No Matches
Newtonian Class Reference

Represents a Newtonian fluid. More...

#include <Newtonian.h>

Inheritance diagram for Newtonian:
Collaboration diagram for Newtonian:

Public Member Functions

 Newtonian (int id, double density, double viscosity, double bulk)
 Create a Newtonian fluid material.
 
virtual ~Newtonian ()
 Default destructor.
 
void setViscosity (double viscosity)
 Configure the dynamic viscosity.
 
void setBulk (double bulk)
 Configure the bulk modulus.
 
virtual void updateStress (Particle *particle) const override
 Update the stress in the particle.
 
virtual Material::MaterialType getType () const
 Return the material type.
 
virtual double getSoundSpeed () const override
 Get sound speed.
 
- Public Member Functions inherited from Material
 Material (int id=-1, double density=0, MaterialType type=MaterialType::NONE)
 Default constructor.
 
virtual ~Material ()
 Default destructor.
 
int getId () const
 Return the identification.
 
double getDensity () const
 Returns material density.
 
double getDensityFluid () const
 Returns fluid density on material.
 
double getPorosity () const
 Returns material porosity.
 
Vector3d getHydraulicConductivity () const
 Returns Hydraulic conductivity.
 
double getBulkModulusFluid () const
 Returns Bulk modulus of fluid in mixture.
 
void setId (int material_id)
 Configure the material identification.
 
void setDensity (double material_density)
 Configures the material density.
 
void setDensityFluid (double fluid_density)
 Configures fluid density in material.
 
void setPorosity (double material_porosity)
 Configures the material porosity.
 
void setBulkModulusFluid (double bulk_fluid)
 Configures the volumetric modulus of fluid.
 
void setHydraulicConductivity (Vector3d hydraulic_conductivity)
 Configures the material hydraulic conductivity.
 
void setType (MaterialType material_type)
 Configures the material type.
 

Protected Attributes

double Viscosity
 Dynamic viscosity \(\mu\).
 
double Bulk
 Bulk modulus \(K\).
 
- Protected Attributes inherited from Material
int id
 material identification
 
double density
 initial material density \(\rho^{0}\) or initial solid density in two-phase calculations \(\rho^{s,0}\)
 
double densityFluid
 initial density of the fluid phase in two-phase calculations \(\rho^{f,0}\)
 
double porosity
 initial porosity \(n^0\)
 
double bulkModulusFluid
 elastic volumetric modulus of fluid in mixture \(K^f\)
 
Vector3d hydraulicConductivity
 hydraulic conductivity of the fluid in the material \(k_i\)
 
MaterialType type
 material type
 

Additional Inherited Members

- Public Types inherited from Material
enum  MaterialType { NONE , ELASTIC , ELASTOPLASTIC , NEWTONIAN }
 

Detailed Description

Represents a Newtonian fluid.

Constructor & Destructor Documentation

◆ Newtonian()

Newtonian::Newtonian ( int id,
double density,
double viscosity,
double bulk )
inline

Create a Newtonian fluid material.

Parameters
[in]idMaterial identification
[in]densityFluid density \(\rho\)
[in]viscosityDynamic viscosity \(\mu\)
[in]bulkBulk modulus \(K\)

◆ ~Newtonian()

Newtonian::~Newtonian ( )
inlinevirtual

Default destructor.

Member Function Documentation

◆ getSoundSpeed()

virtual double Newtonian::getSoundSpeed ( ) const
overridevirtual

Get sound speed.

Returns
sound_speed Sound speed

Implements Material.

◆ getType()

virtual Material::MaterialType Newtonian::getType ( ) const
inlinevirtual

Return the material type.

Returns
Material type Material::MaterialType

Reimplemented from Material.

◆ setBulk()

void Newtonian::setBulk ( double bulk)
inline

Configure the bulk modulus.

Parameters
[in]bulkBulk modulus \(K\)

◆ setViscosity()

void Newtonian::setViscosity ( double viscosity)
inline

Configure the dynamic viscosity.

Parameters
[in]viscosityDynamic viscosity \(\mu\)

◆ updateStress()

virtual void Newtonian::updateStress ( Particle * particle) const
overridevirtual

Update the stress in the particle.

Parameters
[in]particleParticle

Implements Material.

Member Data Documentation

◆ Bulk

double Newtonian::Bulk
protected

Bulk modulus \(K\).

◆ Viscosity

double Newtonian::Viscosity
protected

Dynamic viscosity \(\mu\).


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