Push All Scripts
This commit is contained in:
3
SL_Electron_Dynamics/SL_Electron_Dynamics.sol
Normal file
3
SL_Electron_Dynamics/SL_Electron_Dynamics.sol
Normal file
@@ -0,0 +1,3 @@
|
||||
<Solution name="SL_Electron_Dynamics">
|
||||
<Project name="SL_Electron_Dynamics" path="SL_Electron_Dynamics\SL_Electron_Dynamics.prj" active="true"/>
|
||||
</Solution>
|
||||
@@ -0,0 +1,116 @@
|
||||
// :CATEGORY:Physical simulations
|
||||
// :NAME:SL_Electron_Dynamics
|
||||
// :AUTHOR:Daniel C. Smith
|
||||
// :CREATED:2010-01-10 05:20:56.000
|
||||
// :EDITED:2013-09-18 15:39:03
|
||||
// :ID:783
|
||||
// :NUM:1071
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// This script has been working sporadically - use at your own risk.
|
||||
// :CODE:
|
||||
//=============================================================
|
||||
|
||||
//SL Electron Dynamics, 0.1
|
||||
|
||||
//Demonstrates the movement of an electron through a magnetic field //Copyright (C) 2006 Daniel C. Smith //=============================================================
|
||||
|
||||
|
||||
|
||||
//GNU LICENSE ===============
|
||||
|
||||
//This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. See: http://www.gnu.org/licenses/licenses.html
|
||||
|
||||
//============================
|
||||
|
||||
|
||||
|
||||
// This script is very rough. Use at your own risk!
|
||||
|
||||
|
||||
|
||||
// Instructions:
|
||||
|
||||
//==============
|
||||
|
||||
// Just place script in an object (with physics turned off!) and touch the object. Any nonphysical object
|
||||
|
||||
// will do. I usually just use a sphere to represent an electron (or any charged particle).
|
||||
|
||||
// The default setting is a constant magnetic field pointing in the z direction, so the "electron" just
|
||||
|
||||
// travels in a circle.
|
||||
|
||||
// You can change the initial velocity (v), charge (q), and mass (m) of the "electron."
|
||||
|
||||
// You can also change the magnetic field (b). For now I have only implemented a constant mangetic
|
||||
|
||||
// field (constant in space and time).
|
||||
|
||||
|
||||
|
||||
// To do:
|
||||
|
||||
//=======
|
||||
|
||||
// - Make magnetic field variable in space and time.
|
||||
|
||||
// - Make magnetic field readable from an external source.
|
||||
|
||||
// - Add force due to electric field.
|
||||
|
||||
|
||||
|
||||
//SETTING UP THE OBJECT ===============
|
||||
|
||||
|
||||
|
||||
vector v; // velocity
|
||||
|
||||
vector x; // position
|
||||
|
||||
vector k0;
|
||||
|
||||
vector k1;
|
||||
|
||||
//vector k2;
|
||||
|
||||
//vector k3;
|
||||
|
||||
vector b = <0.0, 0.0, 1.0>; // magnetic field
|
||||
|
||||
float q = -1.0; // charge
|
||||
|
||||
float m = 1.0; // mass
|
||||
|
||||
float dt; // timestep
|
||||
|
||||
|
||||
|
||||
default
|
||||
|
||||
{
|
||||
|
||||
state_entry()
|
||||
|
||||
{
|
||||
|
||||
v = <0.0, 0.0, 0.0>;
|
||||
|
||||
x = llGetPos();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
on_rez(integer start_param)
|
||||
|
||||
{
|
||||
|
||||
llOwnerSay("Rezzing.");
|
||||
|
||||
llResetScript();
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
vti_encoding:SR|utf8-nl
|
||||
vti_timelastmodified:TR|08 Sep 2013 03:49:06 -0000
|
||||
vti_extenderversion:SR|12.0.0.6211
|
||||
vti_backlinkinfo:VX|
|
||||
vti_author:SR|alien\\fred
|
||||
vti_modifiedby:SR|alien\\fred
|
||||
vti_timecreated:TR|18 Sep 2013 20:39:03 -0000
|
||||
@@ -0,0 +1,6 @@
|
||||
<Project name="SL_Electron_Dynamics" guid="D6BC4B9D-6C00-1014-B904-200204C60A89">
|
||||
<Object name="Object" guid="D6BC4C9A-6C00-1014-B904-200204C60A89">
|
||||
<Script name="SL_Electron_Dynamics_1.lsl" guid="D6BDF5E2-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
@@ -0,0 +1,6 @@
|
||||
vti_encoding:SR|utf8-nl
|
||||
vti_timelastmodified:TR|17 Aug 2013 23:32:26 -0000
|
||||
vti_extenderversion:SR|12.0.0.0
|
||||
vti_cacheddtm:TX|17 Aug 2013 23:32:26 -0000
|
||||
vti_filesize:IR|279
|
||||
vti_backlinkinfo:VX|
|
||||
6
SL_Electron_Dynamics/_vti_cnf/SL_Electron_Dynamics.sol
Normal file
6
SL_Electron_Dynamics/_vti_cnf/SL_Electron_Dynamics.sol
Normal file
@@ -0,0 +1,6 @@
|
||||
vti_encoding:SR|utf8-nl
|
||||
vti_timelastmodified:TR|17 Aug 2013 23:32:26 -0000
|
||||
vti_extenderversion:SR|12.0.0.0
|
||||
vti_cacheddtm:TX|17 Aug 2013 23:32:26 -0000
|
||||
vti_filesize:IR|160
|
||||
vti_backlinkinfo:VX|
|
||||
Reference in New Issue
Block a user