Echo-aloha/asphalt-codex-skills-5 / skills/pfc-vedo-postprocess
pfc-vedo-postprocess
VerifiedPost-process exported PFC 5.0 asphalt DEM data with vedo for particle, force-chain, crack, displacement, velocity, slice, figure, and animation workflows.
| File | Kind | Size |
|---|---|---|
| LICENSE | other | 1.1 KB |
| NOTICE.md | markdown | 632 B |
| SKILL.md | skill md | 5.8 KB |
| agents/openai.yaml | config | 312 B |
| icon.svg | other | 630 B |
| references/animation.md | markdown | 1.1 KB |
| references/colormaps.md | markdown | 557 B |
| references/export-schema.md | markdown | 1.4 KB |
| references/vedo-recipes.md | markdown | 1.2 KB |
| scripts/view_balls.py | script | 1.8 KB |
| templates/render_config.yaml | config | 396 B |
references/export-schema.md
View on GitHub# PFC Export Schema for vedo
Preferred snapshot format: one `.npz` per time step, for example `pfc_step000.npz`.
## Particle arrays
- `pos`: `(N, 3)` float, particle center coordinates. For PFC2D, use `z=0`.
- `rad`: `(N,)` float, particle radius.
- `disp`: `(N, 3)` float, displacement vector.
- `vel`: `(N, 3)` float, velocity vector.
- `grp`: `(N,)` fixed-width Unicode or integer material/group label; do not
store Python objects.
## Contact arrays
- `c_p1`: `(M, 3)` float, endpoint 1 or ball-center 1.
- `c_p2`: `(M, 3)` float, endpoint 2 or ball-center 2.
- `c_fn`: `(M,)` float, signed normal force. Confirm sign convention before labeling compression/tension.
- `c_bonded`: `(M,)` integer/bool, whether the contact is bonded.
## Crack arrays
- `cr_pos`: `(K, 3)` float, crack center.
- `cr_nrm`: `(K, 3)` float, crack-plane normal. Normalize before rendering.
- `cr_size`: `(K,)` float, representative crack diameter or radius depending on export convention.
- `cr_type`: `(K,)` integer or fixed-width Unicode, recommended
`0=tensile`, `1=shear`.
## Defensive loading
Scripts should tolerate missing optional arrays and empty contacts/cracks:
```python
import numpy as np
d = np.load(path, allow_pickle=False)
pos = d['pos']
if pos.shape[1] == 2:
pos = np.c_[pos, np.zeros(len(pos))]
rad = d.get('rad', np.full(len(pos), 1.0))
```
Reject object-dtype arrays. They require pickle deserialization and are outside
the public snapshot contract.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |