← Back to team overview

yade-users team mailing list archive

Re: help in writing a script

 

Thank you Anton and Nejib,


On Wed, Mar 10, 2010 at 7:12 PM, Anton Gladky <gladky.anton@xxxxxxxxx>wrote:

>
> 2010/3/10 Nasibeh Moradi <nasibeh.moradi@xxxxxxxxx>
>
> Hi,
>>
>> 1- when I run a example from a script, the 3d view is black but when I
>> choose 2 window of view (primary view and secondary view) the model
>> is shown!!
>> also when run script regular-sphere-pack.py there is a error:
>>
>> *Running script
>> /home/moradi/YADE-trunk/trunk/scripts/test/regular-sphere-pack.py
>> Traceback (most recent call last):
>>   File "./yade-bzr2073", line 106, in <module>
>>     execfile(args[0])
>>   File
>> "/home/moradi/YADE-trunk/trunk/scripts/test/regular-sphere-pack.py", line
>> 64, in <module>
>>
>> O.bodies.append(ymport.gmsh('regular-sphere-pack.mesh',**kwMeshes))#generates
>> facets from the mesh file
>>   File "/home/moradi/YADE-trunk/YADE/lib/yade-bzr2073/py/yade/ymport.py",
>> line 51, in gmsh
>>     infile = open(meshfile,"r")
>> IOError: [Errno 2] No such file or directory: 'regular-sphere-pack.mesh'
>>
>> *
>
>
> It is a very clear. Interpreter cannot find the file *
> regular-sphere-pack.mesh*  Just put this file into the current directory
> and start again.
>
>
>
>> **2- I want creat a plate of glass(from sphere), and a ball that contact
>> with glass at high speed.
>> how can I do it?
>>
>
> At the first look, it is more-less simple. What do you want to simulate,
> glass destruction or what? Or just forces, acting to "glass" during a
> stroke?
>

I want to simulate  fracture behaviour of glass, with different K_s and K_n
that is in different papers.


>
>  really, I want a script that help me in writing my script.
>>
>
> There are some scripts in ./scripts/ and ./scripts/test directories. Some
> of them are outdated but you can get an idea, how to write your owns.
> I have a plan to write a simple tutorial with examples, but not right now.
>
>
>>
>> thank you
>> Nasibeh
>>
>>
>> _______________________________________________
>> Mailing list: https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
>> Post to     : yade-users@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
>> More help   : https://help.launchpad.net/ListHelp
>>
>>
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
> Post to     : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users<https://launchpad.net/%7Eyade-users>
> More help   : https://help.launchpad.net/ListHelp
>
>

References