From: Permondes Date: Wed, 29 May 2024 17:34:06 +0000 (+0200) Subject: a rope slides frictionlessly down the edge of a table X-Git-Url: https://permondes.de/gitweb/Analog_Engine.git/commitdiff_plain/6e4089e8217c971c0154c414f5fed5d0807d179e a rope slides frictionlessly down the edge of a table Applications: - Hollow Cylinder - a rope slides frictionlessly down the edge of a table Scripting language DELACE --- diff --git a/AESL/Template.AESL b/AESL/Template.AESL deleted file mode 100644 index 48143fb..0000000 --- a/AESL/Template.AESL +++ /dev/null @@ -1,26 +0,0 @@ -IDENTIFICATION DIVISION -PROGRAM-ID ... -VERSION ... -COMMENT ... - -ENVIRONMENT DIVISION -ENGINE Anabrid-THAT -TIMEBASE 1ms -REQUIRES ... - -DATA DIVISION -INPUT ... -OUTPUT OUTPUT.X ... -OUTPUT OUTPUT.Y ... -OUTPUT OUTPUT.Z ... -OUTPUT OUTPUT.U ... -COEFFICIENT.n ... - -PROGRAM DIVISION -# INTEGRATOR is inverting! -# SUMMER is inverting! -... - -OPERATION DIVISION -MODE REPEAT -OP-TIME ... diff --git a/Analog Engine Example Applications.odt b/Analog Engine Example Applications.odt index 934e710..083e01d 100644 Binary files a/Analog Engine Example Applications.odt and b/Analog Engine Example Applications.odt differ diff --git a/Analog Engine Scripting Language.odt b/Analog Engine Scripting Language.odt index efa1df0..f2ecf86 100644 Binary files a/Analog Engine Scripting Language.odt and b/Analog Engine Scripting Language.odt differ diff --git a/DEscription Language for Analog Circuit Engines.odt b/DEscription Language for Analog Circuit Engines.odt new file mode 100644 index 0000000..9f700a9 Binary files /dev/null and b/DEscription Language for Analog Circuit Engines.odt differ diff --git a/Description language for ANalog Circuit Engines.odt b/Description language for ANalog Circuit Engines.odt deleted file mode 100644 index de7a57e..0000000 Binary files a/Description language for ANalog Circuit Engines.odt and /dev/null differ diff --git a/AESL/Anabrid-THAT.ENGINE b/scripts/Anabrid-THAT.ENGINE similarity index 100% rename from AESL/Anabrid-THAT.ENGINE rename to scripts/Anabrid-THAT.ENGINE diff --git a/AESL/Damped Harmonic Osciallator scaled.AESL b/scripts/Damped Harmonic Osciallator scaled.AESL similarity index 100% rename from AESL/Damped Harmonic Osciallator scaled.AESL rename to scripts/Damped Harmonic Osciallator scaled.AESL diff --git a/AESL/Damped Harmonic Oscillator.AESL b/scripts/Damped Harmonic Oscillator.AESL similarity index 100% rename from AESL/Damped Harmonic Oscillator.AESL rename to scripts/Damped Harmonic Oscillator.AESL diff --git a/AESL/Radioactive Decay.AESL b/scripts/Radioactive Decay.AESL similarity index 100% rename from AESL/Radioactive Decay.AESL rename to scripts/Radioactive Decay.AESL diff --git a/AESL/TP1 03.08 Charge in em field.AESL b/scripts/TP1 03.08 Charge in em field.AESL similarity index 100% rename from AESL/TP1 03.08 Charge in em field.AESL rename to scripts/TP1 03.08 Charge in em field.AESL diff --git a/AESL/TP1 04.10 MassOnSphere.AESL b/scripts/TP1 04.10 MassOnSphere.AESL similarity index 100% rename from AESL/TP1 04.10 MassOnSphere.AESL rename to scripts/TP1 04.10 MassOnSphere.AESL diff --git a/AESL/TP1 04.11 TwoRaindrops.AESL b/scripts/TP1 04.11 TwoRaindrops.AESL similarity index 100% rename from AESL/TP1 04.11 TwoRaindrops.AESL rename to scripts/TP1 04.11 TwoRaindrops.AESL diff --git a/AESL/TP1 04.12 Harmonic Oscillator.AESL b/scripts/TP1 04.12 Harmonic Oscillator.AESL similarity index 100% rename from AESL/TP1 04.12 Harmonic Oscillator.AESL rename to scripts/TP1 04.12 Harmonic Oscillator.AESL diff --git a/AESL/TP1 05.15 Comet.AESL b/scripts/TP1 05.15 Comet.AESL similarity index 100% rename from AESL/TP1 05.15 Comet.AESL rename to scripts/TP1 05.15 Comet.AESL diff --git a/AESL/TP1 06.18 Mass in Tube.AESL b/scripts/TP1 06.18 Mass in Tube.AESL similarity index 100% rename from AESL/TP1 06.18 Mass in Tube.AESL rename to scripts/TP1 06.18 Mass in Tube.AESL diff --git a/AESL/TP1 07.19 Falling Mass.AESL b/scripts/TP1 07.19 Falling Mass.AESL similarity index 100% rename from AESL/TP1 07.19 Falling Mass.AESL rename to scripts/TP1 07.19 Falling Mass.AESL diff --git a/AESL/TP1 07.19 Falling Mass.DANCE b/scripts/TP1 07.19 Falling Mass.DELACE similarity index 100% rename from AESL/TP1 07.19 Falling Mass.DANCE rename to scripts/TP1 07.19 Falling Mass.DELACE diff --git a/scripts/TP1 08.22 Hollow Cylinder.AESL b/scripts/TP1 08.22 Hollow Cylinder.AESL new file mode 100644 index 0000000..2b14afc --- /dev/null +++ b/scripts/TP1 08.22 Hollow Cylinder.AESL @@ -0,0 +1,33 @@ +IDENTIFICATION DIVISION +PROGRAM-ID HollowCylinder +VERSION 20240312 +COMMENT A homogeneous hollow cylinder (mass m, ration inner to outer radius epsilon) is connected to a massless spring (constant lambda). +COMMENT The system is deflected from its rest position by the distance a. +COMMENT The cylinder rolls without sliding. +COMMENT x'' = - 2*lambda * 1/m * 1/(3+epsilon²) * x + +ENVIRONMENT DIVISION +ENGINE Anabrid-THAT +TIMEBASE 1ms +REQUIRES COEFFICIENT 4, INTEGRATOR 2, INVERTER 1 + +DATA DIVISION +OUTPUT OUTPUT.X x +COEFFICIENT.1 2*lambda +COEFFICIENT.2 1/m +COEFFICIENT.3 1/(3+epsilon²) # = 1/3 (0,333) for epsilon=0 and 1/4 (0,25) for epsiolon=1 or anything in between +COEFFICIENT.4 a + +PROGRAM DIVISION ++1 -> COEFFICIENT.A -> a + +x'' -> INTEGRATOR -> -x' +-x', IC:a -> INTEGRATOR -> x +x -> COEFFICIENT.2*lambda -> 2*lambda*x +2*lambda*x -> COEFFICIENT.1/m -> 2*lambda*1/m*x +2*lambda*1/m*x -> COEFFICIENT.1/(3+epsilon²) -> 2*lambda*1/m*1/(3+epsilon²)*x +2*lambda*1/m*1/(3+epsilon²)*x -> INVERTER -> -2*lambda*1/m*1/(3+epsilon²)*x = x'' + +OPERATION DIVISION +MODE REPEAT +OP-TIME 52ms diff --git a/scripts/TP1 08.23a stick falling.DELACE b/scripts/TP1 08.23a stick falling.DELACE new file mode 100644 index 0000000..9256c37 --- /dev/null +++ b/scripts/TP1 08.23a stick falling.DELACE @@ -0,0 +1,16 @@ +coefficient(1): a + +integrate (y'') -> -y': + IC: +1 +integrate (-y') -> y +invert (y) -> -y +sin = y + +integrate (omega') -> -omega +a * sin -> a_times_sin +omega' = a_times_sin + +invert (-omega) -> omega +multiply (omega, omega) -> omega² +multiply (omega², -y) -> -omega²y +y'' = -omega²y diff --git a/scripts/TP1 09.26 rope over table edge.DELACE b/scripts/TP1 09.26 rope over table edge.DELACE new file mode 100644 index 0000000..efff3ea --- /dev/null +++ b/scripts/TP1 09.26 rope over table edge.DELACE @@ -0,0 +1,16 @@ +# a rope slides frictionlessly down the edge of a table +# x'' = g/l * x + +coefficient(1): 1 -> x0' # initial speed +coefficient(2): -1 -> -x0 # initial length of rope already over the edge of the table +coefficient(3): g/l # gravity constant (g) devided by the length of the rope (l) + +iintegrate (x'') -> -x': + IC: x0' +iintegrate (-x') -> x: + IC: -x0 +x * g/l -> g/l*x = x'' + +# note: positive x-axis in the direction of the falling rope (so down) +# for visualization, -x is displayed +invert (x) -> -x # goes to output x