SPH
Public Member Functions | List of all members
ElasticRheology Class Reference

Perfectly elastic material, no yielding nor fragmentation. More...

#include <Rheology.h>

Inheritance diagram for ElasticRheology:
IRheology Polymorphic

Public Member Functions

virtual void create (Storage &storage, IMaterial &material, const MaterialInitialContext &context) const override
 Creates all the necessary quantities and material parameters needed by the rheology. More...
 
virtual void initialize (IScheduler &scheduler, Storage &storage, const MaterialView material) override
 Evaluates the stress tensor reduction factors. More...
 
virtual void integrate (IScheduler &scheduler, Storage &storage, const MaterialView material) override
 Computes derivatives of the time-dependent quantities of the rheological model. More...
 
- Public Member Functions inherited from Polymorphic
virtual ~Polymorphic ()
 

Detailed Description

Perfectly elastic material, no yielding nor fragmentation.

Definition at line 109 of file Rheology.h.

Member Function Documentation

◆ create()

void ElasticRheology::create ( Storage storage,
IMaterial material,
const MaterialInitialContext context 
) const
overridevirtual

Creates all the necessary quantities and material parameters needed by the rheology.

The function is called for each body added to the simulation.

Parameters
storageParticle storage, containing particle positions and their masses (optionally also other quantities). Particles belong only to the body being created, other bodies have separate storages.
materialMaterial containing input material parameters. The rheology may sets the timestepping parameters (range and minimal values) of the material.
contextShared data for creating all materials in the simulation.

Implements IRheology.

Definition at line 216 of file Rheology.cpp.

◆ initialize()

void ElasticRheology::initialize ( IScheduler scheduler,
Storage storage,
const MaterialView  material 
)
overridevirtual

Evaluates the stress tensor reduction factors.

Called for every material in the simulation every timestep, before iteration over particle pairs

Parameters
schedulerScheduler used for parallelization.
storageStorage including all the particles.
materialMaterial properties and sequence of particles with this material. Implementation should only modify particles with indices in this sequence.

Implements IRheology.

Definition at line 223 of file Rheology.cpp.

◆ integrate()

void ElasticRheology::integrate ( IScheduler scheduler,
Storage storage,
const MaterialView  material 
)
overridevirtual

Computes derivatives of the time-dependent quantities of the rheological model.

Called for every material in the simulation every timestep, after all derivatives are computed.

Parameters
schedulerScheduler used for parallelization.
storageStorage including all the particles.
materialMaterial properties and sequence of particles with this material. Implementation should only modify particles with indices in this sequence.

Implements IRheology.

Definition at line 227 of file Rheology.cpp.


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