chombo-discharge
Loading...
Searching...
No Matches
CD_NeedleIF.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_NEEDLEIF_H
14#define CD_NEEDLEIF_H
15
16// Chombo includes
17#include <BaseIF.H>
18#include <RefCountedPtr.H>
19
20// Our includes
21#include <CD_NamespaceHeader.H>
22
26class NeedleIF : public BaseIF
27{
28public:
37 NeedleIF(const Real& a_length,
38 const Real& a_radius,
39 const Real& a_tipRadius,
40 const Real& a_angle,
41 const bool& a_flipInside);
42
48
54 virtual Real
55 value(const RealVect& a_point) const override;
56
61 virtual BaseIF*
62 newImplicitFunction() const override;
63
64protected:
69
74};
75
76#include <CD_NamespaceFooter.H>
77
78#endif
Cylinder with one pointed end and one circular end.
Definition CD_NeedleIF.H:27
RefCountedPtr< BaseIF > m_implicitFunction
Base implicit function. This is a union between a cylinder and a cone.
Definition CD_NeedleIF.H:68
virtual Real value(const RealVect &a_point) const override
Value function. Returns distance to object.
Definition CD_NeedleIF.cpp:64
Real m_tipRadius
curvature-radius of needle tip
Definition CD_NeedleIF.H:73
virtual BaseIF * newImplicitFunction() const override
IF factory method.
Definition CD_NeedleIF.cpp:73
Base class for a tracer particle solver. This solver can advance particles in a pre-defined velocity ...
Definition CD_TracerParticleSolver.H:38