chombo-discharge
Loading...
Searching...
No Matches
CD_BoxSdf.H
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021-2026 SINTEF Energy Research
3 *
4 * SPDX-License-Identifier: GPL-3.0-or-later
5 */
6
13#ifndef CD_BOXSDF_H
14#define CD_BOXSDF_H
15
16// Chombo includes
17#include <BaseIF.H>
18
19// Our includes
20#include <CD_NamespaceHeader.H>
21
25class BoxSdf : public BaseIF
26{
27public:
34 BoxSdf(const RealVect& a_loCorner, const RealVect& a_hiCorner, const bool& a_fluidInside);
35
40 BoxSdf(const BoxSdf& a_inputIF);
41
45 virtual ~BoxSdf();
46
52 virtual Real
53 value(const RealVect& a_pos) const;
54
59 virtual BaseIF*
60 newImplicitFunction() const;
61
62protected:
67
72
77};
78
79#include <CD_NamespaceFooter.H>
80
81#endif
Class for defining a two- or three-dimensional box with arbitrary centroid and orientation.
Definition CD_BoxSdf.H:26
RealVect m_loCorner
Lower left corner.
Definition CD_BoxSdf.H:66
bool m_fluidInside
Fluid inside box or not.
Definition CD_BoxSdf.H:76
virtual BaseIF * newImplicitFunction() const
IF Factory method.
Definition CD_BoxSdf.cpp:57
virtual Real value(const RealVect &a_pos) const
Test if object is on inside or outside.
Definition CD_BoxSdf.cpp:34
virtual ~BoxSdf()
Destructor.
RealVect m_hiCorner
Upper right corner.
Definition CD_BoxSdf.H:71
Base class for a tracer particle solver. This solver can advance particles in a pre-defined velocity ...
Definition CD_TracerParticleSolver.H:38