Documentation 6b54b78464
Loading...
Searching...
No Matches
CBSplineBlending.hpp
Go to the documentation of this file.
1/*!
2 * \file CBSplineBlending.hpp
3 * \brief Headers of the CBSplineBlending class.
4 * Defines blending using uniform BSplines
5 * \author T. Albring
6 * \version 8.5.0 "Harrier"
7 *
8 * SU2 Project Website: https://su2code.github.io
9 *
10 * The SU2 Project is maintained by the SU2 Foundation
11 * (http://su2foundation.org)
12 *
13 * Copyright 2012-2026, SU2 Contributors (cf. AUTHORS.md)
14 *
15 * SU2 is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU Lesser General Public
17 * License as published by the Free Software Foundation; either
18 * version 2.1 of the License, or (at your option) any later version.
19 *
20 * SU2 is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
23 * Lesser General Public License for more details.
24 *
25 * You should have received a copy of the GNU Lesser General Public
26 * License along with SU2. If not, see <http://www.gnu.org/licenses/>.
27 */
28
29#pragma once
30
31#include "CFreeFormBlending.hpp"
32#include <vector>
33
34using namespace std;
35
36/*!
37 * \class CBSplineBlending
38 * \brief Class that defines the blending using uniform BSplines.
39 * \author T. Albring
40 */
42 private:
43 vector<su2double> U; /*!< \brief The knot vector for uniform BSplines on the interval [0,1]. */
44 vector<vector<su2double> > N; /*!< \brief The temporary matrix holding the j+p basis functions up to order p. */
45 unsigned short KnotSize; /*!< \brief The size of the knot vector. */
46
47 public:
48 /*!
49 * \brief Constructor of the class.
50 */
51 CBSplineBlending(short val_order, short n_controlpoints);
52
53 /*!
54 * \brief Destructor of the class.
55 */
57
58 /*!
59 * \brief Returns the value of the i-th basis function and stores the values of the i+p basis functions in the matrix
60 * N. \param[in] val_i - index of the basis function. \param[in] val_t - Point at which we want to evaluate the i-th
61 * basis.
62 */
63 su2double GetBasis(short val_i, su2double val_t) override;
64
65 /*!
66 * \brief Returns the value of the derivative of the i-th basis function.
67 * \param[in] val_i - index of the basis function.
68 * \param[in] val_t - Point at which we want to evaluate the derivative of the i-th basis.
69 * \param[in] val_order - Order of the derivative.
70 */
71 su2double GetDerivative(short val_i, su2double val_t, short val_order_der) override;
72
73 /*!
74 * \brief Set the order and number of control points.
75 * \param[in] val_order - The new order of the function.
76 * \param[in] n_controlpoints - the new number of control points.
77 */
78 void SetOrder(short val_order, short n_controlpoints) override;
79};
Headers of the CFreeFormBlending class. It is the parent class for the FFD blending function.
Class that defines the blending using uniform BSplines.
Definition CBSplineBlending.hpp:41
su2double GetBasis(short val_i, su2double val_t) override
Returns the value of the i-th basis function and stores the values of the i+p basis functions in the ...
Definition CBSplineBlending.cpp:66
su2double GetDerivative(short val_i, su2double val_t, short val_order_der) override
Returns the value of the derivative of the i-th basis function.
Definition CBSplineBlending.cpp:110
~CBSplineBlending() override
Destructor of the class.
void SetOrder(short val_order, short n_controlpoints) override
Set the order and number of control points.
Definition CBSplineBlending.cpp:37
Class that defines the particular kind of blending function for the free form deformation.
Definition CFreeFormBlending.hpp:39
passivedouble su2double
Definition code_config.hpp:181