Class SourceDensityGrid1D
Defined in File Source.h
Inheritance Relationships
Base Type
public SourceFeature
(Class SourceFeature)
Class Documentation
-
class SourceDensityGrid1D : public SourceFeature
Random source positions from a 1D density grid.
Public Functions
-
SourceDensityGrid1D(ref_ptr<Grid1f> densityGrid)
Constructor
- Parameters:
densityGrid – 1D grid containing the density of sources in each cell, Ny and Nz must be 1
-
virtual void prepareParticle(ParticleState &particle) const
-
void setDescription()
-
std::string getDescription() const
-
inline size_t addReference() const
-
inline size_t removeReference() const
-
inline int removeReferenceNoDelete() const
-
inline size_t getReferenceCount() const
-
SourceDensityGrid1D(ref_ptr<Grid1f> densityGrid)