NURBS3DVolumeI.H
Go to the documentation of this file.
1 /*---------------------------------------------------------------------------*\
2  ========= |
3  \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
4  \\ / O peration |
5  \\ / A nd | www.openfoam.com
6  \\/ M anipulation |
7 -------------------------------------------------------------------------------
8  Copyright (C) 2007-2023 PCOpt/NTUA
9  Copyright (C) 2013-2023 FOSS GP
10  Copyright (C) 2019 OpenCFD Ltd.
11 -------------------------------------------------------------------------------
12 License
13  This file is part of OpenFOAM.
14 
15  OpenFOAM is free software: you can redistribute it and/or modify it
16  under the terms of the GNU General Public License as published by
17  the Free Software Foundation, either version 3 of the License, or
18  (at your option) any later version.
19 
20  OpenFOAM is distributed in the hope that it will be useful, but WITHOUT
21  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
22  FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
23  for more details.
24 
25  You should have received a copy of the GNU General Public License
26  along with OpenFOAM. If not, see <http://www.gnu.org/licenses/>.
27 
28 \*---------------------------------------------------------------------------*/
29 
30 
31 // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
32 
33 inline const Foam::word& Foam::NURBS3DVolume::name() const
34 {
35  return name_;
36 }
37 
38 
40 {
41  return activeControlPoints_;
42 }
43 
44 
45 inline const Foam::boolList&
47 {
48  return activeDesignVariables_;
49 }
50 
51 
53 {
54  return cps_;
55 }
56 
57 
59 {
60  return cps_;
61 }
62 
63 
64 inline bool Foam::NURBS3DVolume::confineUMovement() const
65 {
66  return confineUMovement_;
67 }
68 
69 
70 inline bool Foam::NURBS3DVolume::confineVMovement() const
71 {
72  return confineVMovement_;
73 }
74 
75 
76 inline bool Foam::NURBS3DVolume::confineWMovement() const
77 {
78  return confineWMovement_;
79 }
80 
81 
83 {
84  return basisU_;
85 }
86 
87 
89 {
90  return basisV_;
91 }
92 
93 
95 {
96  return basisW_;
97 }
98 
99 
102 {
103  return Vector<label>(basisU_.nCPs(), basisV_.nCPs(), basisW_.nCPs());
104 }
105 
108 {
109  return mesh_;
110 }
111 
112 
114 {
115  return dict_;
116 }
117 
118 
119 // ************************************************************************* //
bool confineWMovement() const
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Definition: dictionary.H:129
const fvMesh & mesh() const
Get mesh.
const NURBSbasis & basisW() const
const NURBSbasis & basisU() const
Get basis functions.
const boolList & getActiveDesignVariables() const
Which design variables are active?
Vector< label > nCPsPerDirection() const
Get number of control points per direction.
A class for handling words, derived from Foam::string.
Definition: word.H:63
NURBSbasis function. Used to construct NURBS curves, surfaces and volumes.
Definition: NURBSbasis.H:51
Templated 3D Vector derived from VectorSpace adding construction from 3 components, element access using x(), y() and z() member functions and the inner-product (dot-product) and cross-product operators.
Definition: Vector.H:58
const NURBSbasis & basisV() const
Mesh data needed to do the Finite Volume discretisation.
Definition: fvMesh.H:78
const word & name() const
Get box name.
bool confineUMovement() const
Get confine movements.
const boolList & getActiveCPs() const
Which control points are active?
bool confineVMovement() const
const vectorField & getControlPoints() const
Get control points.
const dictionary & dict() const
Get dictionary.