← Back to team overview

yade-users team mailing list archive

Re: [Question #269831]: HydroForceEngine not defined?

 

Question #269831 on Yade changed:
https://answers.launchpad.net/yade/+question/269831

    Status: Answered => Open

huisky is still having a problem:
Hei,

by issuing help(HydroForceEngine) in Yade, I got following message:

Welcome to Yade 1.07.0 
TCP python prompt on localhost:9000, auth cookie `dcessy'
XMLRPC info provider on http://localhost:21000
/usr/lib/python2.7/dist-packages/IPython/frontend.py:30: UserWarning: The top-level `frontend` package has been deprecated. All its subpackages have been moved to the top `IPython` level.
  warn("The top-level `frontend` package has been deprecated. "
[[ ^L clears screen, ^U kills line. F12 controller, F11 3d view (use h-key for showing help), F10 both, F9 generator, F8 plot. ]]

Yade [1]: help(HydroForceEngine) 
---------------------------------------------------------------------------
NameError                                 Traceback (most recent call last)
/usr/bin/yade in <module>()
----> 1 help(HydroForceEngine)

NameError: name 'HydroForceEngine' is not defined


It obviously is not included in the current release of Yade, is it strange?
I've tried to use Yadedaily and it works!

well, i'm actually want to simulate the buoyancy of the sphere. however,
it seems that all the spheres drop to the bottom anyway due to gravity.
By introducing the hydroforce engine, should the sphere be kind of
floating on the water surface if the density is lower than the water
density?

maybe there are something i'm still missing?

O.engines=[
    ForceResetter(),
    InsertionSortCollider([Bo1_Sphere_Aabb(),Bo1_Facet_Aabb(),Bo1_Wall_Aabb()],label='collider'),
    InteractionLoop(
        [Ig2_Sphere_Sphere_ScGeom(),Ig2_Facet_Sphere_ScGeom(),Ig2_Wall_Sphere_ScGeom()],
        [Ip2_FrictMat_FrictMat_FrictPhys()],
        [Law2_ScGeom_FrictPhys_CundallStrack()],
    ),
    NewtonIntegrator(damping=.1,exactAsphericalRot=True,gravity=(1e-2,1e-2,-10.)),
    TranslationEngine(translationAxis=[1,0,0],velocity=5.0,ids=[id.id for id in strut]),
    HydroForceEngine(densFluid=rau_wat),
]

Regards
Liu

-- 
You received this question notification because you are a member of
yade-users, which is an answer contact for Yade.