VM2D 1.14
Vortex methods for 2D flows simulation
Loading...
Searching...
No Matches
VM2D.cpp
Go to the documentation of this file.
1/*--------------------------------*- VM2D -*-----------------*---------------*\
2| ## ## ## ## #### ##### | | Version 1.14 |
3| ## ## ### ### ## ## ## ## | VM2D: Vortex Method | 2026/03/06 |
4| ## ## ## # ## ## ## ## | for 2D Flow Simulation *----------------*
5| #### ## ## ## ## ## | Open Source Code |
6| ## ## ## ###### ##### | https://www.github.com/vortexmethods/VM2D |
7| |
8| Copyright (C) 2017-2026 I. Marchevsky, K. Sokol, E. Ryatina, A. Kolganova |
9*-----------------------------------------------------------------------------*
10| File name: VM2D.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
51#include "Queue.h"
52
53using namespace VMlib;
54
56{
57}
58
59
60int main(int argc, char** argv)
61{
63 Queue queue(argc, argv);
64 queue.LoadTasksList("problems", "mechanics", "defaults", "switchers");
65
66 do
67 {
68 queue.TaskSplit();
69 queue.RunConveyer();
70 queue.TaskUpdate();
71 }
72 while (queue.nextKvant);
73}
74
Заголовочный файл с описанием класса Queue.
int main(int argc, char **argv)
Definition VM2D.cpp:60
void Initializers()
Definition VM2D.cpp:55
Класс, опеделяющий список решаемых задач и очередь их прохождения
Definition Queue.h:76
void LoadTasksList(const std::string &_tasksFile, const std::string &_mechanicsFile, const std::string &_defaultsFile, const std::string &_switchersFile)
Загрузка списка задач
Definition Queue.cpp:712
void RunConveyer()
Запуск вычислительного конвейера (в рамках кванта времени)
Definition Queue.cpp:655
void TaskUpdate()
Процедура обновления состояния задач и процессоров
Definition Queue.cpp:485
void TaskSplit()
Процедура постановка новых задач на отсчет и занятие процессоров
Definition Queue.cpp:128
int nextKvant
Признак необходимости выполнения следующего кванта и продолжения расчета
Definition Queue.h:220