Generating Position and Gradients for Loaded Configuration

The following process can be used to generate a CSV file containing the position and gradients for loaded configuration, which can then be imported and saved into a MotionView model.
  1. Start with the NLFE Body in a No-Load configuration and apply Force/Motion to load the NLFE Body as needed.
  2. Include the MotionSolve Save command to save the states of the model into an XML file (herein referred as “saved state XML”) after the Simulate command. A Template that writes into the solver command section can be used in MotionView.
    Figure 1.


  3. Click on Default Analysis in the Model Browser and then select the Scripted Simulation check box from the Entity Editor - Analysis.
    Figure 2.


  4. Solve the model. Select the Run offline option in the Run settings and click the Run button.
    Figure 3.


  5. Once the run is complete.
    1. Right-click in the empty space in the Model Browser and select Python Script.
    2. Browse to the python script “NLFE_generate_loaded_csv.py” available in the installation (install_location/hwdesktop/utility/mbd/nlfe).
    3. The script will prompt you to open the saved state XML file and also provide a CSV file name to save the position and gradients information.
      Figure 4.


  6. Once the CSV file is saved, import it into the Position & Gradients table available in the NLFE Body Connectivity section of the Entity Editor.
    Figure 5.


    Upon importing the loaded configuration, the display of the NLFE Body in graphics area would change. The NLFE Body loaded configuration gets the prominent display with solid implicit graphics while the no load configuration will be shown in a wireframe featured mode.
    Figure 6.