27 #ifndef SUBCRITICALMASERBOUNDARYTEST_H
28 #define SUBCRITICALMASERBOUNDARYTEST_H
56 void read(std::istream& is)
override;
61 void write(std::ostream& os)
const override;
66 std::string
getName()
const override;
Definition: BaseParticle.h:54
Container to store all BaseParticle.
Definition: ParticleHandler.h:48
Definition: ParticleSpecies.h:37
Defines a pair of periodic walls. Inherits from BaseBoundary.
Definition: PeriodicBoundary.h:41
Definition: SubcriticalMaserBoundaryTEST.h:36
void deactivateMaser()
Stops copying particles, and act merely as a periodic domain.
Definition: SubcriticalMaserBoundaryTEST.cc:261
Mdouble getDistance(const Vec3D &position) const override
gets the distance to the closest wall if maser is inactive, otherwise distance to right wall
Definition: SubcriticalMaserBoundaryTEST.cc:306
void actionsBeforeTimeLoop() override
Definition: SubcriticalMaserBoundaryTEST.cc:101
void setActivationTime(Mdouble time)
sets the activate time of the maser
Definition: SubcriticalMaserBoundaryTEST.cc:293
Mdouble getDistanceFromRight(const Vec3D &position) const
returns the distance to the right wall
Definition: SubcriticalMaserBoundaryTEST.cc:323
void modifyPeriodicComplexity(std::vector< int > &complexity, int &totalPeriodicComplexity, BaseParticle *particle, int i) const override
modifies the periodic complexity to support a maser boundary
Definition: SubcriticalMaserBoundaryTEST.cc:340
void checkBoundaryAfterParticlesMove(ParticleHandler &pH) override
Evaluates what the particles have to do after they have changed position.
Definition: SubcriticalMaserBoundaryTEST.cc:199
void setCopyFlowParticles(bool copyFlowParticles)
Definition: SubcriticalMaserBoundaryTEST.cc:93
std::string getName() const override
Returns the name of the object.
Definition: SubcriticalMaserBoundaryTEST.cc:88
void extendBottom() const
Definition: SubcriticalMaserBoundaryTEST.cc:410
void write(std::ostream &os) const override
writes boundary properties to ostream
Definition: SubcriticalMaserBoundaryTEST.cc:77
bool checkBoundaryAfterParticleMoved(BaseParticle *p, ParticleHandler &pH) const
Shifts the particle to its 'periodic' position if it is a maser particle and has crossed either of th...
Definition: SubcriticalMaserBoundaryTEST.cc:161
Mdouble activationTime_
Time at which the maser opens.
Definition: SubcriticalMaserBoundaryTEST.h:147
void copyExtraParticles() const
Definition: SubcriticalMaserBoundaryTEST.cc:502
~SubcriticalMaserBoundaryTEST() override
destructor
Definition: SubcriticalMaserBoundaryTEST.cc:45
SubcriticalMaserBoundaryTEST()
MaserBoundary constructor.
Definition: SubcriticalMaserBoundaryTEST.cc:33
void activateMaser()
Activates the maser functionaly of this periodic boundary.
Definition: SubcriticalMaserBoundaryTEST.cc:231
void performActionsBeforeAddingParticles() override
Checks before adding particles if the maser needs to be activated.
Definition: SubcriticalMaserBoundaryTEST.cc:393
void read(std::istream &is) override
reads boundary properties from istream
Definition: SubcriticalMaserBoundaryTEST.cc:64
bool maserIsActivated_
Flag whether or not the gap is created and particles transformed already.
Definition: SubcriticalMaserBoundaryTEST.h:142
bool isActivated() const
Returns whether the maser is activated or not.
Definition: SubcriticalMaserBoundaryTEST.cc:283
SubcriticalMaserBoundaryTEST * copy() const override
Creates a copy of this maser on the heap.
Definition: SubcriticalMaserBoundaryTEST.cc:55
void createPeriodicParticle(BaseParticle *p, ParticleHandler &pH) override
Creates periodic particles when the particle is a maser particle and is sufficiently close to one of ...
Definition: SubcriticalMaserBoundaryTEST.cc:127
bool copyFlowParticles_
Flag for whether or not we copy a few blocks of flow particles in the front when activating the maser...
Definition: SubcriticalMaserBoundaryTEST.h:152
void modifyGhostAfterCreation(BaseParticle *particle, int i) override
Definition: SubcriticalMaserBoundaryTEST.cc:374
const std::complex< Mdouble > i
Definition: ExtendedMath.h:51