changa 3.5
Loading...
Searching...
No Matches
DenDvDxSmoothParams Class Reference

Parameters and functions for the first SPH smooth: density and velocity derivatives. More...

#include <Sph.h>

Inheritance diagram for DenDvDxSmoothParams:
SmoothParams DenDvDxNeighborSmParams

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.
 
- Public Member Functions inherited from SmoothParams
 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
 
virtual void combSmoothCache (GravityParticle *p1, ExternalSmoothParticle *p2)
 combine cache copy with home particle
 

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

- Public Attributes inherited from SmoothParams
int iType
 Particle type to smooth over; "TreeActive".
 
int activeRung
 Currently active rung.
 
TreePiecetp
 
int bUseBallMax
 

Detailed Description

Parameters and functions for the first SPH smooth: density and velocity derivatives.

Constructor & Destructor Documentation

◆ DenDvDxSmoothParams()

DenDvDxSmoothParams::DenDvDxSmoothParams ( int _iType,
int am,
CSM csm,
double _dTime,
int _bActiveOnly,
int _bConstantDiffusion,
int _bStarting,
int _bHaveAlpha,
double _dAlphaMax )
inline
Parameters
_iTypeType of particle to operate on
amActive rung
csmCosmology information
_dTimeCurrent time
_bActiveOnlyOnly operate on active particles.
_bConstantDiffusionFixed diffusion constant
_bStartingSimulation is starting
_bHaveAlphaNo need to calculate alpha
_dAlphaMaxMaximum SPH alpha

Member Function Documentation

◆ combSmoothCache()

void DenDvDxSmoothParams::combSmoothCache ( GravityParticle * p1,
ExternalSmoothParticle * p2 )
protectedvirtual

combine cache copy with home particle

Parameters
p1pointer to "home" particle data
p2pointer 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.

◆ fcnSmooth()

void DenDvDxSmoothParams::fcnSmooth ( GravityParticle * p,
int nSmooth,
pqSmoothNode * nList )
protectedvirtual

Function to apply to smooth particle and neighbors.

Implements SmoothParams.

◆ initSmoothCache()

void DenDvDxSmoothParams::initSmoothCache ( GravityParticle * p)
protectedvirtual

initialize particles as they come into the cache

Parameters
ppointer to incoming particle data from remote processor

Implements SmoothParams.

◆ initSmoothParticle()

void DenDvDxSmoothParams::initSmoothParticle ( GravityParticle * p)
protectedvirtual

initialize particles to be smoothed

Implements SmoothParams.

◆ initTreeParticle()

void DenDvDxSmoothParams::initTreeParticle ( GravityParticle * p)
protectedvirtual

initialize particles in tree but not smoothed

Implements SmoothParams.

◆ isSmoothActive()

int DenDvDxSmoothParams::isSmoothActive ( GravityParticle * p)
protectedvirtual

Particle is doing a neighbor search.

Implements SmoothParams.

◆ postTreeParticle()

void DenDvDxSmoothParams::postTreeParticle ( GravityParticle * p)
protectedvirtual

calculation on all tree particles after all walks are done

Implements SmoothParams.

◆ pup()

virtual void DenDvDxSmoothParams::pup ( PUP::er & p)
inlinevirtual

required method for remote entry call.

Reimplemented from SmoothParams.

Reimplemented in DenDvDxNeighborSmParams.

Member Data Documentation

◆ bStarting

int DenDvDxSmoothParams::bStarting
protected

We are starting (or restarting) the simulation


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