Molecular Dynamics, Python Programming, Plotly, Mdanalysis, Charge.
atom.charge, # Y atom.position[2] * atom.charge # Z ] total_dipole_vectors.append(dipole_vector) angle = rad2deg( mda.lib.mdamath.angle( add_vectors(total_dipole_vectors), [1, 0 ,0] ) ) dipole_angles.append(angle) Plot the distribution: # Distribution Plot of the Dipole Vector vs the Electric Field