AQUAgpusph
5.0.4
Loading...
Searching...
No Matches
aquagpusph
aquagpusph
FileManager.hpp
Go to the documentation of this file.
1
/*
2
* This file is part of AQUAgpusph, a free CFD program based on SPH.
3
* Copyright (C) 2012 Jose Luis Cercos Pita <jl.cercos@upm.es>
4
*
5
* AQUAgpusph is free software: you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License as published by
7
* the Free Software Foundation, either version 3 of the License, or
8
* (at your option) any later version.
9
*
10
* AQUAgpusph is distributed in the hope that it will be useful,
11
* but WITHOUT ANY WARRANTY; without even the implied warranty of
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
* GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License
16
* along with AQUAgpusph. If not, see <http://www.gnu.org/licenses/>.
17
*/
18
23
24
#ifndef FILEMANAGER_H_INCLUDED
25
#define FILEMANAGER_H_INCLUDED
26
27
#include <string>
28
#include <vector>
29
30
#include "
sphPrerequisites.hpp
"
31
#include "
ProblemSetup.hpp
"
32
#include "
CalcServer/CalcServer.hpp
"
33
#include "
InputOutput/State.hpp
"
34
#include "
InputOutput/Particles.hpp
"
35
36
namespace
Aqua
{
38
namespace
InputOutput
{
39
49
class
DECLDIR
FileManager
50
{
51
public
:
53
FileManager
();
54
56
~FileManager
();
57
66
void
inputFile
(std::string path);
67
76
std::string
inputFile
() {
return
_in_file; }
77
90
ProblemSetup
&
problemSetup
() {
return
_simulation; }
91
102
CalcServer::CalcServer
* load();
103
115
void
save(
float
t);
116
125
void
waitForSavers();
126
127
private
:
129
State
_state;
130
132
ProblemSetup
_simulation;
133
135
std::string _in_file;
136
138
std::vector<Particles*> _loaders;
139
141
std::vector<Particles*> _savers;
142
};
// class FileManager
143
144
}
145
}
// namespaces
146
147
#endif
// FILEMANAGER_H_INCLUDED
CalcServer.hpp
The calculation main entry point. (See Aqua::CalcServer::CalcServer for details)
Particles.hpp
Particles files manager. (See Aqua::InputOutput::Particles for details)
ProblemSetup.hpp
Simulation configuration data structures. (See Aqua::InputOutput::ProblemSetup for details)
State.hpp
Simulation configuration files manager. (See Aqua::InputOutput::State for details)
Aqua::CalcServer::CalcServer
Entity that perform the main work of the simulation.
Definition
CalcServer.hpp:202
Aqua::InputOutput::FileManager::problemSetup
ProblemSetup & problemSetup()
Get the simulation setup, extracted from the XML definition files.
Definition
FileManager.hpp:90
Aqua::InputOutput::FileManager::inputFile
std::string inputFile()
Get the main XML input file path.
Definition
FileManager.hpp:76
Aqua::InputOutput::FileManager::inputFile
void inputFile(std::string path)
Set the main XML input file path.
Definition
FileManager.cpp:54
Aqua::InputOutput::FileManager::FileManager
FileManager()
Constructor.
Definition
FileManager.cpp:36
Aqua::InputOutput::ProblemSetup
Simulation configuration data.
Definition
ProblemSetup.hpp:91
Aqua::InputOutput
Input/Output data interfaces.
Definition
ArgumentsManager.cpp:51
Aqua
Main AQUAgpusph namespace.
Definition
ArgumentsManager.cpp:50
State
Definition
State.py:1
sphPrerequisites.hpp
Set of definitions and macros related with the implementation.
DECLDIR
#define DECLDIR
Prefix to export C functions on the compiled library.
Definition
sphPrerequisites.hpp:65
Generated by
1.14.0