Hi!
I'm sorry I have forgotten to thank you! That worked for me. Besides,
Don't you know how to visualize magnetic induction vector? I'm
using HomogeneousMagneticField.
Best wishes,
Kseniia
пт, 26 янв. 2024 г. в 22:03, <espressomd-users-request@nongnu.org
<mailto:espressomd-users-request@nongnu.org>>:
Send Espressomd-users mailing list submissions to
espressomd-users@nongnu.org <mailto:espressomd-users@nongnu.org>
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.nongnu.org/mailman/listinfo/espressomd-users
<https://lists.nongnu.org/mailman/listinfo/espressomd-users>
or, via email, send a message with subject or body 'help' to
espressomd-users-request@nongnu.org
<mailto:espressomd-users-request@nongnu.org>
You can reach the person managing the list at
espressomd-users-owner@nongnu.org
<mailto:espressomd-users-owner@nongnu.org>
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Espressomd-users digest..."
Today's Topics:
1. Visualize dipole moments (Ксения Астахова)
2. Re: Visualize dipole moments (Jean-Noël Grad)
3. Re: Visualize dipole moments (Artur Cristea)
----------------------------------------------------------------------
Message: 1
Date: Fri, 26 Jan 2024 20:06:26 +0500
From: Ксения Астахова <astakhova.ksen.762@gmail.com
<mailto:astakhova.ksen.762@gmail.com>>
To: espressomd-users@nongnu.org <mailto:espressomd-users@nongnu.org>
Subject: Visualize dipole moments
Message-ID:
<CAMXi7HQjhKyX7Kian8Gb31hFV7xryrXoLMD6zXLopooR_sQ8Lg@mail.gmail.com
<mailto:CAMXi7HQjhKyX7Kian8Gb31hFV7xryrXoLMD6zXLopooR_sQ8Lg@mail.gmail.com>>
Content-Type: text/plain; charset="utf-8"
Hello, espressomd community!
I want to visualize dipole moments while integrating. Any ideas on
how to
do this?
Best wishes,
Kseniia
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<https://lists.nongnu.org/archive/html/espressomd-users/attachments/20240126/fd916ca6/attachment.htm
<https://lists.nongnu.org/archive/html/espressomd-users/attachments/20240126/fd916ca6/attachment.htm>>
------------------------------
Message: 2
Date: Fri, 26 Jan 2024 16:47:21 +0100
From: Jean-Noël Grad <jgrad@icp.uni-stuttgart.de
<mailto:jgrad@icp.uni-stuttgart.de>>
To: espressomd-users@nongnu.org <mailto:espressomd-users@nongnu.org>
Subject: Re: Visualize dipole moments
Message-ID:
<b3d936b3-acc1-40a8-a191-fce58ba40263@icp.uni-stuttgart.de
<mailto:b3d936b3-acc1-40a8-a191-fce58ba40263@icp.uni-stuttgart.de>>
Content-Type: text/plain; charset="utf-8"; Format="flowed"
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: visualization_magnetic.py
Type: text/x-python
Size: 822 bytes
Desc: not available
URL:
<https://lists.nongnu.org/archive/html/espressomd-users/attachments/20240126/0096db78/attachment.py
<https://lists.nongnu.org/archive/html/espressomd-users/attachments/20240126/0096db78/attachment.py>>
------------------------------
Message: 3
Date: Fri, 26 Jan 2024 18:17:45 +0200
From: Artur Cristea <artur.cristea@gmail.com
<mailto:artur.cristea@gmail.com>>
To: Jean-Noël Grad <jgrad@icp.uni-stuttgart.de
<mailto:jgrad@icp.uni-stuttgart.de>>
Cc: espressomd-users@nongnu.org <mailto:espressomd-users@nongnu.org>
Subject: Re: Visualize dipole moments
Message-ID:
<CAM-NKTPVPYH2dZv9uFok6TbkikcepdbKtL3TfuMuo-wgJVf+Ow@mail.gmail.com
<mailto:CAM-NKTPVPYH2dZv9uFok6TbkikcepdbKtL3TfuMuo-wgJVf%2BOw@mail.gmail.com>>
Content-Type: text/plain; charset="utf-8"
It works, was helpfull!
Thank you,
Artur
Vi, 26 ian. 2024, 17:48 Jean-Noël Grad <jgrad@icp.uni-stuttgart.de
<mailto: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
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<https://lists.nongnu.org/archive/html/espressomd-users/attachments/20240126/37ca24eb/attachment.htm
<https://lists.nongnu.org/archive/html/espressomd-users/attachments/20240126/37ca24eb/attachment.htm>>
------------------------------
Subject: Digest Footer
_______________________________________________
Espressomd-users mailing list
Espressomd-users@nongnu.org <mailto:Espressomd-users@nongnu.org>
https://lists.nongnu.org/mailman/listinfo/espressomd-users
<https://lists.nongnu.org/mailman/listinfo/espressomd-users>
------------------------------
End of Espressomd-users Digest, Vol 152, Issue 1
************************************************