← Back to team overview

yade-dev team mailing list archive

Re: : Add damping coefficient to material

 

(sorry for previous message, I didnt see the full discussion)
As Anton says, a clump is a collection of bodies (not only spheres), and
each of them have a material. At the clump's scale, material properties
would be useless.

Bruno


On 19/01/12 11:56, Klaus Thoeni wrote:
> I just creeated a clump in a "real" simulation , and indeed, material gives 
> 'None'. So clumps have no material. Anyone knows why? Makes no sense to me.
>
> Klaus
>
> On Thu, 19 Jan 2012 09:51:38 PM Anton Gladky wrote:
>> Hmm, good question.
>> Maybe not. They consist of "real" spheres and those spheres should
>> have a material, I think.
>>
>> Anton
>>
>> On Thu, Jan 19, 2012 at 11:35 AM, Klaus Thoeni <klaus.thoeni@xxxxxxxxx> 
> wrote:
>>> Hi Anton,
>>>
>>> actually it is the third body and it's a clump (isClump=True). Clumps
>>> should have a material too, shouldn't they?
>>>
>>> Klaus
>>>
>>> On Thu, 19 Jan 2012 06:31:09 PM Anton Gladky wrote:
>>>>  > Real getDampCoeff() { return material->damping; };
>>>>
>>>> Can you check here a material existence?
>>>>
>>>> Anton
>>>>
>>>> On Thu, Jan 19, 2012 at 8:14 AM, Klaus Thoeni <klaus.thoeni@xxxxxxxxx>
>>> wrote:
>>>>> Hi guys,
>>>>>
>>>>> can anyone help me on this?
>>>>>
>>>>> Klaus
>>>>>
>>>>> On Thu, 12 Jan 2012 06:03:16 PM Klaus Thoeni wrote:
>>>>>> Hi guys,
>>>>>>
>>>>>> as discussed with Bruno in Barcelona I need different non-viscous
>>>>>> damping coefficients for different materials. I introduced this
>>>>>> capability by adding a variable damping to the base class material
>>>>>> which is initialised with NaN. The body class has a function
>>>>>> getDampCoeff() and in
>>>>>> NewtonIntegrator I use this function in order to change the damping
>>>>>> coefficients. When running some examples it seems that everything
>>>>>> works fine. However, I just run 'yade --test' and it gives me a seg
>>>>>> fault:
>>>>>>
>>>>>> testVelocity (yade.TestSimpleClump)
>>>>>> Clump: velocities of member assigned by NewtonIntegrator ...
>>>>>> Segmentation fault
>>>>>>
>>>>>> I think I now where the problem is. In NewtonIntegrator I call
>>>>>> something like:
>>>>>>
>>>>>> if(!isnan(b->getDampCoeff())) dampcoeff=b->getDampCoeff();
>>>>>>
>>>>>> where getDampCoeff() is defined in body.hpp as:
>>>>>>
>>>>>> Real getDampCoeff() { return material->damping; };
>>>>>>
>>>>>> I think the test doesn't have a material and therefore I get the seg
>>>>>> fault. Right? How can we fix this so that I can commit the code?
>>>>>>
>>>>>> Klaus
>>>>> _______________________________________________
>>>>> Mailing list: https://launchpad.net/~yade-dev
>>>>> Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
>>>>> Unsubscribe : https://launchpad.net/~yade-dev
>>>>> More help   : https://help.launchpad.net/ListHelp
>>>> _______________________________________________
>>>> Mailing list: https://launchpad.net/~yade-dev
>>>> Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
>>>> Unsubscribe : https://launchpad.net/~yade-dev
>>>> More help   : https://help.launchpad.net/ListHelp
>>> _______________________________________________
>>> Mailing list: https://launchpad.net/~yade-dev
>>> Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
>>> Unsubscribe : https://launchpad.net/~yade-dev
>>> More help   : https://help.launchpad.net/ListHelp
>> _______________________________________________
>> Mailing list: https://launchpad.net/~yade-dev
>> Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
>> Unsubscribe : https://launchpad.net/~yade-dev
>> More help   : https://help.launchpad.net/ListHelp
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-dev
> Post to     : yade-dev@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-dev
> More help   : https://help.launchpad.net/ListHelp
>


-- 
_______________
Bruno Chareyre
Associate Professor
ENSE³ - Grenoble INP
11, rue des Mathématiques
BP 46
38402 St Martin d'Hères, France
Tél : +33 4 56 52 86 21
Fax : +33 4 76 82 70 43
________________



References