def setup_openpmd_meshes_group( self, dset ) :
"""
Set the attributes that are specific to the mesh path
Parameter
---------
dset : an h5py.Group object that contains all the mesh quantities
"""
# Field Solver
dset.attrs["fieldSolver"] = np.string_("PSATD")
# Field boundary
dset.attrs["fieldBoundary"] = np.array([
np.string_("reflecting"), np.string_("reflecting"),
np.string_("reflecting"), np.string_("reflecting") ])
# Particle boundary
dset.attrs["particleBoundary"] = np.array([
np.string_("absorbing"), np.string_("absorbing"),
np.string_("absorbing"), np.string_("absorbing") ])
# Current Smoothing
dset.attrs["currentSmoothing"] = np.string_("Binomial")
dset.attrs["currentSmoothingParameters"] = \
np.string_("period=1;numPasses=1;compensator=false")
# Charge correction
dset.attrs["chargeCorrection"] = np.string_("spectral")
dset.attrs["chargeCorrectionParameters"] = np.string_("period=1")
评论列表
文章目录