Parameters and functions for the first SPH smooth: density and velocity derivatives. More...
#include <Sph.h>
Public Member Functions | |
DenDvDxSmoothParams (int _iType, int am, CSM csm, double _dTime, int _bActiveOnly, int _bConstantDiffusion, int _bStarting, int _bHaveAlpha, double _dAlphaMax) | |
PUPable_decl (DenDvDxSmoothParams) | |
DenDvDxSmoothParams (CkMigrateMessage *m) | |
virtual void | pup (PUP::er &p) |
required method for remote entry call. | |
![]() | |
PUPable_abstract (SmoothParams) | |
SmoothParams (CkMigrateMessage *m) | |
Protected Member Functions | |
virtual void | fcnSmooth (GravityParticle *p, int nSmooth, pqSmoothNode *nList) |
Function to apply to smooth particle and neighbors. | |
virtual int | isSmoothActive (GravityParticle *p) |
Particle is doing a neighbor search. | |
virtual void | initTreeParticle (GravityParticle *p) |
initialize particles in tree but not smoothed | |
virtual void | postTreeParticle (GravityParticle *p) |
calculation on all tree particles after all walks are done | |
virtual void | initSmoothParticle (GravityParticle *p) |
initialize particles to be smoothed | |
virtual void | initSmoothCache (GravityParticle *p) |
initialize particles as they come into the cache More... | |
virtual void | combSmoothCache (GravityParticle *p1, ExternalSmoothParticle *p2) |
combine cache copy with home particle More... | |
Protected Attributes | |
double | a |
double | H |
int | bActiveOnly |
int | bConstantDiffusion |
double | dTime |
double | dAlphaMax |
Maximum SPH alpha. | |
int | bStarting |
int | bHaveAlpha |
Alpha has been read in. | |
Additional Inherited Members | |
![]() | |
int | iType |
Particle type to smooth over; "TreeActive". | |
int | activeRung |
Currently active rung. | |
TreePiece * | tp |
int | bUseBallMax |
Parameters and functions for the first SPH smooth: density and velocity derivatives.
|
inline |
_iType | Type of particle to operate on |
am | Active rung |
csm | Cosmology information |
_dTime | Current time |
_bActiveOnly | Only operate on active particles. |
_bConstantDiffusion | Fixed diffusion constant |
_bStarting | Simulation is starting |
_bHaveAlpha | No need to calculate alpha |
_dAlphaMax | Maximum SPH alpha |
|
protectedvirtual |
combine cache copy with home particle
p1 | pointer to "home" particle data |
p2 | pointer to particle data being flushed back from a remote treepiece. |
This method enables commutative/associative operations to be performed on remote data by combining data accumulated by a remote processor in p2 with the data on the home particle, p1. Any accumulators used in this function should be initialized in initSmoothCache() to avoid double counting.
Implements SmoothParams.
|
protectedvirtual |
initialize particles as they come into the cache
p | pointer to incoming particle data from remote processor |
Implements SmoothParams.
|
protected |
We are starting (or restarting) the simulation