# filedriver_demo.mbd #----------------------------------------------------------------------------- # [Data Block] begin: data; problem: initial value; end: data; #----------------------------------------------------------------------------- # [ Block] begin: initial value; initial time: 0.; final time: 2.; time step: 1.e-2; max iterations: 10; tolerance: 1.e-6; end: initial value; #----------------------------------------------------------------------------- # [Control Data Block] begin: control data; structural nodes: 1; file drivers: 1; rigid bodies: 1; joints: 1; end: control data; #----------------------------------------------------------------------------- # Node Labels set: integer Node_Object = 1; # Driver Labels set: integer DrFile_Input =1; # Body Labels set: integer Body_Object = 1; # Joint Labels set: integer JoTotp_Object_Input = 1; #----------------------------------------------------------------------------- # [Nodes Block] begin: nodes; #----------------------------------------------------------------------------- # Nodes structural: Node_Object, dynamic, null, # absolute position eye, # absolute orientation null, # absolute velocity null; # absolute angular velocity end: nodes; #----------------------------------------------------------------------------- # [Drivers Block] begin: drivers; #----------------------------------------------------------------------------- # Drivers file: DrFile_Input, fixed step, count, 2, # columns number 0, # initial time 0.01, # time step pad zeros, yes, "Input_Test.txt"; end: drivers; #----------------------------------------------------------------------------- # [Elements Block] begin: elements; #----------------------------------------------------------------------------- # Bodies body: Body_Object, Node_Object, 1., # mass null, # relative center of mass eye; # inertia matrix #----------------------------------------------------------------------------- # Joints joint: JoTotp_Object_Input, total pin joint, Node_Object, position, null, # relative offset position, null, # absolute position position constraint, active, active, active, single, 1., 0., 0., file, DrFile_Input, 2, # column number orientation constraint, active, active, active, null; end: elements;