-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathChargeDensity.H
More file actions
24 lines (18 loc) · 883 Bytes
/
ChargeDensity.H
File metadata and controls
24 lines (18 loc) · 883 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include <AMReX.H>
#include <AMReX_MultiFab.H>
#include <AMReX_MultiFabUtil.H>
#include "FerroX.H"
using namespace amrex;
using namespace FerroX;
void ComputeRho(MultiFab& PoissonPhi,
Array<MultiFab, AMREX_SPACEDIM> &P_old,
MultiFab& rho,
MultiFab& e_den,
MultiFab& p_den,
const MultiFab& MaterialMask,
const Geometry& geom,
const amrex::GpuArray<amrex::Real, AMREX_SPACEDIM>& prob_lo,
const amrex::GpuArray<amrex::Real, AMREX_SPACEDIM>& prob_hi);
void Compute_P_Sum(const std::array<MultiFab, AMREX_SPACEDIM>& P, Real& sum);
void Compute_P_index_Sum(const MultiFab& MaterialMask, Real& count);
void Compute_P_av(const std::array<MultiFab, AMREX_SPACEDIM>& P, Real& sum, const MultiFab& MaterialMask, Real& count, Real &P_av_z);