chombo-discharge
Loading...
Searching...
No Matches
CD_RoundedBoxIF.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_ROUNDEDBOXIF_H
14#define CD_ROUNDEDBOXIF_H
15
16// Chombo includes
17#include <RealVect.H>
18#include <BaseIF.H>
19
20// Our includes
21#include <CD_NamespaceHeader.H>
22
26class RoundedBoxIF : public BaseIF
27{
28public:
32 RoundedBoxIF() = delete;
33
42 const RealVect& a_hiCorner,
43 const Real a_curvature,
44 const bool a_fluidInside);
45
51
55 virtual ~RoundedBoxIF();
56
62 virtual Real
63 value(const RealVect& a_point) const override;
64
69 virtual BaseIF*
70 newImplicitFunction() const override;
71
72protected:
77
82};
83
84#include <CD_NamespaceFooter.H>
85
86#endif
A box with rounded corners and edges.
Definition CD_RoundedBoxIF.H:27
virtual BaseIF * newImplicitFunction() const override
IF factory method.
Definition CD_RoundedBoxIF.cpp:81
virtual Real value(const RealVect &a_point) const override
Get distance to object.
Definition CD_RoundedBoxIF.cpp:67
RefCountedPtr< BaseIF > m_baseIF
Implicit function (which is union between planes)
Definition CD_RoundedBoxIF.H:81
RoundedBoxIF()=delete
Disallowed weak construction.
virtual ~RoundedBoxIF()
Destructor.
bool m_fluidInside
Fluid on inside or not.
Definition CD_RoundedBoxIF.H:76
Base class for a tracer particle solver. This solver can advance particles in a pre-defined velocity ...
Definition CD_TracerParticleSolver.H:38