ImpactX
Loading...
Searching...
No Matches
src
particles
ChargeDeposition.H
Go to the documentation of this file.
1
/* Copyright 2022-2023 The Regents of the University of California, through Lawrence
2
* Berkeley National Laboratory (subject to receipt of any required
3
* approvals from the U.S. Dept. of Energy). All rights reserved.
4
*
5
* This file is part of ImpactX.
6
*
7
* Authors: Axel Huebl
8
* License: BSD-3-Clause-LBNL
9
*/
10
#include <
AMReX_MultiFab.H
>
11
12
#include <unordered_map>
13
#include <utility>
// std::pair
14
15
16
namespace
impactx
17
{
18
// note:: 3D charge deposition is defined in
19
// ImpactXParticleContainer::DepositCharge
20
21
// rho 3D
22
// pair: local & unique boxes
23
// whole simulation index space (level 0)
24
std::unordered_map<int, std::pair<amrex::MultiFab, amrex::MultiFab>>
25
flatten_charge_to_2D
(
26
std::unordered_map<int, amrex::MultiFab>
const
& rho,
27
amrex::Box
domain_3d
28
);
29
}
// namespace impactx
AMReX_MultiFab.H
amrex::Box
BoxND< 3 > Box
impactx
Definition
CovarianceMatrixMath.H:25
impactx::flatten_charge_to_2D
std::unordered_map< int, std::pair< amrex::MultiFab, amrex::MultiFab > > flatten_charge_to_2D(std::unordered_map< int, amrex::MultiFab > const &rho, amrex::Box domain_3d)
Definition
ChargeDeposition.cpp:29
Generated by
1.13.2