[MBDyn-users] File Drive Variable Mass

Pierangelo Masarati pierangelo.masarati at polimi.it
Mon Dec 19 15:17:19 CET 2016


You need the "variable mass" keyword before the specification of the 
mass value.  p.

On 12/19/2016 03:13 PM, Andrea Zanoni wrote:
> Hi,
>
> after you have defined the file driver in the "drivers" section, you 
> can just call it with
>
>
> body: 1001,1001,
>
> *file, 5, 2,*
>
>           null,
>
>           diag,Jr_x,Jr_y,Jr_z;
>
>
> if you want to "name" that file driver with the label "Mr", as I seem 
> to understand from your message, you should do something like this:
>
> set: integer Mr = 5;
>
> begin:drivers;
>     file: Mr, fixed step, 10, 3., 0., 0.001, "output.dat";
> end:drivers
>
> begin:elements;
>
> body: 1001, 1001,
>     Mr,
>     null,
>     diag, Jr_x, Jr_y, Jr_z;
>
> end:elements
>
> the "set" statement that you have included in your email tries to 
> define a real-valued variable called "Mr" with the value "file,5,2", 
> which is not a real value, but a string.
>
> Cheers
> Andrea
>
> Il 19/12/2016 14:11, ybrk ozkan ha scritto:
>>
>> Dear mbdyn team;
>>
>> We want to simulate rocket with variable mass in time. We know that 
>> drive option can be used for this purpose. The small part of our 
>> input can be seen below (this part responds error message on the screen)
>>
>> If any other options to solve this problem, we are very open-minded
>>
>>
>> -----------------------------------------------------------------------------------------------------
>>
>> begin: drivers;
>>
>> file:5,fixed step,10,3,0,0.001,"output.dat";
>>
>> end: drivers;
>>
>>
>> *set: real Mr=file,5,2 ;*
>>
>>
>> begin : elements ;
>>
>>
>> body: 1001,1001,
>>
>> *Mr,*
>>
>>           null,
>>
>>           diag,Jr_x,Jr_y,Jr_z;
>>
>>
>>          .
>>
>>          .
>>
>>          .
>>
>>          .
>>
>>          .
>>
>>          .
>>
>>          .
>>
>>          .
>>
>> end : elements;
>>
>> --------------------------------------------------------------------------------------------------
>>
>>
>>
>>
>>
>> _______________________________________________
>> MBDyn-users mailing list
>> MBDyn-users at mbdyn.org
>> https://mail.mbdyn.org/cgi-bin/mailman/listinfo/mbdyn-users
>
> -- 
> ---
> Andrea Zanoni
> Dipartimento di Scienze e Tecnologie Aerospaziali
> Politecnico di Milano
> Ph. (+39) 02 2399 8035
>
>
> _______________________________________________
> MBDyn-users mailing list
> MBDyn-users at mbdyn.org
> https://mail.mbdyn.org/cgi-bin/mailman/listinfo/mbdyn-users


-- 
Pierangelo Masarati
Professor
Dipartimento di Scienze e Tecnologie Aerospaziali
Politecnico di Milano

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mbdyn.org/pipermail/mbdyn-users/attachments/20161219/41aacdcd/attachment.html>


More information about the MBDyn-users mailing list