espressomd-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Visualize dipole moments


From: Jean-Noël Grad
Subject: Re: Visualize dipole moments
Date: Fri, 26 Jan 2024 16:47:21 +0100
User-agent: Mozilla Thunderbird

Hello!

If all particles are magnetic and have the same dipole moment magnitude, you can pass option `director_arrows=True` to the openGLLive visualizer. In ESPResSo, the particle director is always co-aligned with the dipole moment. A minimal example is attached.

If you have different dipole moment magnitudes and would like to see this reflected in the length of the arrows, you will need to adapt the code in `src/python/espressomd/visualization.py` to draw dipole moment vectors. As a quick workaround, you can replace `particle_data.director` by `particle_data.dip` to change the behavior of `director_arrows=True`.

Best,
JN

On 1/26/24 16:06, Ксения Астахова wrote:
Hello, espressomd community!
I want to visualize dipole moments while integrating. Any ideas on how to do this?

Best wishes,
Kseniia

Attachment: visualization_magnetic.py
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]