[Yade-users] [Question #683753]: save data in hdf5 file

2019-09-08 Thread Jinny Kim
New question #683753 on Yade:
https://answers.launchpad.net/yade/+question/683753

Hello all,

I want to save particle data in hdf5file. In order to do this, I need to import 
'h5py' module. Can I install this module in Yade software?

Thank you for your help in advance.

Jinny Kim.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #683753]: save data in hdf5 file

2019-09-08 Thread Jinny Kim
Question #683753 on Yade changed:
https://answers.launchpad.net/yade/+question/683753

Description changed to:
Hello all,

I want to save particle data in hdf5file. In order to do this, I need to
import 'h5py' module. I think I need to add 'h5py'module in Yade
library, is it possible?

Thank you for your help in advance.

Jinny Kim.

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #683753]: save data in hdf5 file

2019-09-08 Thread Jan Stránský
Question #683753 on Yade changed:
https://answers.launchpad.net/yade/+question/683753

Status: Open => Answered

Jan Stránský proposed the following answer:
Hi,

> In order to do this, I need to import 'h5py' module.

yes. it should be no problem (or?)

> I think I need to add 'h5py'module in Yade library, is it possible?

just use h5py in your python script
(not sure what you mean by library)

cheers
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #683708]: Elastic potential energy of polyhedra

2019-09-08 Thread Vasileios Angelidakis
Question #683708 on Yade changed:
https://answers.launchpad.net/yade/+question/683708

Vasileios Angelidakis posted a new comment:
Hi Jan,

Thanks for taking a look at this.
I think assuming that V is proportional to u^3 using a fixed estimation can be 
risky, since it depends highly on the geometry of the overlap region. :p

I like the idea of an equivalentPenetrationdepth, since it simplifies
our problem in that the elastic potential work is
F*equivalentPenetrationDepth (the integral of the force along the
distance it acts on).

Currently, this distance is estimated by dividing the penetrationVolume by the 
area perpendicularly to the contact normal direction.
I think it would be more straightforward if we calculated two opposite points 
of the overlap volume, along the normal direction, passing from the contact 
point, and calculate the equivalentPenetrationDepth as the distance of these 
points.

Calculating the equivalentPenetrationDepth deterministically can give us
an exact calculation for the "area" as well
(=penetrationVolume/equivalentPenetrationDepth), in case you have any
other uses for this parameter.

All the best,
Vasileios

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #683753]: save data in hdf5 file

2019-09-08 Thread Jinny Kim
Question #683753 on Yade changed:
https://answers.launchpad.net/yade/+question/683753

Status: Answered => Open

Jinny Kim is still having a problem:
I tried that, but I got this error: ImportError: No module name h5py.
When I run the python script, I am using this command in terminal: yade
filename.py..

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #683753]: save data in hdf5 file

2019-09-08 Thread Jan Stránský
Question #683753 on Yade changed:
https://answers.launchpad.net/yade/+question/683753

Status: Open => Needs information

Jan Stránský requested more information:
Have you installed h5py to your computer?
If yes, how?
If no, what version of yade you use?

Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #683753]: save data in hdf5 file

2019-09-08 Thread Jinny Kim
Question #683753 on Yade changed:
https://answers.launchpad.net/yade/+question/683753

Status: Needs information => Open

Jinny Kim gave more information on the question:
Yes, I have installed it. I installed it with Miniconda by following [1].
[1] http://docs.h5py.org/en/stable/quick.html

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp


Re: [Yade-users] [Question #683753]: save data in hdf5 file

2019-09-08 Thread Jan Stránský
Question #683753 on Yade changed:
https://answers.launchpad.net/yade/+question/683753

Status: Open => Needs information

Jan Stránský requested more information:
Could be python 2/3 problem.

What does Yade says if you type
import sys; sys.version
?

what is the output of command line commands
python -c "import h5py"
python3 -c "import h5py"
?

thanks
Jan

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.

___
Mailing list: https://launchpad.net/~yade-users
Post to : yade-users@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yade-users
More help   : https://help.launchpad.net/ListHelp