← Back to team overview

yade-dev team mailing list archive

Re: FlowEngine.ipp.in: return values of volumeCell*()

 

Ok, I indeed figured out since, that my crashes are (obviously ?) not related with this difference. Thanks for the information though,


Jerome



--------------------------------------------------

Jerome Duriez, Research Associate

University of Calgary, Dpt of Civil Engineering

+1 403 220 7367


________________________________
From: Yade-dev <yade-dev-bounces+jerome.duriez=ucalgary.ca@xxxxxxxxxxxxxxxxxxx> on behalf of Bruno Chareyre <bruno.chareyre@xxxxxxxxxxxxxxx>
Sent: November 29, 2016 10:47 AM
To: yade-dev@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Yade-dev] FlowEngine.ipp.in: return values of volumeCell*()



On 11/25/2016 06:46 PM, Jerome Duriez wrote:

Hi,


In pkg/pfg/FlowEngine.ipp.in, why do volumeCell() return directly a "volume" value [1], whereas other volumeCell*Fictious() functions return the std::abs() of "volume" [2] ?

Volume [1] is a signed volume and theoreticaly - at least - the sign can change over time (if one vertex go across a facet). For volume[2] the author (Ema or me I don't remember) apparently speculated that those ones would not change sign in a normal situation, which is maybe true but it doesn't have to be assumed, it could be a signed volume as well with a mechanism to keep the sign in memory (what [1] does).

Bruno


References