(examples-myfirstexample)= # myFirstExample.py You can view and download this file on Github: [myFirstExample.py](https://github.com/jgerstmayr/EXUDYN/tree/master/python/Examples/myFirstExample.py) ```{code-block} python :linenos: #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ # This is an EXUDYN example # # Details: Micro example from documentation; use this to check if Exudyn works # # Author: Johannes Gerstmayr # Date: 2019-08-01 # # Copyright:This file is part of Exudyn. Exudyn is free software. You can redistribute it and/or modify it under the terms of the Exudyn license. See 'LICENSE.txt' for more details. # #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ import exudyn as exu #EXUDYN package including C++ core part from exudyn.itemInterface import * #conversion of data to exudyn dictionaries SC = exu.SystemContainer() #container of systems mbs = SC.AddSystem() #add a new system to work with nMP = mbs.AddNode(NodePoint2D(referenceCoordinates=[0,0])) mbs.AddObject(ObjectMassPoint2D(mass=10, nodeNumber=nMP )) mMP = mbs.AddMarker(MarkerNodePosition(nodeNumber = nMP)) mbs.AddLoad(Force(markerNumber = mMP, loadVector=[0.001,0,0])) mbs.Assemble() #assemble system and solve simulationSettings = exu.SimulationSettings() simulationSettings.timeIntegration.verboseMode=1 #provide some output mbs.SolveDynamic(simulationSettings) ```