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/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.
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