forked from 3b1b/manim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed ode folder to be named diffyq, since many of these are pde vi…
…deos
- Loading branch information
Showing
26 changed files
with
20,516 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,107 @@ | ||
from active_projects.ode.part1.pendulum import * | ||
from active_projects.ode.part1.staging import * | ||
from active_projects.ode.part1.pi_scenes import * | ||
from active_projects.ode.part1.phase_space import * | ||
from active_projects.ode.part1.wordy_scenes import * | ||
|
||
OUTPUT_DIRECTORY = "ode/part1" | ||
SCENES_IN_ORDER = [ | ||
WhenChangeIsEasier, | ||
VectorFieldTest, | ||
IntroducePendulum, | ||
MultiplePendulumsOverlayed, | ||
PeriodFormula, | ||
FormulasAreLies, | ||
MediumAnglePendulum, | ||
MediumHighAnglePendulum, | ||
HighAnglePendulum, | ||
LowAnglePendulum, | ||
SomeOfYouWatching, | ||
SmallAngleApproximationTex, | ||
VeryLowAnglePendulum, | ||
FormulasAreLies, | ||
TourOfDifferentialEquations, | ||
WherePendulumLeads, | ||
LongDoublePendulum, | ||
# FollowThisThread, | ||
StrogatzQuote, | ||
ShowHorizontalDashedLine, | ||
RabbitFoxPopulations, | ||
RabbitFoxEquation, | ||
# Something... | ||
ShowSimpleTrajectory, | ||
SimpleProjectileEquation, | ||
SimpleProjectileEquationVGraphFreedom, | ||
ShowGravityAcceleration, | ||
UniversalGravityLawSymbols, | ||
ExampleTypicalODE, | ||
AnalyzePendulumForce, | ||
ShowSineValues, | ||
BuildUpEquation, | ||
AirResistanceBrace, | ||
ShowDerivativeVideo, | ||
SubtleAirCurrents, | ||
SimpleDampenedPendulum, | ||
DefineODE, | ||
SecondOrderEquationExample, | ||
ODEvsPDEinFrames, | ||
ProveTeacherWrong, | ||
SetAsideSeekingSolution, | ||
# | ||
WriteInRadians, | ||
XEqLThetaToCorner, | ||
ComingUp, | ||
InputLabel, | ||
SoWhatIsThetaThen, | ||
ReallyHardToSolve, | ||
ReasonForSolution, | ||
PhysicistPhaseSpace, | ||
GleickQuote, | ||
SpectrumOfStartingStates, | ||
WritePhaseFlow, | ||
AskAboutStability, | ||
LoveExample, | ||
PassageOfTime, | ||
LovePhaseSpace, | ||
ComparePhysicsToLove, | ||
FramesComparingPhysicsToLove, | ||
SetupToTakingManyTinySteps, | ||
ShowClutterPrevention, | ||
# VisualizeHeightSlopeCurvature, | ||
VisualizeStates, | ||
ReferencePiCollisionStateSpaces, | ||
IntroduceVectorField, | ||
XComponentArrows, | ||
BreakingSecondOrderIntoTwoFirstOrder, | ||
ShowPendulumPhaseFlow, | ||
ShowHighVelocityCase, | ||
TweakMuInFormula, | ||
TweakMuInVectorField, | ||
FromODEToVectorField, | ||
LorenzVectorField, | ||
ThreeBodiesInSpace, | ||
AltThreeBodiesInSpace, | ||
TwoBodiesInSpace, | ||
TwoBodiesWithZPart, | ||
ThreeBodyTitle, | ||
ThreeBodySymbols, | ||
# | ||
HighAmplitudePendulum, | ||
WritePhaseSpace, | ||
# | ||
AskAboutActuallySolving, | ||
WriteODESolvingCode, | ||
TakeManyTinySteps, | ||
ManyStepsFromDifferentStartingPoints, | ||
InaccurateComputation, | ||
HungerForExactness, | ||
ShowRect, | ||
ShowSquare, | ||
JumpToThisPoint, | ||
ThreeBodyEquation, | ||
ItGetsWorse, | ||
ChaosTitle, | ||
RevisitQuote, | ||
EndScreen, | ||
Thumbnail, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
from active_projects.ode.part2.staging import * | ||
from active_projects.ode.part2.fourier_series import * | ||
from active_projects.ode.part2.heat_equation import * | ||
from active_projects.ode.part2.pi_scenes import * | ||
from active_projects.ode.part2.wordy_scenes import * | ||
|
||
OUTPUT_DIRECTORY = "ode/part2" | ||
SCENES_IN_ORDER = [ | ||
PartTwoOfTour, | ||
HeatEquationIntroTitle, | ||
BrownianMotion, | ||
BlackScholes, | ||
ContrastChapters1And2, | ||
FourierSeriesIntro, | ||
FourierSeriesIntroBackground20, | ||
ExplainCircleAnimations, | ||
# FourierSeriesIntroBackground4, | ||
# FourierSeriesIntroBackground8, | ||
# FourierSeriesIntroBackground12, | ||
TwoDBodyWithManyTemperatures, | ||
TwoDBodyWithManyTemperaturesGraph, | ||
TwoDBodyWithManyTemperaturesContour, | ||
BringTwoRodsTogether, | ||
ShowEvolvingTempGraphWithArrows, | ||
# TodaysTargetWrapper, | ||
WriteHeatEquation, | ||
ReactionsToInitialHeatEquation, | ||
TalkThrough1DHeatGraph, | ||
ShowCubeFormation, | ||
CompareInputsOfGeneralCaseTo1D, | ||
ContrastXChangesToTChanges, | ||
ShowPartialDerivativeSymbols, | ||
WriteHeatEquation, | ||
ShowCurvatureToRateOfChangeIntuition, | ||
ContrastPDEToODE, | ||
TransitionToTempVsTime, | ||
Show1DAnd3DEquations, | ||
# | ||
AskAboutWhereEquationComesFrom, | ||
DiscreteSetup, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
from active_projects.ode.part3.staging import * | ||
from active_projects.ode.part3.temperature_graphs import * | ||
from active_projects.ode.part3.pi_creature_scenes import * | ||
from active_projects.ode.part3.wordy_scenes import * | ||
from active_projects.ode.part3.discrete_case import * | ||
|
||
|
||
OUTPUT_DIRECTORY = "ode/part3" | ||
SCENES_IN_ORDER = [ | ||
LastChapterWrapper, | ||
ThreeConstraints, | ||
OceanOfPossibilities, | ||
ThreeMainObservations, | ||
SimpleCosExpGraph, | ||
AddMultipleSolutions, | ||
FourierSeriesIllustraiton, | ||
BreakDownAFunction, | ||
SineCurveIsUnrealistic, | ||
AnalyzeSineCurve, | ||
EquationAboveSineAnalysis, | ||
ExponentialDecay, | ||
InvestmentGrowth, | ||
GrowingPileOfMoney, | ||
CarbonDecayCurve, | ||
CarbonDecayingInMammoth, | ||
SineWaveScaledByExp, | ||
ShowSinExpDerivatives, | ||
IfOnly, | ||
BoundaryConditionInterlude, | ||
BoundaryConditionReference, | ||
GiantCross, | ||
SimulateRealSineCurve, | ||
DerivativesOfLinearFunction, | ||
StraightLine3DGraph, | ||
SimulateLinearGraph, | ||
EmphasizeBoundaryPoints, | ||
ShowNewRuleAtDiscreteBoundary, | ||
DiscreteEvolutionPoint25, | ||
DiscreteEvolutionPoint1, | ||
FlatEdgesForDiscreteEvolution, | ||
FlatEdgesForDiscreteEvolutionTinySteps, | ||
FlatEdgesContinuousEvolution, | ||
FlatAtBoundaryWords, | ||
SlopeToHeatFlow, | ||
CloserLookAtStraightLine, | ||
WriteOutBoundaryCondition, | ||
SoWeGotNowhere, | ||
ManipulateSinExpSurface, | ||
HeatEquationFrame, | ||
ShowFreq1CosExpDecay, | ||
ShowFreq2CosExpDecay, | ||
ShowFreq4CosExpDecay, | ||
CompareFreqDecays1to2, | ||
CompareFreqDecays1to4, | ||
CompareFreqDecays2to4, | ||
ShowHarmonics, | ||
ShowHarmonicSurfaces, | ||
|
||
# SimpleCosExpGraph, | ||
# AddMultipleSolutions, | ||
# IveHeardOfThis, | ||
# FourierSeriesOfLineIllustration, | ||
# InFouriersShoes, | ||
] | ||
|
||
PART_4_SCENES = [ | ||
FourierSeriesIllustraiton, | ||
FourierNameIntro, | ||
CircleAnimationOfF, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
from active_projects.ode.part4.staging import * | ||
from active_projects.ode.part4.fourier_series_scenes import * | ||
from active_projects.ode.part4.pi_creature_scenes import * | ||
|
||
OUTPUT_DIRECTORY = "ode/part4" | ||
SCENES_IN_ORDER = [ | ||
ComplexFourierSeriesExample, | ||
ComplexFourierSeriesExampleEnd, | ||
FourierSeriesExampleWithRectForZoom, | ||
ZoomedInFourierSeriesExample, | ||
RelationToOtherVideos, | ||
WhyWouldYouCare, | ||
# Oldies | ||
|
||
# FourierSeriesIllustraiton, | ||
# FourierNameIntro, | ||
# CircleAnimationOfF, | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/usr/bin/env python | ||
from manimlib.imports import * | ||
from active_projects.ode.part2.fourier_series import FourierOfName | ||
|
||
name_color_pairs = [ | ||
|
||
] | ||
|
||
circle_counts = [ | ||
# 10, | ||
# 25, | ||
100, | ||
] | ||
|
||
if __name__ == "__main__": | ||
for name, color in name_color_pairs: | ||
for n_circles in circle_counts: | ||
try: | ||
first_name = name.split(" ")[0] | ||
scene = FourierOfName( | ||
name_text=name, | ||
name_color=color, | ||
n_circles=n_circles, | ||
file_writer_config={ | ||
"write_to_movie": True, | ||
"output_directory": os.path.join( | ||
"patron_fourier_names", | ||
first_name, | ||
), | ||
"file_name": "{}_Fouierified_{}_Separate_paths".format( | ||
first_name, | ||
n_circles | ||
), | ||
}, | ||
camera_config={ | ||
"frame_rate": 24, | ||
}, | ||
) | ||
except: | ||
pass |
Oops, something went wrong.