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
"
28
#include "
../spatial_cells/spatial_cell_wrapper.hpp
"
29
#include <dccrg_cartesian_geometry.hpp>
30
31
#ifdef USE_GPU
32
#include "
gpu_pitch_angle_diffusion.hpp
"
33
#else
34
#include "
cpu_pitch_angle_diffusion.h
"
35
#endif
36
37
extern
std::vector<Real>
betaParaArray
;
38
extern
std::vector<Real>
TanisoArray
;
39
extern
std::vector<Real>
nu0Array
;
40
extern
size_t
n_betaPara
;
41
extern
size_t
n_Taniso
;
42
extern
bool
nuArrayRead
;
43
44
void
readNuArrayFromFile
();
45
46
Realf
interpolateNuFromArray
(
47
const
Real
Taniso,
const
Real
betaParallel);
48
49
void
computePitchAngleDiffusionParameters
(
50
SpatialCell& cell,
51
const
uint popID,
const
size_t
CellIdx,
bool
& currentSpatialLoopComplete,
52
Realf
& sparsity, std::array<Real,3>& b,
Real
& nu0
53
);
common.h
n_betaPara
size_t n_betaPara
Definition
common_pitch_angle_diffusion.cpp:49
TanisoArray
std::vector< Real > TanisoArray
Definition
common_pitch_angle_diffusion.cpp:47
n_Taniso
size_t n_Taniso
Definition
common_pitch_angle_diffusion.cpp:50
nuArrayRead
bool nuArrayRead
Definition
common_pitch_angle_diffusion.cpp:51
nu0Array
std::vector< Real > nu0Array
Definition
common_pitch_angle_diffusion.cpp:48
betaParaArray
std::vector< Real > betaParaArray
Definition
common_pitch_angle_diffusion.cpp:46
interpolateNuFromArray
Realf interpolateNuFromArray(const Real Taniso, const Real betaParallel)
Definition
common_pitch_angle_diffusion.cpp:129
readNuArrayFromFile
void readNuArrayFromFile()
Definition
common_pitch_angle_diffusion.cpp:53
computePitchAngleDiffusionParameters
void computePitchAngleDiffusionParameters(SpatialCell &cell, const uint popID, const size_t CellIdx, bool ¤tSpatialLoopComplete, Realf &sparsity, std::array< Real, 3 > &b, Real &nu0)
cpu_pitch_angle_diffusion.h
Real
float Real
Definition
definitions.h:41
Realf
float Realf
Definition
definitions.h:33
gpu_pitch_angle_diffusion.hpp
spatial_cell_wrapper.hpp
vlasovsolver
common_pitch_angle_diffusion.hpp
Generated on
for Vlasiator by
1.16.1