chombo-discharge
CD_RodIF.H
Go to the documentation of this file.
1 /* chombo-discharge
2  * Copyright © 2021 SINTEF Energy Research.
3  * Please refer to Copyright.txt and LICENSE in the chombo-discharge root directory.
4  */
5 
12 #ifndef CD_RodIF_H
13 #define CD_RodIF_H
14 
15 // Chombo includes
16 #include <BaseIF.H>
17 #include <IntersectionIF.H>
18 
19 // Our includes
20 #include <CD_NamespaceHeader.H>
21 
25 class RodIF : public BaseIF
26 {
27 public:
35  RodIF(const RealVect& a_center1, const RealVect& a_center2, const Real& a_radius, const bool& a_fluidInside);
36 
42  RodIF(const RodIF& a_inputIF);
43 
48  virtual Real
49  value(const RealVect& a_point) const;
50 
54  virtual BaseIF*
55  newImplicitFunction() const;
56 
57 protected:
58  RefCountedPtr<BaseIF> m_baseif;
59 };
60 
61 #include <CD_NamespaceFooter.H>
62 
63 #endif
Cylinder with rounded caps at its ends.
Definition: CD_RodIF.H:26
virtual BaseIF * newImplicitFunction() const
IF factory method.
Definition: CD_RodIF.cpp:59
RodIF(const RealVect &a_center1, const RealVect &a_center2, const Real &a_radius, const bool &a_fluidInside)
Constructor.
Definition: CD_RodIF.cpp:23
virtual Real value(const RealVect &a_point) const
Value function. Returns distance to objcet.
Definition: CD_RodIF.cpp:53