SPRING TWO MASSES – CREATING XYZ FILE AND ANIMATION.

Slides:



Advertisements
Similar presentations
VOCABULARY MOD2-22.
Advertisements

Working with Graphics – Lesson 21 Working with Graphics Lesson 2.
Loading Files from SFTP Server. Browsing Remote File System 1) Use “Files of Type” combobox to select file format 2) File Browser shows only files of.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Word Web Feature Creating Web Pages Using Word.
1 TITRE Click to edit text. 2 Text box Click to edit text A Titre.
Saving a Word Document as a Web Page
CS 299 – Web Programming and Design Overview of JavaScript and DOM Instructor: Dr. Fang (Daisy) Tang.
FIRST COURSE Creating Web Pages with Microsoft Office 2007.
Text to Speech Presented by Lorinda Tait from Lansing School District 8/8/2015 8/8/2015.
E 3 PowerPoint Basic PP Animated PP Powered PP MENU Next Creating a Basic PowerPoint Presentation: Templates Text Graphics.
How to change the default file format in Open Office Start open office writer Click on Tools click on options.
Windows Movie Maker. How to EXPORT Exporting……. In the Project, open the FINISH MOVIE tab.
Created in 2011 at Liberty High School. Getting Started Overview on Magnet Tool – Graphics – Text – Image – Video – Sound – Wall A Sample Glog How to.
Embedding Windows Media Player Controls First, you need to add the Developer Tab in PowerPoint. 1. Click on File and choose Options. 2. In the categories.
Power Point Presentations A Step by Step Guide. Contents The very first step Choosing slide layout Adding text boxes Custom Animation Changing slide design.
Slide 1 of 24 1) Launch Fireworks 2) Under File, choose New 3) In the New Document dialog box, enter Width: 100, Height 160, Resolution 72, and choose.
Working with Graphics – Lesson 21 Working with Graphics Lesson 2.
1 Copyright © 2004 Prentice-Hall. All rights reserved. Essentials Word 2003 – Level 1 Project 8: Inserting and Formatting Graphics.
Canvas Class- Submit An Assignment in Canvas Spring 2014 By- PCI Librarian.
TOPIC II Dynamic HTML Prepared by: Nimcan Cabd Cali.
What is PowerPoint? By Kettina L. Robinson. Unit Questions What do I want to accomplish? What do I want to accomplish? What content do I need to cover?
Microsoft Word Notes. Justified To justify your typing: –Highlight the information –Choose format –Paragraph –Use the dropdown menu next to alignment.
1.5 LooGix.com Experience and Creation Meg Moring.
1 After completing this lesson, you will be able to: Get around the Internet with your browser. Connect to the Internet. Print Web pages. Save Web pages.
SPRING, 2010 Types of Formatting and Copy vs. Move.
Powerpoint for Students What is Powerpoint?  Presentation software  Slides  Graphics  Animations for text  Animations for slides  Sound effects.
Instructional/6-8/General Session 1 of 1 Get Going with eChalk Digital File Locker.
CHOOSE 1 OF THESE.
XP New Perspectives on Creating Web Pages With Word Tutorial 1 1 Creating Web Pages With Word Tutorial 1.
Global Rangelands Data Entry Guidelines March 23, 2015.
INTRODUCTION TO MATLAB
Matlab Programming for Engineers
Creating Fast Vector Art in OO
HOW TO SEND FILES USING SKYPE
Skill Enhancement Document
Advanced Navigation Features
Word 2002 Chapter 7 MANIPULATING TABS.
Visualization with VMD
Topic 3.5 Word Processing Application Microsoft Word.
MATLAB DENC 2533 ECADD LAB 9.
Exercise 63 Use a Flash movie clip symbol to store an animation that you need to use more than once in an application. This is very important for keeping.
Introduction to VMD (Visual Molecular Dynamics)
PERIODIC TABLE OF ELEMENTS
Formatting Content in Word 2010
Illustrations and Graphics in Word 2010
How to Customize Your Teens in the Driver Seat Poster
Forging new generations of engineers
How to Customize Your Teens in the Driver Seat Poster
Forging new generations of engineers
Formatting Content in Word 2010
How to Customize Your Teens in the Driver Seat Poster
Dreamweaver Basics.
In the home page, click on “Reports”
Windows.
Blackboard Tutorial (Student)
Pivot Tables= impromptu data reports for student grade data
How to use Refworks to Cite a reference and to Create the Bibliography
Microsoft Office Ribbon
Blackboard Tutorial (Student)
Print, , Save Results TUTORIAL ToxPlanet Documents Print, , Save Results
Types of Presentation Create a kiosk display.
DAT2343 LMC Simulator Usage © Alan T. Pinck / Algonquin College; 2003.
STEP ONE. STEP ONE. STEP ONE. STEP ONE. STEP ONE. 02
Teacher In-Service Day PowerPoint--Make it, Take it, Use it
Blackboard Tutorial (Student)
Formatting Content in Word 2010
Introduction to JavaScript
Add content to the Library
Formatting Content in Word 2010
Lesson 6 File Types.
Presentation transcript:

SPRING TWO MASSES – CREATING XYZ FILE AND ANIMATION

XYZ file format

XYZ file format - animation

SPRING OPEN NEW SCRIPT!

SPRING - initial values clc clear L=1; k=1; m=1; T=10; dt=0.1; n=T/dt;

SPRING - initial values x1(1)=-0.5; x2(1)=L+1; t(1)=0;

SPRING - animation f=mopen("harmonic.xyz", "w"); //creating file "harmonic.xyz" for writing mfprintf(f,"2\n"); // 2 for the number of atoms and "\n" for the new line mfprintf(f,"\n"); mfprintf(f,"C %8.3f %8.3f %8.3f\n",x1(1),0,0); mfprintf(f,"C %8.3f %8.3f %8.3f\n",x2(1),0,0); // C is the symbol of atom, 8 represents the size of the text box with number, 3 - number of decimal digits, x2(1) represents x coordinate, 0 - y and z

SPRING - loop for i=1:n dl=(x2(i)-x1(i)-L); dv1=k*dl/m*dt; dv2=-dv1; v1(i+1)=v1(i)+dv1; v2(i+1)=v2(i)+dv2; x1(i+1)=x1(i)+v1(i+1)*dt; x2(i+1)=x2(i)+v2(i+1)*dt; t(i+1)=t(i)+dt; mfprintf(f,"2\n"); mfprintf(f,"\n"); mfprintf(f,"C %8.3f %8.3f %8.3f\n",x1(i+1),0,0); mfprintf(f,"C %8.3f %8.3f %8.3f\n",x2(i+1),0,0); end plot(t,x1,t,x2) mclose(f) // closing the file

TO EXECUTE

SPRING - results

SPRING - animation Open VMD. Go to File|New Molecule…

SPRING - animation In the Molecule File Browser click Browse… Look for file: harmonic.xyz in the Documents and open it. Click Load.

SPRING - animation Then go to Graphics| Representations…

SPRING - animation Go to Drawing method and choose CPK. Open VMD OpenGL Display Window and enjoy the result.