Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"lev=0": {
"Az": 1.7305570206582026,
"Bt": 15.521136797767891,
"Er": 4333723925.211036,
"Az": 1.7305570206581988,
"Bt": 15.521136535283418,
"Er": 4333723925.211021,
"jz": 207219733.49323815,
"phi": 479458088.8864637,
"phi": 479458088.8864618,
"rho": 0.6946928324123767
}
}
6 changes: 6 additions & 0 deletions Source/ablastr/fields/VectorPoissonSolver.H
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,12 @@ computeVectorPotential ( amrex::Vector<amrex::Array<amrex::MultiFab*, 3> > co

#ifdef WARPX_DIM_RZ
linop[adim]->setRZ(true);
if (adim < 2) {
// In cylindrical coordinates (with azimuthal symmetry), the vector Laplacian
// along r and theta has an extra `-1/r^2` term (not present for Az).
// The alpha term below adds the 1/r^2 part.
linop[adim]->setAlpha(1._rt);
}
#endif

linop[adim]->setDomainBC( boundary_handler.lobc[adim], boundary_handler.hibc[adim] );
Expand Down
Loading