Cookbook
Short recipes for one task each. Every recipe's code is a script in examples/cookbook/ that runs as it stands and writes its output to the current directory; the pages show the output you should get. Recipes marked CAD need the cad extra (pip install "shore-mesh[cad]").
For the ideas behind them see Concepts; for every flag and argument see the CLI reference and the Python API.
Geometry
- Write an analytic test body as STL
- Generate a NACA section, sharp or blunt TE
- Extrude a wing with taper, sweep and twist
- Load STEP, IGES or BREP and list its faces, edges and vertices (CAD)
- Choose between tessellated and exact CAD projection (CAD)
- Load several geometries under names (CAD)
- List the feature curves and points of an STL
- Choose the crease angle for STL features
- Snap a grid edge onto an STL feature curve
Spacing
- Reach a boundary-layer thickness with geometric layers
- Hit a target first cell with a tanh or tanh2 law
- Size the first cell for a target y+
- Know which k-schedule each block marches with
- Cluster one edge of a box primitive
- Set the k-schedule of a cubed sphere or O-grid edge by edge
- Cluster the nodes along one block edge of an existing grid
- Redistribute an edge through the seams of a marched grid
- Know what a redistribution refuses
Geometry association and surfaces
- Find the CAD entities to associate with (CAD)
- Associate a face, an edge and a vertex, then snap (CAD)
- Clear or undo an association (CAD)
- Find the CAD surface under a block face (CAD)
- Rebuild a block face on a CAD surface (CAD)
Half models
- Cut a body at its symmetry plane
- Build a half-collar at a junction on the symmetry plane
- Write SYMMETRY faces to
cc.par
Blocking
- Split a blocking block at a node
- Delete a block to make a hole round the body
- Insert an O-grid around a body in a box
- Make grid lines leave the wall along its normal
- Cluster a wall layer with an absolute first cell
- Move a blocking vertex, freely or onto the geometry
Quality
- Check a
.geofile for folded cells - Summarise the quality of a whole grid
- Compare blocks and find the worst cell
- Compare march settings on wall orthogonality
Solver files
- Export a project as CGNS
- Export a project as Plot3D
- Export to VTK for ParaView
- Write one Xall run from several components
- Merge separately built
.grd,cc.parandproc.inputfiles - Split blocks by hand, keeping the seams
- Plan a balanced split for N ranks
- Keep enough cells for the multigrid levels
- Split after the overset pre-processor with
bsplit