Computes charge density, rho, and solves Poisson's equation to obtain the associated electrostatic potential, phi. Using the electrostatic potential, the electric field is computed in lab frame, and if relativistic, then the electric and magnetic fields are computed using potential, phi, and velocity of source for potential, beta. This function must be defined in the derived classes.
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 semi-implicit Poisson equation using the Effective Potential method with rho as the source. More specifically, this solves the equation
Parameters
[in]
rho
The total charge density
[out]
phi
The potential to be computed by this function
[out]
efield
The electric field corresponding to the calculated phi (only used with embedded boundaries)
[in]
sigma
Represents the modified dielectric
[in]
required_precision
The relative convergence threshold for the MLMG solver
[in]
absolute_tolerance
The absolute convergence threshold for the MLMG solver
[in]
max_iters
The maximum number of iterations allowed for the MLMG solver
Computes charge density, rho, and solves Poisson's equation to obtain the associated electrostatic potential, phi. Using the electrostatic potential, the electric field is computed in lab frame, and if relativistic, then the electric and magnetic fields are computed using potential, phi, and velocity of source for potential, beta. This function must be defined in the derived classes.