54 lines
1.3 KiB
YAML
54 lines
1.3 KiB
YAML
# Test configuration for test_media.py
|
|
# Usage: python src/test_media.py (uses this file by default)
|
|
# python src/test_media.py --k-test 8.0 (CLI overrides)
|
|
# python src/test_media.py --config my_test.yaml (use a different config)
|
|
|
|
# Path to base config (model/network/algo params)
|
|
base_config: src/config.yaml
|
|
|
|
# ── Test scenario ──
|
|
test:
|
|
geometry: square # square | multi_circle | circle
|
|
checkpoint: checkpoints/model_final.pt
|
|
output: result/test_square.png
|
|
seed: 99
|
|
|
|
# ── Wave number ──
|
|
k_test: 18.0
|
|
|
|
# ── Scatterer parameters ──
|
|
# Used based on test.geometry. Comment/uncomment as needed.
|
|
scatterer:
|
|
eps_r: 3.0
|
|
|
|
# Shared position
|
|
cx: 0.5
|
|
cy: 0.5
|
|
|
|
# Circle
|
|
radius: 0.15
|
|
|
|
# Square
|
|
half_side: 0.15
|
|
angle: 0.0
|
|
|
|
# Multi-circle (overrides cx/cy/radius above when geometry=multi_circle)
|
|
circles:
|
|
- cx: 0.35
|
|
cy: 0.5
|
|
radius: 0.12
|
|
eps_r: 3.0
|
|
- cx: 0.65
|
|
cy: 0.5
|
|
radius: 0.12
|
|
eps_r: 3.0
|
|
|
|
# ── Reference computation ──
|
|
# n_refine_vertex: uniform refinement levels for per-vertex error
|
|
# n_refine_grid: uniform refinement levels for the 2D heatmap
|
|
# grid_resolution: N x N grid points for the heatmap
|
|
reference:
|
|
n_refine_vertex: 2
|
|
n_refine_grid: 3
|
|
grid_resolution: 200
|