chombo-discharge
Loading...
Searching...
No Matches
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
24class BoxSdf : public BaseIF
25{
26public:
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
58protected:
63
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
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
Base class for a tracer particle solver. This solver can advance particles in a pre-defined velocity ...
Definition CD_TracerParticleSolver.H:37