Re: [Yade-users] [Question #191412]: import module problem

2012-03-22 Thread Anton Gladky
Question #191412 on Yade changed:
https://answers.launchpad.net/yade/+question/191412

Anton Gladky proposed the following answer:
0.50 version was released about 2 years ago. It is pretty old.

Anton

-- 
You received this question notification because you are a member of
yade-users, which 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 #191412]: import module problem

2012-03-22 Thread Rinaldi Giuseppe
Question #191412 on Yade changed:
https://answers.launchpad.net/yade/+question/191412

Rinaldi Giuseppe posted a new comment:
Thank you both for the quickly reply!

if I try to remove "params"  I got a different strange error:

Welcome to Yade 0.50
TCP python prompt on localhost:9000, auth cookie `euysds'
TCP info provider on localhost:21000
Running script generationbu.py
WARN  py/log.cpp:43 logSetLevel: Yade was compiled without log4cxx support. 
Setting log levels from python will have no effect (warn once).
Traceback (most recent call last):
  File "/usr/bin/yade", line 112, in 
execfile(args[0])
  File "generationbu.py", line 99, in 
O.cell.setBox(Vector3(dim,dim,dim)) # set size of the cell (rectangular)
AttributeError: 'Cell' object has no attribute 'setBox'
[[ ^L clears screen, ^U kills line. ]]

It's strange because if I run the same script on "yade-daily" it works.
tomorrow I try to install the stable package because probably I did something 
wrong during the installation.

I will let you know.

many thanks,

Giuseppe

-- 
You received this question notification because you are a member of
yade-users, which 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 #191412]: import module problem

2012-03-22 Thread Anton Gladky
Question #191412 on Yade changed:
https://answers.launchpad.net/yade/+question/191412

Anton Gladky proposed the following answer:
Hi Rinaldi,

I would recommend you to install yade-stable package, it will bring
you version 0.70 and your script should probably work.

Anton

-- 
You received this question notification because you are a member of
yade-users, which 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 #191412]: import module problem

2012-03-22 Thread jduriez
Question #191412 on Yade changed:
https://answers.launchpad.net/yade/+question/191412

Status: Open => Answered

jduriez proposed the following answer:
Hello,

The problem is probably that "params" modul exists in "yade-daily" but
not in "Yade 0.50".

Try without importing this (remove "params" the line "from yade
import...")

-- 
You received this question notification because you are a member of
yade-users, which 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


[Yade-users] [Question #191412]: import module problem

2012-03-22 Thread Rinaldi Giuseppe
New question #191412 on Yade:
https://answers.launchpad.net/yade/+question/191412

Hi all,
 
I want to start running simulation on a new more powerful machine.  
So I installed on it  "Yade 0.50" from packages (For stable releases)  but when 
I run it  I get this:


Welcome to Yade 0.50
TCP python prompt on localhost:9000, auth cookie `keycas'
TCP info provider on localhost:21000
Running script generation.py
Traceback (most recent call last):
  File "/usr/bin/yade", line 112, in 
execfile(args[0])
  File "generation.py", line 49, in 
from yade import pack,log,params,timing
ImportError: cannot import name params
[[ ^L clears screen, ^U kills line. ]]

On my old laptop I have "yade-daily" and  this script works without any problem.

what's the problem?

Thanks all

Giuseppe 

-- 
You received this question notification because you are a member of
yade-users, which 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 #191395]: visualize utils.box with paraview

2012-03-22 Thread Christian Jakob
Question #191395 on Yade changed:
https://answers.launchpad.net/yade/+question/191395

Status: Answered => Open

Christian Jakob is still having a problem:
Hope attachment will be sent.

Zitat von Anton Gladky :

> Your question #191395 on Yade changed:
> https://answers.launchpad.net/yade/+question/191395
>
> Status: Open => Answered
>
> Anton Gladky proposed the following answer:
> Please, attach the vtk-file.
>
> Anton
>
> --
> If this answers your question, please go to the following page to let us
> know that it is solved:
> https://answers.launchpad.net/yade/+question/191395/+confirm?answer_id=0
>
> If you still need help, you can reply to this email or go to the
> following page to enter your feedback:
> https://answers.launchpad.net/yade/+question/191395
>
> You received this question notification because you asked the question.
>

-- 
You received this question notification because you are a member of
yade-users, which 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 #191395]: visualize utils.box with paraview

2012-03-22 Thread Anton Gladky
Question #191395 on Yade changed:
https://answers.launchpad.net/yade/+question/191395

Status: Open => Answered

Anton Gladky proposed the following answer:
Please, attach the vtk-file.

Anton

-- 
You received this question notification because you are a member of
yade-users, which 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


[Yade-users] [Question #191395]: visualize utils.box with paraview

2012-03-22 Thread Christian Jakob
New question #191395 on Yade:
https://answers.launchpad.net/yade/+question/191395

I use utils.box to create the walls in my model.
I am also using vtkrecorder to visualize the calculation.
A file ...-facets.vtu is created, but I can not visualize it with paraview.
It seems, that there is no geometry information stored.

Does anyone know how to visualize boxes in paraview?


-- 
You received this question notification because you are a member of
yade-users, which 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 #190529]: deleting some liquid bridges in Law2_ScGeom_CapillaryPhys_Capillarity

2012-03-22 Thread Anton Gladky
Question #190529 on Yade changed:
https://answers.launchpad.net/yade/+question/190529

Anton Gladky posted a new comment:
Christian, you should compile yade in this case with debug=1 option.

Then start your script:

yade-bla-bla-bla --debug  scriptname.py

After crash you should get some more useful debugging information.

Anton

-- 
You received this question notification because you are a member of
yade-users, which 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 #190529]: deleting some liquid bridges in Law2_ScGeom_CapillaryPhys_Capillarity

2012-03-22 Thread Christian Jakob
Question #190529 on Yade changed:
https://answers.launchpad.net/yade/+question/190529

Christian Jakob posted a new comment:
Bruno, if you have the time, please check my modifications in
Law2...Capillarity::checkFusion (line 223 - 301)

https://github.com/jakob-
ifgt/trunk/blob/master/pkg/dem/Law2_ScGeom_CapillaryPhys_Capillarity.cpp

Compilation is ok, but I get a segmentation fault, when running this
with fusionDetection=True.

-- 
You received this question notification because you are a member of
yade-users, which 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 #190529]: deleting some liquid bridges in Law2_ScGeom_CapillaryPhys_Capillarity

2012-03-22 Thread Chareyre
Question #190529 on Yade changed:
https://answers.launchpad.net/yade/+question/190529

Chareyre posted a new comment:
Ahah, yes of course, i.phys.isBroken...

-- 
You received this question notification because you are a member of
yade-users, which 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 #190529]: deleting some liquid bridges in Law2_ScGeom_CapillaryPhys_Capillarity

2012-03-22 Thread Christian Jakob
Question #190529 on Yade changed:
https://answers.launchpad.net/yade/+question/190529

Christian Jakob posted a new comment:
i.phys.isBroken is correct syntax, thank you very much!

-- 
You received this question notification because you are a member of
yade-users, which 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 #190529]: deleting some liquid bridges in Law2_ScGeom_CapillaryPhys_Capillarity

2012-03-22 Thread Christian Jakob
Question #190529 on Yade changed:
https://answers.launchpad.net/yade/+question/190529

Status: Answered => Solved

Christian Jakob confirmed that the question is solved:
Thanks jduriez, that solved my question.

-- 
You received this question notification because you are a member of
yade-users, which 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 #190529]: deleting some liquid bridges in Law2_ScGeom_CapillaryPhys_Capillarity

2012-03-22 Thread jduriez
Question #190529 on Yade changed:
https://answers.launchpad.net/yade/+question/190529

jduriez proposed the following answer:
Hello,

About your attempts to access "isBroken" through python, I would think
that the commands you type are wrong. This "isBroken" seems to belong to
the physics of an interaction, so you should try :

i.phys.isBroken (not sure about - and can not check - the syntax i.phys
to access the physics of the interaction, but it should be similar)

You should be able to check the different members of each python - Yade
object (your interaction "i" for ex) if you type "i." + "TAB - TAB",
isn't it ?

-- 
You received this question notification because you are a member of
yade-users, which 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 #190529]: deleting some liquid bridges in Law2_ScGeom_CapillaryPhys_Capillarity

2012-03-22 Thread Christian Jakob
Question #190529 on Yade changed:
https://answers.launchpad.net/yade/+question/190529

Christian Jakob posted a new comment:
I want to provide more information about the source code.

First I included isBroken flag into the header file of
Law2...Capillarity, but there I could only delete all liquid bridges at
the same time. So I included isBroken in the header files of
CapillaryPhys

https://github.com/jakob-
ifgt/trunk/blob/master/pkg/dem/CapillaryPhys.hpp

(for the linear model) and in Ip2_FrictMat_FrictMat_MindlinCapillaryPhys

https://github.com/jakob-
ifgt/trunk/blob/master/pkg/dem/Ip2_FrictMat_FrictMat_MindlinCapillaryPhys.hpp

(for the hertz model). It seems, that this is not right, because now I
can not delete a liquid bridge at all.

Ip2_FrictMat_FrictMat_MindlinCapillaryPhys.isBroken=True is also not
working...

print Ip2_FrictMat_FrictMat_MindlinCapillaryPhys.isBroken

AttributeError: type object 'Ip2_FrictMat_FrictMat_MindlinCapillaryPhys'
has no attribute 'isBroken'

So the question is: In which header should I put isBroken flag?

-- 
You received this question notification because you are a member of
yade-users, which 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 #190529]: deleting some liquid bridges in Law2_ScGeom_CapillaryPhys_Capillarity

2012-03-22 Thread Christian Jakob
Question #190529 on Yade changed:
https://answers.launchpad.net/yade/+question/190529

Christian Jakob posted a new comment:
Thank you Bruno, I will try that wrapPt function.
To the other post:

print i.isBroken

AttributeError: 'Interaction' object has no attribute 'isBroken'

-- 
You received this question notification because you are a member of
yade-users, which 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