Documentation 6b54b78464
Loading...
Searching...
No Matches
CFreeFormBlending.hpp
Go to the documentation of this file.
1/*!
2 * \file CFreeFormBlending.hpp
3 * \brief Headers of the CFreeFormBlending class.
4 * It is the parent class for the FFD blending function
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/*!
30 * \class CFreeFormBlending
31 * \brief Class that defines the particular kind of blending function for the free form deformation.
32 * \author T. Albring
33 */
34
35#pragma once
36
37#include "../basic_types/datatype_structure.hpp"
38
40 protected:
41 unsigned short Order, /*!< \brief Order of the polynomial basis. */
42 Degree, /*!< \brief Degree (Order - 1) of the polynomial basis. */
43 nControl; /*!< \brief Number of control points. */
44
45 public:
46 /*!
47 * \brief Constructor of the class.
48 */
50
51 /*!
52 * \brief Destructor of the class.
53 */
55
56 /*!
57 * \brief A pure virtual member.
58 * \param[in] val_i - index of the basis function.
59 * \param[in] val_t - Point at which we want to evaluate the i-th basis.
60 */
61 inline virtual su2double GetBasis(short val_i, su2double val_t) { return 0.0; }
62
63 /*!
64 * \brief A pure virtual member.
65 * \param[in] val_i - index of the basis function.
66 * \param[in] val_t - Point at which we want to evaluate the derivative of the i-th basis.
67 * \param[in] val_order - Order of the derivative.
68 */
69 inline virtual su2double GetDerivative(short val_i, su2double val_t, short val_order) { return 0.0; }
70
71 /*!
72 * \brief A pure virtual member.
73 * \param[in] val_order - The new order of the function.
74 * \param[in] n_controlpoints - the new number of control points.
75 */
76 inline virtual void SetOrder(short val_order, short n_controlpoints) {}
77
78 /*!
79 * \brief Returns the current order of the function.
80 */
81 inline su2double GetOrder() const { return Order; }
82
83 /*!
84 * \brief Returns the current degree of the function.
85 */
86 inline su2double GetDegree() const { return Degree; }
87};
Class that defines the particular kind of blending function for the free form deformation.
Definition CFreeFormBlending.hpp:39
su2double GetOrder() const
Returns the current order of the function.
Definition CFreeFormBlending.hpp:81
unsigned short nControl
Number of control points.
Definition CFreeFormBlending.hpp:43
su2double GetDegree() const
Returns the current degree of the function.
Definition CFreeFormBlending.hpp:86
virtual void SetOrder(short val_order, short n_controlpoints)
A pure virtual member.
Definition CFreeFormBlending.hpp:76
unsigned short Degree
Degree (Order - 1) of the polynomial basis.
Definition CFreeFormBlending.hpp:42
virtual su2double GetDerivative(short val_i, su2double val_t, short val_order)
A pure virtual member.
Definition CFreeFormBlending.hpp:69
virtual ~CFreeFormBlending()
Destructor of the class.
unsigned short Order
Order of the polynomial basis.
Definition CFreeFormBlending.hpp:41
virtual su2double GetBasis(short val_i, su2double val_t)
A pure virtual member.
Definition CFreeFormBlending.hpp:61
CFreeFormBlending()
Constructor of the class.
passivedouble su2double
Definition code_config.hpp:181