summaryrefslogtreecommitdiff
path: root/FSF-2020/calculus-of-several-variables
diff options
context:
space:
mode:
authorvishal786-commits2020-07-09 08:52:12 +0530
committerGitHub2020-07-09 08:52:12 +0530
commit147be193e665211eeef5170119084a93d122feec (patch)
tree2e21c2bfc5cecf609fc3801f53f7fff7609c391e /FSF-2020/calculus-of-several-variables
parent5fe5c1c126aff3118a2b975235dae78d55f28a09 (diff)
downloadFSF-mathematics-python-code-archive-147be193e665211eeef5170119084a93d122feec.tar.gz
FSF-mathematics-python-code-archive-147be193e665211eeef5170119084a93d122feec.tar.bz2
FSF-mathematics-python-code-archive-147be193e665211eeef5170119084a93d122feec.zip
Create file1_flux@_various_points.py
Diffstat (limited to 'FSF-2020/calculus-of-several-variables')
-rw-r--r--FSF-2020/calculus-of-several-variables/triple-and-surface-integrals/divergence-gauss-theorem/file1_flux@_various_points.py43
1 files changed, 43 insertions, 0 deletions
diff --git a/FSF-2020/calculus-of-several-variables/triple-and-surface-integrals/divergence-gauss-theorem/file1_flux@_various_points.py b/FSF-2020/calculus-of-several-variables/triple-and-surface-integrals/divergence-gauss-theorem/file1_flux@_various_points.py
new file mode 100644
index 0000000..85567bb
--- /dev/null
+++ b/FSF-2020/calculus-of-several-variables/triple-and-surface-integrals/divergence-gauss-theorem/file1_flux@_various_points.py
@@ -0,0 +1,43 @@
+from manimlib.imports import *
+def pendulum_vector_field_func(point):
+ #theta, omega = point[:2]
+ return np.array([
+ 5*point[2]+point[1],
+ 3*point[0]+3*point[1],
+ 0,
+ ])
+class SimpleField(Scene):
+ CONFIG = {
+ #"func": cylinder_flow_vector_field,
+ "flow_time": 5,
+ }
+ def initialize_vector_field(self):
+ self.vector_field = VectorField(
+ pendulum_vector_field_func,
+ )
+ self.vector_field.sort(get_norm)
+ def construct(self):
+ # plane = NumberPlane(color=RED)
+ # plane.add(plane.get_axis_labels())
+ # self.add(plane)
+ # self.initialize_vector_field()
+
+ c1=Circle(radius=3,color=RED)
+ field = self.vector_field
+ self.play(c1)
+ self.play(ShowCreation(field), run_time=10)
+ self.wait(3)
+ lines = StreamLines(
+ pendulum_vector_field_func,
+ virtual_time=3,
+ min_magnitude=0,
+ max_magnitude=2,
+ )
+ self.add(AnimatedStreamLines(
+ lines,
+ line_anim_class=ShowPassingFlash
+ ))
+ self.wait(2)
+ phase_point = VectorizedPoint(1*UP+1*RIGHT)
+ self.add(move_along_vector_field(phase_point, pendulum_vector_field_func))
+ self.wait(2)