chombo-discharge
CD_BoxSdf.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_BoxSdf_H
13 #define CD_BoxSdf_H
14 
15 // Chombo includes
16 #include <BaseIF.H>
17 
18 // Our includes
19 #include <CD_NamespaceHeader.H>
20 
24 class BoxSdf : public BaseIF
25 {
26 public:
33  BoxSdf(const RealVect& a_loCorner, const RealVect& a_hiCorner, const bool& a_fluidInside);
34 
39  BoxSdf(const BoxSdf& a_inputIF);
40 
44  virtual ~BoxSdf();
45 
49  virtual Real
50  value(const RealVect& a_pos) const;
51 
55  virtual BaseIF*
56  newImplicitFunction() const;
57 
58 protected:
62  RealVect m_loCorner;
63 
67  RealVect m_hiCorner;
68 
73 };
74 
75 #include <CD_NamespaceFooter.H>
76 
77 #endif
Class for defining a two- or three-dimensional box with arbitrary centroid and orientation.
Definition: CD_BoxSdf.H:25
BoxSdf(const RealVect &a_loCorner, const RealVect &a_hiCorner, const bool &a_fluidInside)
Base constructor.
Definition: CD_BoxSdf.cpp:22
RealVect m_loCorner
Lower left corner.
Definition: CD_BoxSdf.H:62
bool m_fluidInside
Fluid inside box or not.
Definition: CD_BoxSdf.H:72
virtual BaseIF * newImplicitFunction() const
IF Factory method.
Definition: CD_BoxSdf.cpp:63
virtual Real value(const RealVect &a_pos) const
Test if object is on inside or outside.
Definition: CD_BoxSdf.cpp:40
virtual ~BoxSdf()
Destructor.
Definition: CD_BoxSdf.cpp:36
RealVect m_hiCorner
Upper right corner.
Definition: CD_BoxSdf.H:67