]> permondes.de Git - Analog_Engine.git/commitdiff
Restructured Documents, integration constant, removed SPEED
authorPermondes <machen@permondes.de>
Fri, 12 Jan 2024 20:02:08 +0000 (21:02 +0100)
committerPermondes <machen@permondes.de>
Fri, 12 Jan 2024 20:02:08 +0000 (21:02 +0100)
Restructured Documents:
- Language: about the syntax of AESL
- Technical Topics: such as integrating constants, scaling
- Examples

Language:
- removed obsolete SPEED

Analog Engine Example Applications.odt
Analog Engine Scripting Language.odt
Analog Engine Technical Topics.odt [new file with mode: 0644]
Damped Harmonic Osciallator scaled.AESL [new file with mode: 0644]
Damped Harmonic Oscillator.AESL [new file with mode: 0644]
Radioactive Decay.AESL [new file with mode: 0644]

index 67de14a4af7e4e074ea79ff43d9b8ce408979528..fe40752e7f0e96ff65f7ea26be40d871e42674b2 100644 (file)
Binary files a/Analog Engine Example Applications.odt and b/Analog Engine Example Applications.odt differ
index e93483be5a90c16f2711da9d5d50b8f1594e3908..0abadbdf81bf3b82ae477646814335c2ff1cdaa4 100644 (file)
Binary files a/Analog Engine Scripting Language.odt and b/Analog Engine Scripting Language.odt differ
diff --git a/Analog Engine Technical Topics.odt b/Analog Engine Technical Topics.odt
new file mode 100644 (file)
index 0000000..96b6dd1
Binary files /dev/null and b/Analog Engine Technical Topics.odt differ
diff --git a/Damped Harmonic Osciallator scaled.AESL b/Damped Harmonic Osciallator scaled.AESL
new file mode 100644 (file)
index 0000000..cc766f2
--- /dev/null
@@ -0,0 +1,41 @@
+IDENTIFICATION DIVISION
+PROGRAM-ID Damped_Oscillator
+
+ENVIRONMENT DIVISION
+ENGINE Anabrid-THAT
+TIMEBASE 1ms
+REQUIRES COEFFICIENT 5
+REQUIRES INTEGRATOR 2
+REQUIRES INVERTER 1
+REQUIRES SUMMER 2
+
+DATA DIVISION
+OUTPUT OUT.U y
+ALIAS COEFFICIENT.1 InitialPosition
+ALIAS COEFFICIENT.2 InitialSpeed
+ALIAS COEFFICIENT.3 SpringForce
+ALIAS COEFFICIENT.4 Damping # linear to speed
+ALIAS COEFFICIENT.5 Mass # 1 / mass
+
+PROGRAM DIVISION
+# Colors being used for wiring
+# - black:  y0
+# - blue:   y0’
+# - green:  y0’’
+# - yellow: y’’, y’
+# - red:    y
+-1 -> InitialPosition -> -y0 # -initial position of the mass
+-1 -> InitialSpeed -> y0s’ # y’ is scaled to be within -1..+1
++1, y0s’, y0s’ -> Summer.1 -> y0’
+
+y’’, IC:y0’ -> INTEGRATOR.1 -> -y’
+-y’,IC:-y0 -> INTEGRATOR.2 -> y
+y -> SpringForce -> S*y # springforce times displacement
+-y’ -> INVERTER.1 -> y’
+y’ -> Damping -> D*y’ # damping times speed
+10:S*y, 10:D*y’ -> SUMMER.2 -> -(Dy’+Sy)
+-(Dy’+Sy) -> Mass -> -1/m*(Dy’+Sy)=y’’
+
+OPERATION DIVISION
+MODE REPEAT
+OP-TIME 57ms
diff --git a/Damped Harmonic Oscillator.AESL b/Damped Harmonic Oscillator.AESL
new file mode 100644 (file)
index 0000000..5dbe333
--- /dev/null
@@ -0,0 +1,39 @@
+IDENTIFICATION DIVISION
+PROGRAM-ID Damped_Oscillator
+
+ENVIRONMENT DIVISION
+ENGINE Anabrid-THAT
+REQUIRES COEFFICIENT 5
+REQUIRES INTEGRATOR 2
+REQUIRES INVERTER 1
+REQUIRES SUMMER 2
+
+DATA DIVISION
+OUTPUT OUT.U y
+ALIAS COEFFICIENT.1 InitialPosition
+ALIAS COEFFICIENT.2 InitialSpeed
+ALIAS COEFFICIENT.3 SpringForce
+ALIAS COEFFICIENT.4 Damping # linear to speed
+ALIAS COEFFICIENT.5 Mass # 1 / mass
+
+PROGRAM DIVISION
+# Colors being used for wiring
+# - black:  y0
+# - blue:   y0’
+# - green:  y0’’
+# - yellow: y’’, y’
+# - red:    y
+-1 -> InitialPosition -> -y0 # -initial position of the mass
+-1 -> InitialSpeed -> y0s’ # y’ is scaled to be within -1..+1
++1, y0s’, y0s’ -> Summer.1 -> y0’
+y’’, IC:y0’ -> INTEGRATOR.1 -> -y’
+-y’,IC:-y0 -> INTEGRATOR.2 -> y
+y -> SpringForce -> S*y # springforce times displacement
+-y’ -> INVERTER.1 -> y’
+y’ -> Damping -> D*y’ # damping times speed
+S*y, D*y’ -> SUMMER.2 -> -(Dy’+Sy)
+-(Dy’+Sy) -> Mass -> -1/m*(Dy’+Sy)=y’’
+
+OPERATION DIVISION
+MODE REPEAT
+OP-TIME 80ms
diff --git a/Radioactive Decay.AESL b/Radioactive Decay.AESL
new file mode 100644 (file)
index 0000000..34b3acf
--- /dev/null
@@ -0,0 +1,23 @@
+IDENTIFICATION DIVISION
+PROGRAM-ID Radioactive_Decay
+
+ENVIRONMENT DIVISION
+ENGINE Anabrid-THAT
+REQUIRES Coefficient 2
+REQUIRES Integrator 1
+REQUIRES Inverter 1
+
+DATA DIVISION
+OUTPUT OUT.X N
+ALIAS COEFFICIENT.1 InitialValue
+ALIAS COEFFICIENT.2 Decay 
+
+PROGRAM DIVISION
++1 -> InitialValue -> N0
+N’, IC:N0 -> Integrator.1 -> -N
+-N -> Decay -> -lambda*N=N’
+-N -> Inverter.1 -> N
+
+OPERATION DIVISION
+MODE REPEAT
+OP-TIME 20ms