PFC CAD Import
Use this skill to explain, adapt, or generate PFC CAD/geometry import workflows. The skill is self-contained: PFC 6.0 geometry/range and cluster-shape examples are stored under scripts/canonical/, preserved legacy helper apps are stored under scripts/apps/, and documentation notes checked through pfc-mcp are stored under references/cad-import-doc-notes.md.
Parent Skill Relationship
pfc-cad-import is a child skill of pfc-workflow. It does not own the full PFC lifecycle. Use it for CAD/DXF/STL import, geometry sets, wall conversion, particle filling contracts, clump/rblock geometry templates, and legacy helper app classification. Return to pfc-workflow for full case planning, solve orchestration, post-processing routing, verification, and delivery.
Parent/child split:
- Parent
pfc-workflow: owns complete PFC project lifecycle and decides when CAD/geometry import support is needed.
- Child
pfc-cad-import: owns geometry file contracts, import commands, wall/particle/template handoff, and legacy plugin/app preservation.
- Sibling child
pfc-fish: owns detailed FISH helper/callback implementation.
- Sibling child
pfc-contact-models: owns contact-law selection and property setup after geometry/material creation.
- Sibling child
pfc-standard-tests: owns standard laboratory-test templates.
- Sibling child
pfc-servo-calibration: owns servo control and calibration sequencing.
- Sibling child
pfc-dynamics: owns dynamic/seismic loading assumptions.
- Sibling child
pfc-fluid-coupling: owns PFC CFD/seepage/buoyancy workflows.
- Sibling child
pfc-flac-coupling: owns PFC-FLAC/FLAC3D coupling.
- Sibling child
pfc-postprocessing: owns standard figures and field exports after solve.
- Sibling child
pfc-ae-energy: owns AE, energy, and source-mechanism outputs after solve.
When To Use
Use through pfc-workflow when a task needs geometry preprocessing:
- import DXF/STL/geometry files into PFC
- convert geometry into walls or boundaries
- fill CAD/FEM regions with balls, clumps, or rigid blocks
- create clump templates from geometry or CAD-derived shapes
- audit legacy CAD/FEM helper executables and their input/output contracts
- replace a black-box helper with transparent PFC 6.0 commands or scripts
- classify geometry import, particle-fill, boundary-search, or material-group workflows
Required Inputs
Ask for these if missing:
- Geometry source format: DXF, STL, Itasca geometry, FEM node/element tables, text coordinates, or helper-app output.
- Target object: geometry set, wall, balls, clumps, rblocks, material groups, or boundary particles.
- Dimensionality: PFC2D/PFC3D and target PFC major version.
- Required geometry scale, coordinate system, units, and domain extents.
- Whether the shape is a boundary, a region to fill, a particle template, or a validation/checking surface.
- Expected intermediate/output files from any legacy helper app.
Documentation-Backed Rules
The following PFC 6.0 documentation points were checked through pfc-mcp and are expanded in references/cad-import-doc-notes.md:
geometry import imports DXF/STL/Itasca geometry data into geometry sets.
geometry generate creates simple native geometry when CAD import is unnecessary.
geometry export exports geometry data for review or downstream use.
wall import imports walls from supported files or geometry sets; model domain and valid manifold/orientable geometry are required.
wall generate creates simple walls directly and should be preferred for simple boundaries.
clump template can build clump templates from pebbles or geometry/surface descriptions.
ball generate creates non-overlapping balls; ball distribute fills to target porosity with overlaps.
rblock construct / rblock generate support rigid-block geometry/template workflows.
Canonical Template Map
| Topic |
Folder |
Files |
Purpose |
| Geometry/range PFC 6.0 |
scripts/canonical/geometry-range-pfc6/ |
.dat, .dxf, .stl |
Native geometry creation/import, range use, and geometry/FISH examples. |
| Cluster/shape PFC 6.0 |
scripts/canonical/cluster-shape-pfc6/ |
method folders with .dat, .dxf, .stl, .p2clp |
Cluster, clump template, replacement, export, and rblock/geometry workflows. |
| Legacy plugin apps |
scripts/apps/legacy-plugins/ |
app.exe plus small adjacent inputs |
Optional preserved helper apps for CAD/FEM import, particle filling, boundary search, water-pressure, and material grouping workflows. |
CAD Import Checklist
Use this checklist before writing or changing geometry import logic:
- Decide if native PFC commands can replace the external helper.
- Define the model domain before wall import/generation.
- Validate geometry scale, units, coordinate axes, orientation, and topology.
- Use geometry sets for inspection before converting geometry into walls or templates.
- For particle filling, document target porosity, size distribution, allowed overlap, and acceptance region.
- For clump/rblock templates, document surface quality and inertial-attribute assumptions.
- Keep legacy helper apps optional and document their input/output contract.
- Route full model staging and validation back to
pfc-workflow.
Working Rules
- Prefer PFC 6.0-native
geometry, wall, ball, clump, and rblock commands before relying on legacy apps.
- Treat files in
scripts/canonical/ as reference templates, not final calibrated models.
- Treat apps in
scripts/apps/ as optional preserved helper applications, not mandatory public dependencies.
- Do not publish generated
.sav, project metadata, videos, PDFs, archives, or very large generated outputs as authoritative assets.
- If the task becomes a full model run or validation study, hand control back to
pfc-workflow.
Output Contract
A complete child-skill handoff back to pfc-workflow should include:
- Selected geometry import/fill/template pattern and why it fits.
- Required files or snippets from
scripts/canonical/<case>/ or optional apps from scripts/apps/<app>/.
- Input/output file contract, units, coordinate system, and domain extent.
- Wall/geometry/particle/clump/rblock handoff commands.
- Validation checks for geometry topology and generated PFC objects.
- Version compatibility and legacy-helper notes.
- A clear note that full case execution, post-processing routing, V&V, and delivery continue in
pfc-workflow.
Local Contents
references/overview.md: detailed self-contained CAD import boundaries and source map.
references/cad-import-doc-notes.md: PFC 6.0 command notes checked through pfc-mcp.
references/plugin-cases.md: legacy helper app classification and contracts.
examples/README.md: how to validate bundled CAD/geometry demonstrations.
scripts/canonical/: native PFC geometry/range and cluster-shape snippets.
scripts/apps/: optional preserved legacy helper applications.
scripts/canonical/manifest.json: file inventory with sizes and SHA-256 hashes.
scripts/README.md: helper-script policy and future maintenance guidance.
1---2name: pfc-cad-import3description: Child skill of pfc-workflow for PFC 6.0 CAD/DXF/STL geometry import, wall/geometry conversion, particle filling, clump/rblock templates, and legacy helper app contracts.4---56# PFC CAD Import78Use this skill to explain, adapt, or generate PFC CAD/geometry import workflows. The skill is self-contained: PFC 6.0 geometry/range and cluster-shape examples are stored under `scripts/canonical/`, preserved legacy helper apps are stored under `scripts/apps/`, and documentation notes checked through `pfc-mcp` are stored under `references/cad-import-doc-notes.md`.910## Parent Skill Relationship1112`pfc-cad-import` is a child skill of `pfc-workflow`. It does not own the full PFC lifecycle. Use it for CAD/DXF/STL import, geometry sets, wall conversion, particle filling contracts, clump/rblock geometry templates, and legacy helper app classification. Return to `pfc-workflow` for full case planning, solve orchestration, post-processing routing, verification, and delivery.1314Parent/child split:1516- Parent `pfc-workflow`: owns complete PFC project lifecycle and decides when CAD/geometry import support is needed.17- Child `pfc-cad-import`: owns geometry file contracts, import commands, wall/particle/template handoff, and legacy plugin/app preservation.18- Sibling child `pfc-fish`: owns detailed FISH helper/callback implementation.19- Sibling child `pfc-contact-models`: owns contact-law selection and property setup after geometry/material creation.20- Sibling child `pfc-standard-tests`: owns standard laboratory-test templates.21- Sibling child `pfc-servo-calibration`: owns servo control and calibration sequencing.22- Sibling child `pfc-dynamics`: owns dynamic/seismic loading assumptions.23- Sibling child `pfc-fluid-coupling`: owns PFC CFD/seepage/buoyancy workflows.24- Sibling child `pfc-flac-coupling`: owns PFC-FLAC/FLAC3D coupling.25- Sibling child `pfc-postprocessing`: owns standard figures and field exports after solve.26- Sibling child `pfc-ae-energy`: owns AE, energy, and source-mechanism outputs after solve.2728## When To Use2930Use through `pfc-workflow` when a task needs geometry preprocessing:3132- import DXF/STL/geometry files into PFC33- convert geometry into walls or boundaries34- fill CAD/FEM regions with balls, clumps, or rigid blocks35- create clump templates from geometry or CAD-derived shapes36- audit legacy CAD/FEM helper executables and their input/output contracts37- replace a black-box helper with transparent PFC 6.0 commands or scripts38- classify geometry import, particle-fill, boundary-search, or material-group workflows3940## Required Inputs4142Ask for these if missing:4344- Geometry source format: DXF, STL, Itasca geometry, FEM node/element tables, text coordinates, or helper-app output.45- Target object: geometry set, wall, balls, clumps, rblocks, material groups, or boundary particles.46- Dimensionality: PFC2D/PFC3D and target PFC major version.47- Required geometry scale, coordinate system, units, and domain extents.48- Whether the shape is a boundary, a region to fill, a particle template, or a validation/checking surface.49- Expected intermediate/output files from any legacy helper app.5051## Documentation-Backed Rules5253The following PFC 6.0 documentation points were checked through `pfc-mcp` and are expanded in `references/cad-import-doc-notes.md`:5455- `geometry import` imports DXF/STL/Itasca geometry data into geometry sets.56- `geometry generate` creates simple native geometry when CAD import is unnecessary.57- `geometry export` exports geometry data for review or downstream use.58- `wall import` imports walls from supported files or geometry sets; model domain and valid manifold/orientable geometry are required.59- `wall generate` creates simple walls directly and should be preferred for simple boundaries.60- `clump template` can build clump templates from pebbles or geometry/surface descriptions.61- `ball generate` creates non-overlapping balls; `ball distribute` fills to target porosity with overlaps.62- `rblock construct` / `rblock generate` support rigid-block geometry/template workflows.6364## Canonical Template Map6566| Topic | Folder | Files | Purpose |67| --- | --- | --- | --- |68| Geometry/range PFC 6.0 | `scripts/canonical/geometry-range-pfc6/` | `.dat`, `.dxf`, `.stl` | Native geometry creation/import, range use, and geometry/FISH examples. |69| Cluster/shape PFC 6.0 | `scripts/canonical/cluster-shape-pfc6/` | method folders with `.dat`, `.dxf`, `.stl`, `.p2clp` | Cluster, clump template, replacement, export, and rblock/geometry workflows. |70| Legacy plugin apps | `scripts/apps/legacy-plugins/` | `app.exe` plus small adjacent inputs | Optional preserved helper apps for CAD/FEM import, particle filling, boundary search, water-pressure, and material grouping workflows. |7172## CAD Import Checklist7374Use this checklist before writing or changing geometry import logic:75761. Decide if native PFC commands can replace the external helper.772. Define the model domain before wall import/generation.783. Validate geometry scale, units, coordinate axes, orientation, and topology.794. Use geometry sets for inspection before converting geometry into walls or templates.805. For particle filling, document target porosity, size distribution, allowed overlap, and acceptance region.816. For clump/rblock templates, document surface quality and inertial-attribute assumptions.827. Keep legacy helper apps optional and document their input/output contract.838. Route full model staging and validation back to `pfc-workflow`.8485## Working Rules8687- Prefer PFC 6.0-native `geometry`, `wall`, `ball`, `clump`, and `rblock` commands before relying on legacy apps.88- Treat files in `scripts/canonical/` as reference templates, not final calibrated models.89- Treat apps in `scripts/apps/` as optional preserved helper applications, not mandatory public dependencies.90- Do not publish generated `.sav`, project metadata, videos, PDFs, archives, or very large generated outputs as authoritative assets.91- If the task becomes a full model run or validation study, hand control back to `pfc-workflow`.9293## Output Contract9495A complete child-skill handoff back to `pfc-workflow` should include:9697- Selected geometry import/fill/template pattern and why it fits.98- Required files or snippets from `scripts/canonical/<case>/` or optional apps from `scripts/apps/<app>/`.99- Input/output file contract, units, coordinate system, and domain extent.100- Wall/geometry/particle/clump/rblock handoff commands.101- Validation checks for geometry topology and generated PFC objects.102- Version compatibility and legacy-helper notes.103- A clear note that full case execution, post-processing routing, V&V, and delivery continue in `pfc-workflow`.104105## Local Contents106107- `references/overview.md`: detailed self-contained CAD import boundaries and source map.108- `references/cad-import-doc-notes.md`: PFC 6.0 command notes checked through `pfc-mcp`.109- `references/plugin-cases.md`: legacy helper app classification and contracts.110- `examples/README.md`: how to validate bundled CAD/geometry demonstrations.111- `scripts/canonical/`: native PFC geometry/range and cluster-shape snippets.112- `scripts/apps/`: optional preserved legacy helper applications.113- `scripts/canonical/manifest.json`: file inventory with sizes and SHA-256 hashes.114- `scripts/README.md`: helper-script policy and future maintenance guidance.