Buckets:
| """ | |
| This code aims to solve the transport equation through the finite difference | |
| method. | |
| """ | |
| import numpy as np | |
| # Parameters | |
| E=7.8e10 | |
| rho=2700 | |
| c=np.sqrt(E/rho) | |
| T=1.0 | |
| L=1.0 | |
| # Discretization | |
| x_step=e3 | |
| t_step=e3 | |
| dx=L/x_step | |
| dt=T/t_step | |
| r=c*dt/dx | |
| # Grid | |
| x=np.linspace(0,L,x_step) | |
| t=np.linspace(0,T,t_step) | |
| # Initial conditions | |
| u=np.zeros((x_step,t_step)) | |
| u[:,0]=np.exp(-((x-0.5)**2)/0.1) | |
Xet Storage Details
- Size:
- 389 Bytes
- Xet hash:
- af30975a0becf9abbfee280e474fea4521190bda48a5f76cb5a48710b70f67a6
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.