Skip to content

Echo-aloha/asphalt-codex-skills-5 / skills/pfc-vedo-postprocess

pfc-vedo-postprocess

Verified

Post-process exported PFC 5.0 asphalt DEM data with vedo for particle, force-chain, crack, displacement, velocity, slice, figure, and animation workflows.

FileKindSize
LICENSEother1.1 KB
NOTICE.mdmarkdown632 B
SKILL.mdskill md5.8 KB
agents/openai.yamlconfig312 B
icon.svgother630 B
references/animation.mdmarkdown1.1 KB
references/colormaps.mdmarkdown557 B
references/export-schema.mdmarkdown1.4 KB
references/vedo-recipes.mdmarkdown1.2 KB
scripts/view_balls.pyscript1.8 KB
templates/render_config.yamlconfig396 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
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: 198kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 194kUpdated Claude CodeCodexVerifiedInstall
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: 194kUpdated Claude CodeCodexVerifiedInstall