Typically the output from trajectory simulation programs is analyzed using two-dimensional time history plots. It is often desired to animate the trajectory where position and orientation of the bodies inflight are put into motion. The following is a MATLAB based tool which generates a movie from the trajectory data. The animations generated using this tool serve as an engineering analysis tool to gain further insight into the dynamic behavior of flight vehicles. This tool is able to animate a single body as well as multiple vehicles in flight, and has been tailored for output generated from POST II simulations. 2MethodThis tool has been designed such that no code modification is required by the user. The animation tool obtains most of the required inputs from the POST II input file, POST II output file, and the Matfile (Figure 1). The user is required to provide master_setup.txt, geom_data and camera_properties.txt files for additional parameters. Figure 1 Animation tool flow diagram POST II input file POST II executable POST II output filePOST II matfile user input global parameters(master_setup.txt)AVI file Animation_driver executable user input animation parameters(geom_data)user input camera properties (camera_properties.txt) Step-by-step instructions This section outlines, step-by-step, the procedure to make a trajectory animation. The animation tool has been developed in MATLAB. All the source files have been compiled using the MATLAB Compiler. The compiled executable, named animation_driver.exe, is a stand-alone application and is used to generate trajectory animations in AVI format. The AVI file is compatible with both PCs and Macs.3.1Step 1: Installation MATLAB Component Runtime (MCR) module needs to be installed on the host machine. AMATLAB license is not required for the MCR installation. The MCR installer utility program(MCRInstaller.exe) will be provided as part with the animation tool. The MATLAB Component Runtime installation procedure is provided in MATLAB Compiler User’s Guide [2], page 4-6. It is also available on the web. The instructions are provided for the Windows and Linux platforms. http://www.mathworks.com/access/helpdesk/help/toolbox/compiler/999353 3.1.1 Windows installation The following components make up the animation application on Windows platforms. MCR Installer.exe Self-extracting MATLAB Component Runtime library utility;Platform-dependent file that must correspond to the end user’s platform. animation_driver.exe Animation application animation_driver.ctf Component Technology File archive; Platform-dependent filethat must correspond to the end user’s platform.Copy animation_driver.exe and animation_driver.ctf files to the local drive in the same directory as the trajectory data.
Download POST II Trajectory Animation Tool Using MATLAB V1.0.
0 comments:
Post a Comment