← Back to team overview

yade-users team mailing list archive

Re: Is there a method to change the parameters during a simulation

 

Oooops...

Sorry Feng, there is a mistake in my previous post, as you probably 
noticed, the code in method 2 should be :

{ ...

shared_ptr<CundallNonViscousForceDamping> actionForceDamping(new 
CundallNonViscousForceDamping);
    actionForceDamping->damping = ...;

shared_ptr<DampingModifier> dampingModifier(new DampingModifier);
    dampingModifier->p = _*actionForceDamping*_;

....
....
....

rootBody->engines.push_back(dampingModifier);

... }

Bruno



Feng, Chen a écrit :

>Thanks both of you, Lionel and Bruno, yes, it seems better to write a 
>standalone engine to handle this task, I will let you know the detailed 
>procedure after I succeed:)
>
>Feng
>
>  
>
>>===== Original Message From Bruno Chareyre <bruno.chareyre@xxxxxxxxxxx> =====
>>Mmmh... Lionel, you explain almost the same idea as me, I should have
>>check your answer first ;-).
>>
>>But, Feng should NOT modify the existing class. This would be a very bad
>>idea :-).
>>    
>>
>
>_______________________________________________
>Yade-users mailing list
>Yade-users@xxxxxxxxxxxxxxxx
>https://lists.berlios.de/mailman/listinfo/yade-users
>
>  
>


-- 
_______________
Chareyre Bruno
Maître de conférence

Institut National Polytechnique de Grenoble
Laboratoire 3S (Soils Solids Structures) - bureau I08
BP 53 - 38041, Grenoble cedex 9 - France     
Tél : 04.56.52.86.21
________________

_______________________________________________
Yade-users mailing list
Yade-users@xxxxxxxxxxxxxxxx
https://lists.berlios.de/mailman/listinfo/yade-users



References