]> permondes.de Git - Analog_Engine.git/commitdiff
Application Gravity
authorPermondes <machen@permondes.de>
Tue, 30 Jul 2024 17:13:24 +0000 (19:13 +0200)
committerPermondes <machen@permondes.de>
Tue, 30 Jul 2024 17:13:24 +0000 (19:13 +0200)
Application: Gravity, 1-dim
LACE: added division, assign

Analog Engine Example Applications.odt
description Language for Analog Circuit Engines.odt
scripts/Gravity – 1-dimensional.LACE [new file with mode: 0644]

index bc0ea21a60f0269f5ee7492579a4c323e5111958..9057704e2ddf580d2b3248cc65fb40cae050afb8 100644 (file)
Binary files a/Analog Engine Example Applications.odt and b/Analog Engine Example Applications.odt differ
index 979810d4fb8e687bbac18e8240b221835134d54d..19deaef0226d491ab369083756a2c172a2768fee 100644 (file)
Binary files a/description Language for Analog Circuit Engines.odt and b/description Language for Analog Circuit Engines.odt differ
diff --git a/scripts/Gravity – 1-dimensional.LACE b/scripts/Gravity – 1-dimensional.LACE
new file mode 100644 (file)
index 0000000..dae7f51
--- /dev/null
@@ -0,0 +1,20 @@
+# Gravity – 1-dimensional.LACE
+# The small mass m moves along the direct connection line towards mass M.  
+# r'' = -gamma*M / r^2
+
+coefficient(1): +1 -> r0' # -1 to move initially towards M, +1 to  move away from it
+coefficient(2): -1 -> -r0 # initial distance of m to M
+coefficient(3): +1 -> gamma*M # will be inverted in division
+
+iintegrate r'' -> -r'
+  IC: r0'
+iintegrate -r' -> r
+  IC: -r0
+multiply r, r -> r^2
+idivide gamma*M, r^2 -> -gamma*M/r^2
+assign -gamma*M/r^2 -> r''
+
+output(x): r      # distance
+invert -r' -> r'
+output(y): r'     # speed and direction
+output(z): r''    # acceleration (always towards M)