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/vedo-recipes.md
View on GitHub# vedo Recipes for PFC Post-processing
## Particles colored by displacement
```python
import numpy as np
from vedo import Spheres, Plotter
d = np.load('pfc_step000.npz', allow_pickle=False)
pos, rad, disp = d['pos'], d['rad'], d['disp']
if pos.shape[1] == 2:
pos = np.c_[pos, np.zeros(len(pos))]
dmag = np.linalg.norm(disp, axis=1)
balls = Spheres(pos, r=rad, res=12)
balls.cmap('viridis', dmag, on='points').add_scalarbar('|disp| (m)')
plt = Plotter(axes=1, bg='white', title='PFC particles colored by displacement')
plt.show(balls, viewup='z')
plt.screenshot('balls_disp.png')
plt.close()
```
## Force chains
For per-contact variable width, bin forces by quantile and render each bin separately.
```python
import numpy as np
from vedo import Lines, Plotter
d = np.load('pfc_step000.npz', allow_pickle=False)
p1, p2, fn = d['c_p1'], d['c_p2'], d['c_fn']
fmag = np.abs(fn)
if len(fmag) == 0:
raise SystemExit('No contacts in this snapshot')
q = np.quantile(fmag, [0, .5, .75, .9, 1])
actors = []
for i in range(len(q)-1):
mask = (fmag >= q[i]) & (fmag <= q[i+1])
if not mask.any():
continue
comp = fn[mask] >= 0 # adjust after verifying PFC/export sign convention
pp1, pp2 = p1[ma
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 |