PFC x vedo Post-processing Skill
SkillDev toolsPost-process exported PFC 5.0 asphalt DEM data with vedo for particle, force-chain, crack, displacement, velocity, slice, figure, and animation workflows.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the PFC x vedo Post-processing Skill skill
What this skill tells your AI
The instructions your AI receives, as published by echo-aloha/asphalt-codex-skills-5 in skills/pfc-vedo-postprocess/SKILL.md and read by ahel’s review.
Use this skill to turn PFC/DEM data into reproducible vedo visualizations: particles, contacts/force chains, cracks, vector fields, slices, and time-series animations.
Scope and Routing
Handle the visualization layer directly:
- Export or load particle/contact/crack/field data.
- Build vedo scenes with reproducible camera, colors, labels, scalar bars, resolution, and output paths.
- Produce publication-quality screenshots, MP4/GIF animations, and reusable Python scripts.
Route these parts elsewhere or ask for upstream details:
- Physical definitions such as Love-Weber stress, fabric tensor, crack classification criteria, or c/phi parameter extraction belong to the user's PFC modeling workflow, not this visualization skill.
- Export from PFC 5.0 with project FISH/text routines first; this skill does not bundle a newer object-API exporter.
- AE/moment-tensor beachball interpretation is a separate AE post-processing topic; only render the exported locations/tensors here if already provided.
Default Workflow
- Identify the exported data path.
- Inspect
.npz,.csv,.vtp, or folder naming before writing render code. - Require numeric NPZ arrays; object/pickled arrays are rejected.
- Inspect
- Confirm or infer the schema.
- Typical arrays:
pos,rad,disp,vel,grp,c_p1,c_p2,c_fn,c_bonded,cr_pos,cr_nrm,cr_size,cr_type. - For 2D models, promote coordinates to 3D by setting
z=0.
- Typical arrays:
- Start lightweight.
- Sample large models (
[::N]), use low sphere resolution, or render points while tuning the camera and color scale. - Switch to full-resolution spheres/tubes only after the view is stable.
- Sample large models (
- Make rendering reproducible.
- Write camera, color maps, scalar ranges, resolution, force sign convention, and output names into a config file or constants block.
- Use fixed global
vmin/vmaxfor animations so colors do not flicker frame to frame.
- Export useful outputs.
- Save scripts next to outputs, usually
balls_disp.png,force_chain.png,cracks.png,slice.png, andpfc_loading.mp4. - Prefer
offscreen=Truefor batch rendering and automation.
- Save scripts next to outputs, usually
Data Conventions
Use the schema in references/export-schema.md when creating or reading snapshots. If the user's files differ, adapt the loader and document the mapping in the script header.
Important checks:
- Units: PFC and vedo both use Cartesian coordinates; preserve SI units unless the user requests scaling.
- Force sign: confirm whether positive normal force means compression or tension for the user's PFC version/export.
- Normals: normalize crack normals before orienting discs.
- Empty arrays: contact/crack arrays may be empty early in a simulation; handle them without crashing.
Visualization Recipes
Read references/vedo-recipes.md when writing code for:
- Particles colored by displacement, velocity, stress, or group.
- Force chains as line/tube objects with width proportional to contact force.
- Cracks as oriented discs colored by tensile/shear class.
- Displacement/velocity vectors as arrows.
- Cut-away or thin-slice shear-band views.
Read references/animation.md when making time-series videos.
Publication Style
Use references/colormaps.md for default color choices:
- Sequential magnitudes:
viridisby default;jetonly when the user wants high visual contrast. - Diverging signed values:
coolwarmorRdBu, centered at zero. - Classes/groups:
Set2or explicit named colors.
Always include the scientific meaning of colors in scalar bars, legends, titles, filenames, or captions. Make compression/tension and tensile/shear conventions explicit because those are common sources of misinterpretation.
Common Pitfalls
- Too many particles: sample first, lower
Spheres(..., res=8-12), usePoints, or render offscreen. - Force-chain colors reversed: verify the contact normal force sign before labeling red/blue.
- Displacement invisible: arrow/deformation vectors usually need a scale factor.
- Animation flicker: fix camera and global scalar range.
- Crack discs point the wrong way: normalize normals and test one obvious crack before batch rendering.
- 2D data fails in vedo: promote
(x, y)to(x, y, 0)and render withviewup='z'.
First Response Pattern
When the user asks for PFC + vedo post-processing, ask only for missing essentials:
- Which exported PFC 5.0 files are available?
- Target views: particles, force chains, cracks, vectors, slices, animation?
- PFC version and force sign convention if contacts are involved.
- Desired output folder, image resolution, and whether offscreen rendering is needed.
If the repository already contains scripts or snapshots, inspect them first and adapt existing style instead of starting from scratch.
Required Inputs
Ask for these if missing:
- exported particle/contact/crack/field files and their schema;
- target visualization type: particles, displacement, vectors, slices, force chains, cracks, or animation;
- coordinate units, scalar fields, and color/size mapping rules;
- required output formats such as PNG, SVG, PDF, MP4, or source CSV;
- whether outputs must match a paper style or project style guide.
Local Contents
references/animation.md: animation workflow and camera conventions.references/colormaps.md: color mapping and semantic palette rules.references/export-schema.md: expected export-file schemas.references/vedo-recipes.md: reusable vedo plotting recipes.scripts/view_balls.py: safe numeric-NPZ particle renderer; pickle loading is disabled.LICENSEandNOTICE.md: retained MIT terms and upstream provenance.
Signals
- GitHub stars
- 26
- Last commit
- Aug 2026
Advanced
- Catalog kind
- skill
- Gateway key
pfc-vedo-postprocess- Source
- github.com/echo-aloha/asphalt-codex-skills-5