fbpx
วิกิพีเดีย

Heat

ดูภาพที่มีความละเอียดสูงกว่า(1,200 × 954 พิกเซล, ขนาดไฟล์: 2.66 เมกะไบต์, ชนิดไมม์: image/gif, วนซ้ำ, 30 เฟรม, 3.0 วินาที)

รูปภาพหรือไฟล์เสียงนี้ ต้นฉบับอยู่ที่ คอมมอนส์ รายละเอียดด้านล่าง เป็นข้อความที่แสดงผลจาก ไฟล์ต้นฉบับในคอมมอนส์
คอมมอนส์เป็นเว็บไซต์ในโครงการสำหรับเก็บรวบรวมสื่อเสรี ที่ คุณสามารถช่วยได้

ความย่อ

 
ไฟล์GIF ภาพกราฟิกส์เวกเตอร์นี้ สร้างขึ้นโดยใช้ Python
คำอธิบาย
English: Illustration of the Heat equation.
วันที่
แหล่งที่มา งานของตัว
ผู้สร้างสรรค์ Nicoguaro. Based on File:Heat eqn.gif by en:User:Oleg Alexandrov
เวอร์ชันอื่น
Source code
InfoField

Python code

""" Illustration of the heat equation Solve the heat equation using finite differences and Forward Euler. Based on: https://commons.wikimedia.org/wiki/File:Heat_eqn.gif """ from __future__ import division, print_function import numpy as np from mayavi import mlab import subprocess path_to_convert = "C:\Program Files\ImageMagick-6.9.3\convert.exe" def step_function(N, scale, X, Y, shape="crescent"):  """Function that is 1 on a set and 0 outside of it""" shapes = ["crescent", "cylinder", "hexagon", "superquadric", "smiley"] if shape not in shapes: shape = "crescent" if shape == "cylinder": Z = np.ones_like(X) Z[X**2 + Y**2 < 0.5] = 0 Z[X**2 + Y**2 > 2] = 0 if shape == "superquadric": Z = np.ones_like(X) Z[np.abs(X)**0.5 + np.abs(Y)**0.5 > 1.5] = 0 if shape == "hexagon": Z = np.ones_like(X) hexa = 2*np.abs(X) + np.abs(X - Y*np.sqrt(3)) +\ np.abs(X + Y*np.sqrt(3)) Z[hexa > 6] = 0 if shape == "crescent": c = 2 d = -1 e = 1 f = 0.5 k = 1.2 shift = 10 Z = (c**2 - (X/e - d)**2 - (Y/f)**2)**2 + k*(c + d - X/e)**3 - shift Z = 1 - np.maximum(np.sign(Z), 0) if shape == "smiley": Z = np.ones_like(X) fac = 1.2 x_eye = 0.5 y_eye = 0.4 bicorn = fac**2*(Y + 0.3)**2*(1 - fac**2*X**2) -\ (fac**2*X**2 - 2*fac*(Y + 0.3) - 1)**2 left_eye = (X + x_eye)**2/0.1 + (Y - y_eye)**2/0.4 - 1 right_eye = (X - x_eye)**2/0.1 + (Y - y_eye)**2/0.4 - 1 Z[X**2 + Y**2 > 2] = 0 Z[bicorn > 0] = 0 Z[left_eye < 0] = 0 Z[right_eye < 0] = 0 Z = scale * Z return Z def data_gen(num): # Solve the heat equation with zero boundary conditions for cont in range(ntime_anim): Z[1:N-1, 1:N-1] = Z[1:N-1, 1:N-1] + dt*(Z[2:N, 1:N-1] + Z[0:N-2, 1:N-1] + Z[1:N-1, 0:N-2] + Z[1:N-1, 2:N] - 4*Z[1:N-1, 1:N-1])/dx**2 surf = mlab.surf(X, Y, Z, colormap='autumn', warp_scale=1) # Change the visualization parameters. surf.actor.property.interpolation = 'phong' surf.actor.property.specular = 0.3 surf.actor.property.specular_power = 20 surf.module_manager.scalar_lut_manager.reverse_lut = True surf.module_manager.scalar_lut_manager.data_range = np.array([ 0., scale]) return surf N = 500 # Grid points L = 2.5 # Box size X, Y = np.mgrid[-L:L:N*1j, -L:L:N*1j] scale = 2 Z = step_function(N, scale, X, Y, shape="crescent") CFL = 0.125 dx = X[1, 0] - X[0, 0] dy = dx dt = CFL*dx**2 end_time = 0.05 time = np.arange(0, end_time, dt) nframes = 50 ntime = time.shape[0] ntime_anim = int(ntime/nframes) #%% Plot frames fname = "heat" bgcolor = (1, 1, 1) fig = mlab.figure(size=(1200, 1000), bgcolor=bgcolor) fig.scene.camera.azimuth(180) mlab.get_engine() engine = mlab.get_engine() scene = engine.scenes[0] for cont in range(nframes): mlab.clf() surf = data_gen(cont) scene.scene.camera.position = [-8, -8, 7] scene.scene.camera.clipping_range = [7, 22] scene.scene.camera.focal_point = [0, 0, 1] print(cont) mlab.savefig("{}_{n:02d}.png".format(fname, n=cont)) #%% Generate video args = [path_to_convert, "-delay", "10", "-loop" , "0", fname + "_*.png", fname + ".gif"] subprocess.call(args, shell=True) subprocess.call(["del", "/Q", fname + "*.png"], shell=True) print("Done!") 

