Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
integratefunction.hpp
Go to the documentation of this file.
1/*
2 * This file is part of Vlasiator.
3 * Copyright 2010-2016 Finnish Meteorological Institute
4 *
5 * For details of usage, see the COPYING file and read the "Rules of the Road"
6 * at http://www.physics.helsinki.fi/vlasiator/
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation; either version 2 of the License, or
11 * (at your option) any later version.
12
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17
18 * You should have received a copy of the GNU General Public License along
19 * with this program; if not, write to the Free Software Foundation, Inc.,
20 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
21 */
22/*
23Background magnetic field class of Vlasiator.
24*/
25
26#ifndef INTEGRATEFIELDFUNCTION_HPP
27#define INTEGRATEFIELDFUNCTION_HPP
28
29
30#include "quadr.hpp"
31#include "functions.hpp"
36double lineAverage(
37 const T3DFunction& f1,
38 coordinate line,
39 double accuracy,
40 const std::array<double, 3>& r1,
41 double L
42);
43
50double surfaceAverage(
51 const T3DFunction& f1,
52 coordinate face,
53 double accuracy,
54 const std::array<double, 3>& r1,
55 double L1,
56 double L2
57);
58
63double volumeAverage(
64 const T3DFunction& f1,
65 double accuracy,
66 const std::array<double, 3>& r1,
67 const std::array<double, 3>& r2
68);
69#endif
70
std::function< double(double, double, double)> T3DFunction
Definition functions.hpp:32
coordinate
Definition functions.hpp:28
double lineAverage(const T3DFunction &f1, coordinate line, double accuracy, const std::array< double, 3 > &r1, double L)
double volumeAverage(const T3DFunction &f1, double accuracy, const std::array< double, 3 > &r1, const std::array< double, 3 > &r2)
double surfaceAverage(const T3DFunction &f1, coordinate face, double accuracy, const std::array< double, 3 > &r1, double L1, double L2)