ParabolaChute.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 PARABOLA_H
6 #define PARABOLA_H
7 
8 #include "BaseWall.h"
9 #include "Math/Vector.h"
10 
13 class ParabolaChute : public BaseWall
14 {
15 public:
19  ParabolaChute();
20 
24  ParabolaChute(const ParabolaChute& other);
25 
29  ParabolaChute(Mdouble length, Mdouble widthscale);
30 
31  ~ParabolaChute() override;
32 
33  void set(Mdouble length, Mdouble widthscale);
34 
35  ParabolaChute* copy() const override;
36 
37  bool getDistanceAndNormal(const BaseParticle& P, Mdouble& distance, Vec3D& normal_return) const override;
38 
40  getInteractionWith(BaseParticle* p, unsigned timeStamp, InteractionHandler* interactionHandler) override;
41 
42  void read(std::istream& is) override;
43 
44  void write(std::ostream& os) const override;
45 
46  std::string getName() const override;
47 
48 private:
51 };
52 
53 #endif
float * p
Definition: Tutorial_Map_using.cpp:9
Stores information about interactions between two interactable objects; often particles but could be ...
Definition: BaseInteraction.h:39
Definition: BaseParticle.h:33
Basic class for walls.
Definition: BaseWall.h:28
Container to store Interaction objects.
Definition: InteractionHandler.h:25
Definition: ParabolaChute.h:14
bool getDistanceAndNormal(const BaseParticle &P, Mdouble &distance, Vec3D &normal_return) const override
Pure virtual function that computes the distance of a BaseParticle to this wall and returns the norma...
Definition: ParabolaChute.cc:48
BaseInteraction * getInteractionWith(BaseParticle *p, unsigned timeStamp, InteractionHandler *interactionHandler) override
Returns the interaction between this wall and a given particle, nullptr if there is no interaction.
void write(std::ostream &os) const override
Function that writes a BaseWall to an output stream, usually a restart file.
std::string getName() const override
A purely virtual function.
Mdouble ws_
Definition: ParabolaChute.h:50
ParabolaChute()
Default constructor, sets a chute with default parameters.
Definition: ParabolaChute.cc:9
void set(Mdouble length, Mdouble widthscale)
Definition: ParabolaChute.cc:36
~ParabolaChute() override
Definition: ParabolaChute.cc:31
void read(std::istream &is) override
Function that reads a BaseWall from an input stream, usually a restart file.
ParabolaChute * copy() const override
Pure virtual function that can be overwritten in inherited classes in order to copy a BaseWall.
Mdouble l_
Definition: ParabolaChute.h:49
Definition: Kernel/Math/Vector.h:30
double P
Uniform pressure.
Definition: TwenteMeshGluing.cpp:77
std::string string(const unsigned &i)
Definition: oomph_definitions.cc:286