SPH
Classes | Public Member Functions | List of all members
MorrisMonaghanAV Class Reference

Time-dependent artificial viscosity with non-homogeneous oefficients alpha and beta. More...

#include <MorrisMonaghan.h>

Inheritance diagram for MorrisMonaghanAV:
IEquationTerm Polymorphic

Classes

class  Derivative
 

Public Member Functions

virtual void setDerivatives (DerivativeHolder &derivatives, const RunSettings &settings) override
 Sets derivatives required by this term. More...
 
virtual void initialize (IScheduler &UNUSED(scheduler), Storage &UNUSED(storage), const Float UNUSED(t)) override
 
virtual void finalize (IScheduler &UNUSED(scheduler), Storage &storage, const Float UNUSED(t)) override
 
virtual void create (Storage &storage, IMaterial &material) const override
 Creates all quantities needed by the term using given material. More...
 
- Public Member Functions inherited from IEquationTerm
virtual void initialize (IScheduler &scheduler, Storage &storage, const Float t)=0
 Initialize all the derivatives and/or quantity values before derivatives are computed. More...
 
virtual void finalize (IScheduler &scheduler, Storage &storage, const Float t)=0
 Computes all the derivatives and/or quantity values based on accumulated derivatives. More...
 
- Public Member Functions inherited from Polymorphic
virtual ~Polymorphic ()
 

Detailed Description

Time-dependent artificial viscosity with non-homogeneous oefficients alpha and beta.

Coefficient alpha and beta evolve in time using computed derivatives for each particle separately. Although the same mechanism could be used with any artificial viscosity, the current implementation is only an extension of the standard scalar artificial viscosity.

Definition at line 21 of file MorrisMonaghan.h.

Member Function Documentation

◆ create()

virtual void MorrisMonaghanAV::create ( Storage storage,
IMaterial material 
) const
inlineoverridevirtual

Creates all quantities needed by the term using given material.

Called once for every body in the simulation.

Implements IEquationTerm.

Definition at line 101 of file MorrisMonaghan.h.

◆ finalize()

virtual void MorrisMonaghanAV::finalize ( IScheduler UNUSEDscheduler,
Storage storage,
const Float   UNUSED
)
inlineoverridevirtual

Definition at line 80 of file MorrisMonaghan.h.

◆ initialize()

virtual void MorrisMonaghanAV::initialize ( IScheduler UNUSEDscheduler,
Storage UNUSEDstorage,
const Float   UNUSED
)
inlineoverridevirtual

Definition at line 76 of file MorrisMonaghan.h.

◆ setDerivatives()

virtual void MorrisMonaghanAV::setDerivatives ( DerivativeHolder derivatives,
const RunSettings settings 
)
inlineoverridevirtual

Sets derivatives required by this term.

The derivatives are then automatically evaluated by the solver, the equation term can access the result in finalize function. This function is called once for each thread at the beginning of the run.

Implements IEquationTerm.

Definition at line 71 of file MorrisMonaghan.h.


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