Computes electrostatic fields for species that have initialize self fields turned on. A loop over all the species is performed and for each species (with self fields) the function AddSpaceChargeField is called. This function computes the electrostatic potential for species charge denisyt as source and then the electric and magnetic fields are updated to include the corresponding fields from the electrostatic potential. Then electric and magnetic fields are updated to include potential variation due to boundary conditions using the function AddBoundaryField
Set Dirichlet boundary conditions for the electrostatic solver. The given potential's values are fixed on the boundaries of the given dimension according to the desired values from the simulation input file, boundary.potential_lo and boundary.potential_hi.
Compute the electric field that corresponds to phi, and add it to the set of MultiFab E. The electric field is calculated by assuming that the source that produces the phi potential is moving with a constant speed :
Compute the magnetic field that corresponds to phi, and add it to the set of MultiFab B. The magnetic field is calculated by assuming that the source that produces the phi potential is moving with a constant speed :
Compute the potential phi by solving the Poisson equation with the simulation specific boundary conditions and boundary values, then add the E field due to that phi to Efield_fp.
Parameters
[in]
Efield
Efield updated to include potential gradient from boundary condition
Compute the charge density of the species paricle container, pc, and obtain the corresponding electrostatic potential to update the electric and magnetic fields.
Parameters
[in]
pc
particle container for the selected species
[in]
Efield_fp
Efield updated to include potential computed for selected species charge density as source
[in]
Bfield_fp
Bfield updated to include potential computed for selected species charge density as source
Computes electrostatic fields for species that have initialize self fields turned on. A loop over all the species is performed and for each species (with self fields) the function AddSpaceChargeField is called. This function computes the electrostatic potential for species charge denisyt as source and then the electric and magnetic fields are updated to include the corresponding fields from the electrostatic potential. Then electric and magnetic fields are updated to include potential variation due to boundary conditions using the function AddBoundaryField