From: Permondes Date: Tue, 30 Jul 2024 17:13:24 +0000 (+0200) Subject: Application Gravity X-Git-Url: https://permondes.de/gitweb/Analog_Engine.git/commitdiff_plain/44e09cca95915af9f947d571a916c76c6eff3fd6?ds=inline;hp=8f52e908448be35d3814a396e1cd4867b41faf94 Application Gravity Application: Gravity, 1-dim LACE: added division, assign --- diff --git a/Analog Engine Example Applications.odt b/Analog Engine Example Applications.odt index bc0ea21..9057704 100644 Binary files a/Analog Engine Example Applications.odt and b/Analog Engine Example Applications.odt differ diff --git a/description Language for Analog Circuit Engines.odt b/description Language for Analog Circuit Engines.odt index 979810d..19deaef 100644 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 \342\200\223 1-dimensional.LACE" "b/scripts/Gravity \342\200\223 1-dimensional.LACE" new file mode 100644 index 0000000..dae7f51 --- /dev/null +++ "b/scripts/Gravity \342\200\223 1-dimensional.LACE" @@ -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)