File:Polytropic.gif
From formulasearchengine
Jump to navigation
Jump to search
Polytropic.gif (487 × 468 pixels, file size: 75 KB, MIME type: image/gif, looped, 8 frames, 8.0 s)
This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.
Summary
DescriptionPolytropic.gif |
English: GIF illustration of polytropic process. |
Date | |
Source |
Own work This plot was created with Matplotlib. |
Author | IkamusumeFan |
Matplotlib (Python)
Code for isobaric process from matplotlib.pyplot import * from numpy import linspace, arange from matplotlib.patches import Polygon x1 = linspace(0,9,100) y1 = 3100+0*x1 fig = figure(figsize=(5,5)) ax = fig.add_subplot(111) ax.grid(False) ax.plot(x1,y1) ax.text(3,2500,r"$PV^n=\mathrm{const}$",size=20) ax.text(3,2000,r"Isobaric: $n=0$",size=20) ax.set_ylim(0,3720) ax.set_yticks(linspace(0,3100,6)) ax.minorticks_on() ax.set_xlabel("V") ax.set_ylabel("P") fig.savefig("polytropic_1.png",bbox_inches="tight",\ pad_inches=.15)
Code for isothermal process from matplotlib.pyplot import * from numpy import linspace, arange from matplotlib.patches import Polygon x1 = linspace(0,9,100) y1 = 3100/(x1) fig = figure(figsize=(5,5)) ax = fig.add_subplot(111) ax.grid(False) ax.plot(x1,y1) ax.text(3,2500,r"$PV^n=\mathrm{const}$",size=20) ax.text(3,2000,r"Isothermal: $n=1$",size=20) ax.set_ylim(0,3720) ax.set_yticks(linspace(0,3100,6)) ax.minorticks_on() ax.set_xlabel("V") ax.set_ylabel("P") fig.savefig("polytropic_2.png",bbox_inches="tight",\ pad_inches=.15)
Code for adiabatic process from matplotlib.pyplot import * from numpy import linspace, arange from matplotlib.patches import Polygon x1 = linspace(0,9,100) y1 = 3100/(x1**1.4) fig = figure(figsize=(5,5)) ax = fig.add_subplot(111) ax.grid(False) ax.plot(x1,y1) ax.text(3,2500,r"$PV^n=\mathrm{const}$",size=20) ax.text(3,2000,r"Adiabatic: $n=K$",size=20) ax.set_ylim(0,3720) ax.set_yticks(linspace(0,3100,6)) ax.minorticks_on() ax.set_xlabel("V") ax.set_ylabel("P") fig.savefig("polytropic_3.png",bbox_inches="tight",\ pad_inches=.15)
Code for polytropic process from matplotlib.pyplot import * from numpy import linspace, arange from matplotlib.patches import Polygon x1 = linspace(0,9,100) y1 = 3100/(x1**4) fig = figure(figsize=(5,5)) ax = fig.add_subplot(111) ax.grid(False) ax.plot(x1,y1) ax.text(3,2500,r"$PV^n=\mathrm{const}$",size=20) ax.text(3,2000,r"Other: $n=4$",size=20) ax.set_ylim(0,3720) ax.set_yticks(linspace(0,3100,6)) ax.minorticks_on() ax.set_xlabel("V") ax.set_ylabel("P") fig.savefig("polytropic_4.png",bbox_inches="tight",\ pad_inches=.15)
Code for isochoric process from matplotlib.pyplot import * from numpy import linspace, arange from matplotlib.patches import Polygon x1 = [1,1] y1 = [0,3720] fig = figure(figsize=(5,5)) ax = fig.add_subplot(111) ax.grid(False) ax.plot(x1,y1) ax.text(3,2500,r"$PV^n=\mathrm{const}$",size=20) ax.text(3,2000,r"Isochoric: $n \rightarrow +\infty$",size=20) ax.set_xlim(0,9) ax.set_ylim(0,3720) ax.set_yticks(linspace(0,3100,6)) ax.minorticks_on() ax.set_xlabel("V") ax.set_ylabel("P") fig.savefig("polytropic_7.png",bbox_inches="tight",\ pad_inches=.15)
Licensing
I, the copyright holder of this work, hereby publish it under the following license:
This file is licensed under the Creative Commons Attribution-Share Alike 3.0 Unported license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
Items portrayed in this file
depicts
some value
2 September 2013
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 20:16, 3 September 2013 | 487 × 468 (75 KB) | wikimediacommons>IkamusumeFan | Update according to CausalJJ's advice. |
File usage
There are no pages that use this file.
Retrieved from "https://en.formulasearchengine.com/wiki/File:Polytropic.gif"