การอนุญาตใช้สิทธิ

ข้าพเจ้า ในฐานะผู้ถือลิขสิทธิ์ของภาพหรือสื่อนี้ อนุญาตให้ใช้ภาพหรือสื่อนี้ภายใต้เงื่อนไขต่อไปนี้

ไฟล์นี้อยู่ภายใต้สัญญาอนุญาตครีเอทีฟคอมมอนส์ รุ่น แสดงที่มา 4.0 นานาชาติ
คุณสามารถ:
  • ที่จะแบ่งปัน – ที่จะทำสำเนา แจกจ่าย และส่งงานดังกล่าวต่อไป
  • ที่จะเรียบเรียงใหม่ – ที่จะดัดแปลงงานดังกล่าว
ภายใต้เงื่อนไขต่อไปนี้:
  • แสดงที่มา – คุณต้องให้เกียรติเจ้าของงานอย่างเหมาะสม โดยเพิ่มลิงก์ไปยังสัญญาอนุญาต และระบุหากมีการเปลี่ยนแปลง คุณอาจทำเช่นนี้ได้ในรูปแบบใดก็ได้ตามควร แต่ต้องไม่ใช่ในลักษณะที่แนะว่าผู้ให้อนุญาตสนับสนุนคุณหรือการใช้งานของคุณ

คำบรรยายโดยย่อ

เพิ่มคำบรรยายทรรทัดเดียวเพื่อขยายความว่าไฟล์นี้มีอะไร

ไอเทมที่แสดงอยู่ในไฟล์นี้

ประกอบด้วย

ผู้สร้าง

บางค่าที่ไม่มีไอเทมวิกิสนเทศ

ชื่อผู้สร้างสรรค์: Nicoguaro
ชื่อผู้ใช้วิกิมีเดีย: Nicoguaro
ยูอาร์แอล: http://commons.wikimedia.org/wiki/User:Nicoguaro

สถานะลิขสิทธิ์

มีลิขสิทธิ์

สัญญาอนุญาต

Creative Commons Attribution 4.0 International อังกฤษ

ที่มาของไฟล์

การสร้างดั้งเดิมโดยผู้อัปโหลด

วันที่สร้าง/วันก่อตั้ง

16 พฤษภาคม 2017

MIME type อังกฤษ

image/gif

ประวัติไฟล์

คลิกวันที่/เวลาเพื่อดูไฟล์ที่ปรากฏในขณะนั้น

วันที่/เวลารูปย่อขนาดผู้ใช้ความเห็น
ปัจจุบัน10:12, 20 พฤษภาคม 25601,200 × 954 (2.66 เมกะไบต์)NicoguaroUser created page with UploadWizard

หน้าต่อไปนี้ โยงมาที่ภาพนี้:

การใช้ไฟล์ส่วนกลาง

