This project is read-only.

This is The Video Tutorial : http://www.youtube.com/watch?v=0gsBSDJhwcU

 

This is an Tutorial on how to Use The Common Intermediate Dynamic Scientific Libray

Adding The Library To the Solution:

Step 0 :- Download The Current Release of The Library From The Downloads Section. It is a Dynamically Linked Library (.dll)

Step 1 :- Right Click on The References Folder on The Solution Explorer

Step 2 :- [In Mono For Linux] Click on Edit References on The Shortcut Menu
              [In Visual Studio] Click on Add References in The Shortcut Menu

Step 3 :- [In Mono For Linux] Click on The .Net Assembly Subsection in The Dialog Box and Browse Through your Computer's Folders and Select The Library to Insert it

              [In Visual Studio] Browse Through you Computer's Folder and Select The Library.

Step 4:- Add The Library Standard Header's Physics Namespace to your Code , For Example if you are Using              C# Then you would Add

         Using Physics;

 

Using The Library in Your Code:

 

Step 1 : Create an Entity Object..

             An Entity is an Object in The CIDSL Which Basically Stands for A Physical Body and Its Data. In                    This Exercise I am Going to Demonstrate The Calculation of Current in an Wire. The Process of                      Calculation is Same For All Physical Characteristics

             Lets Create an Entity Copper Wire:

            entity  CopperWire = new entity();

 

Step 2 : Add Data To The Entity Object..

      
             
Now We Do Need to Provide Some Data For The Calculation to Take Place Right....Suppose in This                Copper Wire Case We Don't Have The Net Electron Charge Available But we do Know That How                      Many Electrons Are Passing Through it... So We are now Going to Add The Number of Electrons                    in The Entity Data..... This is Done by The Following Format:

             <entity name>.DataField = Data Value ;

             So To Add The Number of Electrons Data Just Type this....Supposing the Number of ELectrons                      Passing are 10 in Number In Time 37:

             CopperWire.NumberOfElectrons = 10  ;

             CopperWire.CurrentTime = 37;

Step 3 : Calculating The Desired Data:

              The Library is Equipped With Functions That Calculate and Assign The Data Calculated to                     Their Respective Field so You Don't Have to do The Assigning and only Have to Execute The                 Function. The Format For The Function is:

               <entity name>.<Calculation Function>;

              In This Case We Are Going to Use The Calculate Current Function , Like This one:

               CopperWire.CalculateCurrent();

              This Function Would Assign The Value To The Entity's Current Data Field So Don't Worry ,                     you Don't Have to do The Assigning ....

Step 4 : Printing it Out:

            Now You Can Just Put it Out Through your Code And Access The Values  The Way you Want ...              Here is an Example on  How to Print it in The Console...

            Console.WriteLine("The Current is"+CopperWire.Current);

 

Step 5 : There is More

             There is more to the Library Than Just These Simple Calculations , Its Just for the Sake of                    Tutorial i Didn't Stuff it up with complex Data  and Calculations... I am Sure You Get The Idea                Now on How to use the Library

 

 

There is also A Gyroscopic Precession Tutorial-Example in The Attachments of This Page...Goto this URL to Download  http://download-codeplex.sec.s-msft.com/Download?ProjectName=cidsl&DownloadId=679528

Last edited May 19, 2013 at 7:33 AM by siddharths067, version 7

Comments

No comments yet.