VM2D 1.14
Vortex methods for 2D flows simulation
Loading...
Searching...
No Matches
PassportGen.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: PassportGen.h |
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
40#include "defs.h"
41#include "PassportGen.h"
42#include "Preprocessor.h"
43#include "StreamParser.h"
44
45using namespace VMlib;
46
47//Конструктор
48PassportGen::PassportGen(LogStream& infoStream, const std::string& _problemName, const size_t _problemNumber, const std::string& _filePassport, const std::string& _mechanics, const std::string& _defaults, const std::string& _switchers, const std::vector<std::string>& vars)
49: problemName(_problemName), problemNumber(_problemNumber)
50{
51 std::stringstream ss;
52 ss << "#" << problemNumber << " (" << problemName <<") passport";
53 info.inheritStream(infoStream, ss.str());
54
55 dir = "./" + problemName + "/";
56}//PassportGen(...)
Заголовочный файл с описанием класса PasportGen.
Заголовочный файл с описанием класса Preprocessor.
Заголовочный файл с описанием класса StreamParser.
Класс, определяющий работу с потоком логов
Definition LogStream.h:57
void inheritStream(LogStream &infoStream_, const std::string &label_)
Связывание потока логов с потоком вывода от другого потока логов
Definition LogStream.h:93
LogStream info
Поток для вывода логов и сообщений об ошибках
std::string problemName
Название задачи
std::string dir
Рабочий каталог задачи
PassportGen(LogStream &infoStream, const std::string &_problemName, const size_t _problemNumber, const std::string &_filePassport, const std::string &_mechanics, const std::string &_defaults, const std::string &_switchers, const std::vector< std::string > &vars)
Конструктор
size_t problemNumber
Номер задачи
Описание базовых вспомогательных функций