วิกิอื่นต่อไปนี้ใช้ไฟล์นี้:

  • การใช้บน de.wikiversity.org
    • Reaktion-Diffusionsprozess
  • User:Nicoguaro/Gallery
  • ไฟล, heat, ไฟล, ประว, ไฟล, หน, าท, ภาพน, การใช, ไฟล, วนกลางขนาดของต, วอย, างน, กเซล, ความละเอ, ยดอ, กเซล, กเซล, กเซล, กเซล, ภาพท, ความละเอ, ยดส, งกว, 8206, กเซล, ขนาดไฟล, เมกะไบต, ชน, ดไมม, image, วนซ, เฟรม, นาท, ปภาพหร, อไฟล, เส, ยงน, นฉบ, บอย, คอมมอนส, รายละ. ifl prawtiifl hnathimiphaphni karichiflswnklangkhnadkhxngtwxyangni 754 599 phikesl khwamlaexiydxun 302 240 phikesl 604 480 phikesl 966 768 phikesl 1 200 954 phikesl duphaphthimikhwamlaexiydsungkwa 8206 1 200 954 phikesl khnadifl 2 66 emkaibt chnidimm image gif wnsa 30 efrm 3 0 winathi rupphaphhruxiflesiyngni tnchbbxyuthi khxmmxns raylaexiyddanlang epnkhxkhwamthiaesdngphlcak ifltnchbbinkhxmmxns khxmmxnsepnewbistinokhrngkarsahrbekbrwbrwmsuxesri thi khunsamarthchwyid khwamyx nbsp iflGIF phaphkrafiksewketxrni srangkhunodyich nbsp PythonkhaxthibayHeat gif English Illustration of the Heat equation wnthi 16 phvsphakhm ph s 2560 aehlngthima ngankhxngtw phusrangsrrkh Nicoguaro Based on File Heat eqn gif by en User Oleg Alexandrov ewxrchnxun Source codeInfoFieldPython code Illustration of the heat equation Solve the heat equation using finite differences and Forward Euler Based on https commons wikimedia org wiki File Heat eqn gif from future import division print function import numpy as np from mayavi import mlab import subprocess path to convert C Program Files ImageMagick 6 9 3 convert exe def step function N scale X Y shape crescent Function that is 1 on a set and 0 outside of it shapes crescent cylinder hexagon superquadric smiley if shape not in shapes shape crescent if shape cylinder Z np ones like X Z X 2 Y 2 lt 0 5 0 Z X 2 Y 2 gt 2 0 if shape superquadric Z np ones like X Z np abs X 0 5 np abs Y 0 5 gt 1 5 0 if shape hexagon Z np ones like X hexa 2 np abs X np abs X Y np sqrt 3 np abs X Y np sqrt 3 Z hexa gt 6 0 if shape crescent c 2 d 1 e 1 f 0 5 k 1 2 shift 10 Z c 2 X e d 2 Y f 2 2 k c d X e 3 shift Z 1 np maximum np sign Z 0 if shape smiley Z np ones like X fac 1 2 x eye 0 5 y eye 0 4 bicorn fac 2 Y 0 3 2 1 fac 2 X 2 fac 2 X 2 2 fac Y 0 3 1 2 left eye X x eye 2 0 1 Y y eye 2 0 4 1 right eye X x eye 2 0 1 Y y eye 2 0 4 1 Z X 2 Y 2 gt 2 0 Z bicorn gt 0 0 Z left eye lt 0 0 Z right eye lt 0 0 Z scale Z return Z def data gen num Solve the heat equation with zero boundary conditions for cont in range ntime anim Z 1 N 1 1 N 1 Z 1 N 1 1 N 1 dt Z 2 N 1 N 1 Z 0 N 2 1 N 1 Z 1 N 1 0 N 2 Z 1 N 1 2 N 4 Z 1 N 1 1 N 1 dx 2 surf mlab surf X Y Z colormap autumn warp scale 1 Change the visualization parameters surf actor property interpolation phong surf actor property specular 0 3 surf actor property specular power 20 surf module manager scalar lut manager reverse lut True surf module manager scalar lut manager data range np array 0 scale return surf N 500 Grid points L 2 5 Box size X Y np mgrid L L N 1 j L L N 1 j scale 2 Z step function N scale X Y shape crescent CFL 0 125 dx X 1 0 X 0 0 dy dx dt CFL dx 2 end time 0 05 time np arange 0 end time dt nframes 50 ntime time shape 0 ntime anim int ntime nframes Plot frames fname heat bgcolor 1 1 1 fig mlab figure size 1200 1000 bgcolor bgcolor fig scene camera azimuth 180 mlab get engine engine mlab get engine scene engine scenes 0 for cont in range nframes mlab clf surf data gen cont scene scene camera position 8 8 7 scene scene camera clipping range 7 22 scene scene camera focal point 0 0 1 print cont mlab savefig n 02d png format fname n cont Generate video args path to convert delay 10 loop 0 fname png fname gif subprocess call args shell True subprocess call del Q fname png shell True print Done karxnuyatichsiththi khapheca inthanaphuthuxlikhsiththikhxngphaphhruxsuxni xnuyatihichphaphhruxsuxniphayitenguxnikhtxipniiflnixyuphayitsyyaxnuyatkhriexthifkhxmmxns run aesdngthima 4 0 nanachatikhunsamarth thicaaebngpn thicathasaena aeckcay aelasngngandngklawtxip thicaeriyberiyngihm thicaddaeplngngandngklaw phayitenguxnikhtxipni aesdngthima khuntxngihekiyrtiecakhxngnganxyangehmaasm odyephimlingkipyngsyyaxnuyat aelarabuhakmikarepliynaeplng khunxacthaechnniidinrupaebbidkidtamkhwr aettxngimichinlksnathiaenawaphuihxnuyatsnbsnunkhunhruxkarichngankhxngkhunhttps creativecommons org licenses by 4 0 CC BY 4 0 Creative Commons Attribution 4 0 true truekhabrryayodyyxithyephimkhabrryaythrrthdediywephuxkhyaykhwamwaiflnimixairsepnAnimacion de la ecuacion del calor ixethmthiaesdngxyuiniflniprakxbdwyphusrangbangkhathiimmiixethmwikisnethschuxphusrangsrrkh Nicoguarochuxphuichwikimiediy Nicoguaroyuxaraexl http commons wikimedia org wiki User NicoguarosthanalikhsiththimilikhsiththisyyaxnuyatCreative Commons Attribution 4 0 International nbsp xngkvsthimakhxngiflkarsrangdngedimodyphuxpohldwnthisrang wnkxtng16 phvsphakhm 2017MIME type nbsp xngkvsimage gif prawtiifl khlikwnthi ewlaephuxduiflthipraktinkhnann wnthi ewlarupyxkhnadphuichkhwamehn pccubn10 12 20 phvsphakhm 25601 200 954 2 66 emkaibt NicoguaroUser created page with UploadWizard hnathimiphaphni hnatxipni oyngmathiphaphni smkarechingxnuphnthyxy karichiflswnklang wikixuntxipniichiflni karichbn ar wikipedia org معادلة تفاضلية جزئية karichbn ast wikipedia org Ecuacion en derivaes parciales karichbn bn wikipedia org আ শ ক ব যবকলন য সম করণ karichbn de wikiversity org Reaktion Diffusionsprozess karichbn en wikipedia org Partial differential equation User Nicoguaro Gallery karichbn hu wikipedia org Parcialis differencialegyenlet karichbn id wikipedia org Persamaan diferensial parsial karichbn ko wikipedia org 편미분방정식 karichbn mk wikipedia org Parciјalna diferenciјalna ravenka karichbn pt wikipedia org Equacao diferencial parcial karichbn sr wikipedia org Parciјalna diferenciјalna јednachina karichbn vi wikipedia org Phương trinh vi phan rieng phần karichbn www wikidata org Q271977 ekhathungcak https th wikipedia org wiki ifl Heat gif, wikipedia, วิกิ หนังสือ, หนังสือ, ห้องสมุด,

    บทความ

    , อ่าน, ดาวน์โหลด, ฟรี, ดาวน์โหลดฟรี, mp3, วิดีโอ, mp4, 3gp, jpg, jpeg, gif, png, รูปภาพ, เพลง, เพลง, หนัง, หนังสือ, เกม, เกม