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

    Status: Open => Answered

Jan Stránský proposed the following answer:
Hi Luis,
gts.Surface (argument of pack.inGtsSurface) has a method volume. Once you
have volume of all bodies (the part you already know I guess) and volume of
predicate (see below) you can calculate whatever from these values.

pred = pack.inGtsSurface(surf)
vol = surf.volume() # the same surf

cheers
Jan


2016-04-17 21:47 GMT+02:00 Luis Barbosa <
question291...@answers.launchpad.net>:

> New question #291320 on Yade:
> https://answers.launchpad.net/yade/+question/291320
>
> Hello everyone,
>
> I'm working with crushable aggregates, which have complex geometries
> (non-symmetric), by using pack.inGtsSurface.
>
> What I'm facing now is how to calculate the porosity of these aggregates,
> since utils.porosity and utils.voxelPorosity don't calc the total volume of
> gts geometry.
>
> Is there another way to get this volume and calc porosity?
>
> Thank you!
> Luis
>
> --
> You received this question notification because your team yade-users 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
>

-- 
You received this question notification because your team yade-users 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

Reply via email to