chombo-discharge
Loading...
Searching...
No Matches
CD_PolyUtils.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_PolyUtils_H
13#define CD_PolyUtils_H
14
15// Chombo includes
16#include <RefCountedPtr.H>
17#include <BaseIF.H>
18
19// Our includes
20#include <CD_NamespaceHeader.H>
21
25namespace PolyUtils {
26
36
43 Real
44 brentSolve(const Real a_point1, const Real a_point2, const std::function<Real(const Real x)> a_func) noexcept;
45} // namespace PolyUtils
46
47#include <CD_NamespaceFooter.H>
48
49#endif
Base class for a tracer particle solver. This solver can advance particles in a pre-defined velocity ...
Definition CD_TracerParticleSolver.H:37
TracerParticleSolver()
Default constructor.
Definition CD_TracerParticleSolverImplem.H:25
Agglomeration class for various useful polynomial routines.
Definition CD_PolyUtils.H:25
Real brentSolve(const Real a_point1, const Real a_point2, const std::function< Real(const Real x)> a_func) noexcept
Compute the root of a function between two points. This is a 1D problem.
Definition CD_PolyUtils.cpp:168
RealVect brentRootFinder(const RefCountedPtr< BaseIF > &a_impFunc, const RealVect &a_point1, const RealVect &a_point2)
Compute the root of a function between two points. This is a 1D problem along the line.
Definition CD_PolyUtils.cpp:24