chrono::fsi::sph::DepthPressurePropertiesCallback Class Reference

Description

Predefined SPH particle initial properties callback (depth-based pressure).

#include <ChFsiFluidSystemSPH.h>

Inheritance diagram for chrono::fsi::sph::DepthPressurePropertiesCallback:
Collaboration diagram for chrono::fsi::sph::DepthPressurePropertiesCallback:

Public Member Functions

 DepthPressurePropertiesCallback (double zero_height, ChVector3d init_vel=VNULL)
 
virtual void set (const ChFsiFluidSystemSPH &sysSPH, const ChVector3d &pos) override
 Set values for particle properties. More...
 
- Public Member Functions inherited from chrono::fsi::sph::ChFsiFluidSystemSPH::ParticlePropertiesCallback
 ParticlePropertiesCallback (const ParticlePropertiesCallback &other)=default
 

Additional Inherited Members

- Public Attributes inherited from chrono::fsi::sph::ChFsiFluidSystemSPH::ParticlePropertiesCallback
double p0
 
double rho0
 
double mu0
 
ChVector3d v0
 
ChVector3d tau_diag
 CRM only.
 
ChVector3d tau_offdiag
 CRM only.
 
double consolidation_pressure
 CRM/MCC only.
 

Member Function Documentation

◆ set()

virtual void chrono::fsi::sph::DepthPressurePropertiesCallback::set ( const ChFsiFluidSystemSPH sysSPH,
const ChVector3d pos 
)
inlineoverridevirtual

Set values for particle properties.

If an override is provided, it must set all particle properties for the current problem type:

  • PhysicsProblem::CFD: p0, v0, rho0, mu0
  • PhysicsProblem::CRM (MU_OF_I): p0, v0, rho0, mu0, tau_diag, tau_offdiag
  • PhysicsProblem::CRM (MCC): p0, v0, rho0, mu0, tau_diag, tau_offdiag, consolidation_pressure The default implementation sets zero velocity and constant density and viscosity. The default pressure is set to zero, except for CRM with MCC rheology in which case the pressure is set to 1e3.

Reimplemented from chrono::fsi::sph::ChFsiFluidSystemSPH::ParticlePropertiesCallback.


The documentation for this class was generated from the following file:
  • /builds/uwsbel/chrono/src/chrono_fsi/sph/ChFsiFluidSystemSPH.h