espressomd-users
[Top][All Lists]
Advanced

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

Re: Visualize dipole moments


From: Artur Cristea
Subject: Re: Visualize dipole moments
Date: Fri, 26 Jan 2024 18:17:45 +0200


It works, was helpfull!

Thank  you,
Artur


Vi, 26 ian. 2024, 17:48 Jean-Noël Grad <jgrad@icp.uni-stuttgart.de> a scris:
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

reply via email to

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