Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
common_pitch_angle_diffusion.hpp
Go to the documentation of this file.
1#pragma once
2
3/*
4 * This file is part of Vlasiator.
5 * Copyright 2010-2025 Finnish Meteorological Institute and University of Helsinki
6 *
7 * For details of usage, see the COPYING file and read the "Rules of the Road"
8 * at http://www.physics.helsinki.fi/vlasiator/
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License along
21 * with this program; if not, write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 */
24
25#include <zoltan.h>
26#include <dccrg.hpp>
27#include "../common.h"
29#include <dccrg_cartesian_geometry.hpp>
30
31#ifdef USE_GPU
33#else
35#endif
36
37extern std::vector<Real> betaParaArray;
38extern std::vector<Real> TanisoArray;
39extern std::vector<Real> nu0Array;
40extern size_t n_betaPara;
41extern size_t n_Taniso;
42extern bool nuArrayRead;
43
45
47 const Real Taniso, const Real betaParallel);
48
50 SpatialCell& cell,
51 const uint popID,const size_t CellIdx, bool& currentSpatialLoopComplete,
52 Realf& sparsity, std::array<Real,3>& b, Real& nu0
53 );
std::vector< Real > TanisoArray
std::vector< Real > nu0Array
std::vector< Real > betaParaArray
Realf interpolateNuFromArray(const Real Taniso, const Real betaParallel)
void readNuArrayFromFile()
void computePitchAngleDiffusionParameters(SpatialCell &cell, const uint popID, const size_t CellIdx, bool &currentSpatialLoopComplete, Realf &sparsity, std::array< Real, 3 > &b, Real &nu0)
float Real
Definition definitions.h:41
float Realf
Definition definitions.h:33