SphericalParticle.h
Go to the documentation of this file.
1 // This file is part of the MercuryDPM project (https://www.mercurydpm.org).
2 // Copyright (c), The MercuryDPM Developers Team. All rights reserved.
3 // License: BSD 3-Clause License; see the LICENSE file in the root directory.
4 
5 #ifndef SphericalParticle_H
6 #define SphericalParticle_H
7 
8 #include "BaseParticle.h"
9 
16 {
17 public:
18 
22  SphericalParticle() = default;
23 
30 
35 
36  ~SphericalParticle() override = default;
37 
41  SphericalParticle* copy() const override {
42  return new SphericalParticle(*this);
43  }
44 
49  std::string getName() const override {
50  return "BaseParticle";
51  }
52 
53  bool isSphericalParticle() const override {return true;}
54 };
55 #endif
float * p
Definition: Tutorial_Map_using.cpp:9
Definition: BaseParticle.h:33
Definition: ParticleSpecies.h:16
A spherical particle is the most simple particle used in MercuryDPM.
Definition: SphericalParticle.h:16
SphericalParticle(const ParticleSpecies *s)
Particle constructor, setting the species. This is useful to create e.g. template particles for the I...
Definition: SphericalParticle.h:29
SphericalParticle(const SphericalParticle &p)=default
Particle constructor.
bool isSphericalParticle() const override
Definition: SphericalParticle.h:53
SphericalParticle()=default
Particle constructor.
SphericalParticle * copy() const override
Particle copy method. Calls copy constructor of this class (useful for polymorphism)
Definition: SphericalParticle.h:41
~SphericalParticle() override=default
std::string getName() const override
Returns the name of the object.
Definition: SphericalParticle.h:49
RealScalar s
Definition: level1_cplx_impl.h:130
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286