VM2D  1.12
Vortex methods for 2D flows simulation
Sheet2D.cpp
Go to the documentation of this file.
1 /*--------------------------------*- VM2D -*-----------------*---------------*\
2 | ## ## ## ## #### ##### | | Version 1.12 |
3 | ## ## ### ### ## ## ## ## | VM2D: Vortex Method | 2024/01/14 |
4 | ## ## ## # ## ## ## ## | for 2D Flow Simulation *----------------*
5 | #### ## ## ## ## ## | Open Source Code |
6 | ## ## ## ###### ##### | https://www.github.com/vortexmethods/VM2D |
7 | |
8 | Copyright (C) 2017-2024 I. Marchevsky, K. Sokol, E. Ryatina, A. Kolganova |
9 *-----------------------------------------------------------------------------*
10 | File name: Sheet2D.cpp |
11 | Info: Source code of VM2D |
12 | |
13 | This file is part of VM2D. |
14 | VM2D is free software: you can redistribute it and/or modify it |
15 | under the terms of the GNU General Public License as published by |
16 | the Free Software Foundation, either version 3 of the License, or |
17 | (at your option) any later version. |
18 | |
19 | VM2D is distributed in the hope that it will be useful, but WITHOUT |
20 | ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
21 | FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
22 | for more details. |
23 | |
24 | You should have received a copy of the GNU General Public License |
25 | along with VM2D. If not, see <http://www.gnu.org/licenses/>. |
26 \*---------------------------------------------------------------------------*/
27 
28 
41 #include "Sheet2D.h"
42 
43 #include "Airfoil2D.h"
44 #include "Boundary2D.h"
45 #include "MeasureVP2D.h"
46 #include "Mechanics2D.h"
47 #include "Preprocessor.h"
48 #include "StreamParser.h"
49 #include "Velocity2D.h"
50 #include "Wake2D.h"
51 #include "World2D.h"
52 
53 using namespace VM2D;
54 
55 Sheet::Sheet(const World2D& W_, int dim_)
56  : W(W_), dim(dim_)
57 { };
58 
59 
60 void Sheet::SetLayers(size_t np)
61 {
62  freeVortexSheet_.resize(np * dim, 0.0);
63  attachedVortexSheet_.resize(np * dim, 0.0);
64  attachedSourceSheet_.resize(np * dim, 0.0);
65 };//SetLayers(...)
std::vector< double > freeVortexSheet_
Список из характеристик свободного вихревого слоя на панелях
Definition: Sheet2D.h:65
Заголовочный файл с описанием класса Wake.
Заголовочный файл с описанием класса World2D.
Заголовочный файл с описанием класса Airfoil.
Заголовочный файл с описанием класса Preprocessor.
Заголовочный файл с описанием класса Mechanics.
std::vector< double > attachedSourceSheet_
Список из характеристик присоединенного слоя источников на панелях
Definition: Sheet2D.h:71
std::vector< double > attachedVortexSheet_
Список из характеристик присоединенного вихревого слоя на панелях
Definition: Sheet2D.h:68
Заголовочный файл с описанием класса SheetV.
void SetLayers(size_t np)
Установка pазмерностей всех векторов и их обнуление
Definition: Sheet2D.cpp:60
Definition: Airfoil2D.h:45
Заголовочный файл с описанием класса StreamParser.
Заголовочный файл с описанием класса MeasureVP.
const int dim
Число параметров в описании каждого слоя
Definition: Sheet2D.h:78
Sheet(const World2D &W_, int dim_)
Конструктор
Definition: Sheet2D.cpp:55
Класс, опеделяющий текущую решаемую задачу
Definition: World2D.h:68
Заголовочный файл с описанием класса Velocity.
Заголовочный файл с описанием класса Boundary.