← Back to team overview

yade-users team mailing list archive

Re: [Question #707348]: Is the Level-set method applicable to the real terrain described by the gridded digital elevation model?

 

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

    Status: Open => Answered

Jérôme Duriez proposed the following answer:
Hi,

The most straightforward way would probably be to define your "terrain"
with Facet-shaped YADE bodies and count on a Ig2_Facet_LevelSet_ScGeom.
Unfortunately, the latter does not exist at the moment...

As an alternative, maybe you could try to define a single LevelSet-
shaped body for your terrain (adding planar sides underneath your
physical ground slope ? to make it closed).

As a keypoint, you have here to come with your own assignment of
LevelSet.lsGrid (grid attribute of levelSetBody() ) and
LevelSet.distField (distField attribute of levelSetBody() ).

See https://gitlab.com/yade-
dev/trunk/-/blob/0017336215cd3f47d588a43a992d58f87fe8a649/examples/levelSet/levelSetBody.py#L32
for an example of that usage.

That might be less efficient to run than using this non-existing-yet
Ig2_Facet_LevelSet_ScGeom (exaggerated memory requirement with many
useless distance data below your ground surface of that LevelSet body ?)
but no C++ coding required..

For computing the actual distance data (on the grid) which is required
to correspond to your terrain with that approach, you're on your own but
there is probably a number of tools already available on the web ?
(keywords: distance to a .stl mesh ?)

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