[Top][All Lists]

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

Re: [ESPResSo-users] Writing and reading with H5MD

From: Clemens Jochum
Subject: Re: [ESPResSo-users] Writing and reading with H5MD
Date: Mon, 6 Mar 2017 18:27:52 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0

Thanks for your answer! I will check the h5py module.

On 01.03.2017 16:12, ICP wrote:
espresso is currently only able to write H5MD files. We currently dont plan to read those files in espresso but there is a python module called h5py with which you are able to read the trajectory into numpy arrays. It seems your userguide is not up to date. If you are using the development version of espresso please build the sphinx documentation via "make sphinx".

Institute for Computational Physics
Universität Stuttgart
Allmandring 3
Room 1.084
70569 Stuttgart, Germany
Phone: +49(0)711/685-67707

On 1 Mar 2017, at 14:46, Clemens Jochum <address@hidden> wrote:

Dear all,

according to the userguide initializing a H5MD file works as follows:

    from espressomd import h5md
    system = espressomd.system()
    h5 = h5md.h5md("File.h5",system)

However, the module "h5md" is not found by the pypresso interpreter. It is also stated that the sample script "" shows the usage of H5MD files. However, that sample file does not exist.

According to a different sample script called "", H5MD format can be used like this:

    from import h5md
    h5_file = h5md.H5md(filename="sample.h5", write_pos=True, write_vel=True, ... )

This works, but it is not stated anywhere how to read from the H5MD file. In particular, I want to load the particle coordinates to visualize some snapshots of my system's trajectory.

Does anyone know how to do that? Or can anyone point me towards literature, how to use the H5MD format properly in espresso?

Many thanks and best regards,


reply via email to

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