chrono::fsi::sph::ChFsiFluidSystemSPH::ParticlePropertiesCallback Class Reference

Description

Interface for callback to set initial particle pressure, density, viscosity, and velocity.

#include <ChFsiFluidSystemSPH.h>

Inheritance diagram for chrono::fsi::sph::ChFsiFluidSystemSPH::ParticlePropertiesCallback:
Collaboration diagram for chrono::fsi::sph::ChFsiFluidSystemSPH::ParticlePropertiesCallback:

Public Member Functions

 ParticlePropertiesCallback (const ParticlePropertiesCallback &other)=default
 
virtual void set (const ChFsiFluidSystemSPH &sysSPH, const ChVector3d &pos)
 Set values for particle properties. More...
 

Public Attributes

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::ChFsiFluidSystemSPH::ParticlePropertiesCallback::set ( const ChFsiFluidSystemSPH sysSPH,
const ChVector3d pos 
)
inlinevirtual

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 in chrono::fsi::sph::DepthPressurePropertiesCallback.


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