Commit ·
4f562f5
1
Parent(s): 52fdffc
Create README.md
Browse files
README.md
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Description:
|
| 2 |
+
## - 2D heat equation (diffusion) simulated on a 64x64 grid using an explicit finite-difference solver.
|
| 3 |
+
## - Time integration: forward Euler with stable timestep dt = 0.25 * dx^2 / alpha, where dx = 1/64.
|
| 4 |
+
## - Boundary conditions included (separate folders):
|
| 5 |
+
- periodic
|
| 6 |
+
- neumann (zero-flux)
|
| 7 |
+
- dirichlet (fixed temperature = 0.0)
|
| 8 |
+
## - Initial condition modes:
|
| 9 |
+
blobs, step, ring, collide, moving
|
| 10 |
+
- 'moving' mode includes a moving heat source in the simulation for non-stationary scenarios.
|
| 11 |
+
## - Trajectory length (timesteps): 60
|
| 12 |
+
## - Samples per BC: 4000
|
| 13 |
+
## - Alpha (thermal diffusivity) sampled uniformly in [0.005, 0.02].
|
| 14 |
+
## - Data formats:
|
| 15 |
+
- Numeric (high precision): npz files saved under /npy/<bc>/<variant>/sample_*.npz
|
| 16 |
+
Each npz contains: trajectory (float32 array shape (T, H, W)), alpha (float32), metadata (json string)
|
| 17 |
+
- Visuals: png heatmaps for selected timesteps saved under /jpg/<bc>/<variant>/
|
| 18 |
+
- Metadata: /metadata/metadata.json and summary_stats.json (per-bc stats)
|
| 19 |
+
## - Noisy variants: optional measurement-noise version saved in 'noisy' subfolders (gaussian noise, std=0.005)
|
| 20 |
+
|
| 21 |
+
# Quality checks:
|
| 22 |
+
## - For each trajectory, we compute total energy across the grid at each timestep:
|
| 23 |
+
energy[t] = sum_{i,j} T(t,i,j)
|
| 24 |
+
## - We record initial and final energy and flag any samples where relative drift exceeds 0.001.
|
| 25 |
+
|
| 26 |
+
# Usage:
|
| 27 |
+
## - For training physics-informed applications: load the .npz files and feed the float32 arrays directly as targets.
|
| 28 |
+
## - For visualization, preview PNGs or animate the trajectory using matplotlib or imageio.
|