Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
IPShock.h
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
23//#pragma once
24
25#ifndef IPSHOCK_H
26#define IPSHOCK_H
27
28#include "../../definitions.h"
30
31namespace projects {
32
53
54 class IPShock: public TriAxisSearch {
55 public:
56 IPShock();
57 virtual ~IPShock();
58
59 virtual bool initialize(void) override;
60 static void addParameters(void);
61 virtual void getParameters(void) override;
62
63 virtual void setProjectBField(fsgrids::perbspan perb,
65 fsgrids::technicalspan technical, FieldSolverGrid& fsgrid) override;
66
67 virtual Realf fillPhaseSpace(spatial_cell::SpatialCell* cell, const uint popID,
68 const uint nRequested) const override;
69 virtual Realf probePhaseSpace(spatial_cell::SpatialCell* cell, const uint popID, Real vx_in, Real vy_in,
70 Real vz_in) const override;
71 virtual std::vector<std::array<Real, 3>> getV0(creal x, creal y, creal z, const uint popID) const override;
72 virtual void calcCellParameters(spatial_cell::SpatialCell* cell, creal& t) override;
73 bool
74 refineSpatialCells(dccrg::Dccrg<spatial_cell::SpatialCell, dccrg::Cartesian_Geometry>& mpiGrid) const override;
75 // Interpolate between up- and downstream quantities
76 // based on position
77 Real interpolate(Real u, Real d, Real x) const;
78
79 // Upstream bulk values
82 // Downstream bulk values
85
86 // Flow direction definitions
93
99
100 std::vector<IPShockSpeciesParameters> speciesParams;
101
102 } ; //class IPShock
103} // namespace projects
104
105#endif
std::vector< IPShockSpeciesParameters > speciesParams
Definition IPShock.h:100
virtual Realf fillPhaseSpace(spatial_cell::SpatialCell *cell, const uint popID, const uint nRequested) const override
Definition IPShock.cpp:249
static void addParameters(void)
Definition IPShock.cpp:53
Real interpolate(Real u, Real d, Real x) const
Definition IPShock.cpp:408
virtual bool initialize(void) override
Definition IPShock.cpp:49
virtual Realf probePhaseSpace(spatial_cell::SpatialCell *cell, const uint popID, Real vx_in, Real vy_in, Real vz_in) const override
Definition IPShock.cpp:333
virtual std::vector< std::array< Real, 3 > > getV0(creal x, creal y, creal z, const uint popID) const override
Return a vector containing the velocity coordinate of the centre of each ion population in the distri...
Definition IPShock.cpp:370
virtual void getParameters(void) override
Definition IPShock.cpp:89
virtual void setProjectBField(fsgrids::perbspan perb, fsgrids::bgbspan bgb, fsgrids::technicalspan technical, FieldSolverGrid &fsgrid) override
Definition IPShock.cpp:422
virtual void calcCellParameters(spatial_cell::SpatialCell *cell, creal &t) override
Definition IPShock.cpp:406
virtual ~IPShock()
Definition IPShock.cpp:47
bool refineSpatialCells(dccrg::Dccrg< spatial_cell::SpatialCell, dccrg::Cartesian_Geometry > &mpiGrid) const override
Definition IPShock.cpp:480
float Real
Definition definitions.h:41
float Realf
Definition definitions.h:33
fsgrid::FsGrid< FS_STENCIL_WIDTH > FieldSolverGrid
Definition definitions.h:78
const float creal
Definition definitions.h:42
std::span< std::array< Real, fsgrids::bfield::N_BFIELD > > perbspan
Definition common.h:434
std::span< technical > technicalspan
Definition common.h:452
std::span< std::array< Real, bgbfield::N_BGB > > bgbspan
Definition common.h:444