yade-users team mailing list archive
-
yade-users team
-
Mailing list archive
-
Message #07740
Re: [Question #230574]: New Interaction For Bubbles
Question #230574 on Yade changed:
https://answers.launchpad.net/yade/+question/230574
Jan Stránský posted a new comment:
Hello Nolan,
New material for sphere-sphere is available in yade/pkg/dem/BubbleMat.*pp .
Please try it if it works as expected. You can also set some physically
reasonable default values and add docstrings (everything marked by TODO in
source code).
folowing script shows new classes usage, you can also create some srious
example script.
cheers
Jan
O.materials.append(bMat)
b1 = sphere((0,0,0),1)
b2 = sphere((2,0,0),1)
O.bodies.append((b1,b2))
b1.state.vel = Vector3(1,0,0)
O.dt = 1e-6
O.engines = [
ForceResetter(),
InsertionSortCollider([Bo1_Sphere_Aabb()]),
InteractionLoop(
[Ig2_Sphere_Sphere_ScGeom(),],
[Ip2_BubbleMat_BubbleMat_BubblePhys()],
[Law2_ScGeom_BubblePhys_Bubble()],
),
NewtonIntegrator(),
]
O.step()
O.step()
i = O.interactions[0,1]
2013/6/12 Bruno Chareyre <question230574@xxxxxxxxxxxxxxxxxxxxx>
> Question #230574 on Yade changed:
> https://answers.launchpad.net/yade/+question/230574
>
> Bruno Chareyre posted a new comment:
> Jan may greatly help to implement it with clean code structure and
> conventions. You may however think about the iterative procedure to
> compute the force and come up with a possible algorithm to share the
> workload. My two cents. :)
>
> If you fix some english, it will be relatively easy to check your changes
> using programs like diff, kompare, etc.
> So, there is no real need for you to maintain a list of changes. Fix as
> you read, then we compare.
>
> Even better, you can send us a patch. Say, you make some fixes in
> trunk/doc/sphinx/introduction.rst and save the fixed version under a
> different name. Run diff and send the output to a "patch" file:
>
> diff -u introduction.rst introduction_fixed.rst > introduction.patch
>
> Send introduction.patch to us, it will show the list of changes and can
> be applied automatically to the original (typing "patch <
> introduction.patch") after proper review.
>
> --
> 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@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users
> More help : https://help.launchpad.net/ListHelp
>
--
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.