AQUAgpusph 4.1.2
Loading...
Searching...
No Matches
Report.h
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
24#ifndef REPORTS_REPORT_H_INCLUDED
25#define REPORTS_REPORT_H_INCLUDED
26
27#include <sphPrerequisites.h>
28
29#include <vector>
30#include <Variable.h>
31#include <CalcServer/Tool.h>
32
33namespace Aqua{ namespace CalcServer{
35namespace Reports{
36
49{
50public:
59 Report(const std::string tool_name,
60 const std::string fields,
61 unsigned int ipf=1,
62 float fps=0.f);
63
66 virtual ~Report();
67
70 virtual void setup();
71
79 const std::string data(bool with_title=true, bool with_names=true);
80
81protected:
84 void processFields(const std::string fields);
85
89 std::vector<InputOutput::Variable*> variables(){return _vars;}
90
97 bool mustUpdate();
98private:
100 std::string _fields;
102 unsigned int _ipf;
104 float _fps;
106 unsigned int _iter;
108 float _t;
110 std::string _data;
112 std::vector<unsigned int> _vars_per_line;
114 std::vector<InputOutput::Variable*> _vars;
115};
116
117}}} // namespace
118
119#endif // REPORTS_REPORT_H_INCLUDED
Tools virtual environment to allow the user to define/manipulate the tools used to carry out the simu...
Virtual variables environment to allow the user define/manipulate the variables used in the simulatio...
Runtime outputs base class.
Definition: Report.h:49
virtual ~Report()
Destructor.
Definition: Report.cpp:44
std::vector< InputOutput::Variable * > variables()
Get the variables list.
Definition: Report.h:89
const std::string data(bool with_title=true, bool with_names=true)
Return the text string of the data to be printed.
Definition: Report.cpp:56
virtual void setup()
Initialize the tool.
Definition: Report.cpp:50
void processFields(const std::string fields)
Compute the fields by lines.
Definition: Report.cpp:86
bool mustUpdate()
Check if an output must be performed.
Definition: Report.cpp:124
Tools base class. The way that AQUAgpusph compute each problem is set through a set of tools that are...
Definition: Tool.h:46
__kernel void fields(__global const unsigned int *iset, __global const uint *isplit, __global const uint *mybuffer, __global const unsigned int *ilevel, __global const float *split_weight, __global float *m0, __global float *m, __global vec *r, __global vec *u, __global vec *dudt, __global float *rho, __global float *drhodt, __global const uint *icell, __global const uint *ihoc, __constant float *dr_level0, unsigned int N, uivec4 n_cells)
Collect the children, and the seed itself, in order to compute the field values of the buffer partner...
Definition: Coalesce.cl:435
Main AQUAgpusph namespace.
Definition: ArgumentsManager.cpp:45
Set of definitions and macros related with the implementation.