pw_trex
Set up T-Rex boundary layers on an unstructured volume block, creating the block and farfield first if needed, then assign boundary types and first-layer height before volume meshing.
Instructions
Set up T-Rex boundary layers on the unstructured volume block. If the project has no block yet, builds one first: farfield.mode 'auto' runs Automatic Volume Mesh (farfield box/sphere/cylinder plus symmetry planes, e.g. ['ymin'] or 'auto' for a half model cut at y=0); 'existing' uses domains that already enclose the volume. Then assigns T-Rex boundary types by domain-name pattern (first match: symmetry->Match, off->Off, adjacent_grid->AdjacentGrid, wall->Wall), sets the first-layer height on every Wall condition and the block's T-Rex attributes. Does not generate cells: run pw_volume next.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"first_layer_height": "<first_layer_height>"
},
"name": "pw_trex"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| off | No | Domain patterns with no layers (default ['farfield-*']). | |
| wall | No | Domain patterns that grow layers (default ['*'], i.e. everything not matched earlier). | |
| block | No | Block name pattern when the project has several. | |
| backend | No | 'batch' (default): a headless tclsh run per call, state passed through .pw files. 'live': send the step to a running Pointwise GUI through its Glyph Server (port 2807). | |
| project | No | Input Fidelity Pointwise project (.pw). Required with the batch backend. With the live backend omit it to work on the session open in the GUI; giving it loads that file first. | |
| save_as | No | Where to write the resulting .pw. Batch default: replace `project` in place, but only after the step succeeded. Live default: do not save. | |
| farfield | No | How to create the block if none exists. | |
| symmetry | No | Domain patterns set to T-Rex Match (default ['symmetry-*']). | |
| cell_type | No | T-Rex cell types; TetPyramidPrismHex/AllAndReducePyramids give prisms on triangle walls. | |
| max_layers | No | Maximum T-Rex layers; 0 turns T-Rex off. Omit to keep the current value (Automatic Volume Mesh sets 1000, i.e. grow until isotropic). | |
| full_layers | No | Layers grown without front decimation. 0 enables multiple normals at sharp edges and near symmetry planes (Pointwise's advice for half models). | |
| growth_rate | No | Layer-to-layer growth rate (default 1.2). | |
| adjacent_grid | No | Domain patterns set to AdjacentGrid. | |
| discard_unsaved | No | Live backend only: allow replacing a GUI session with unsaved changes. | |
| push_attributes | No | Push layer spacing onto Match (symmetry) domains. | |
| timeout_seconds | No | Seconds before the Pointwise run is stopped with kind=timeout (default 1800). Counts time the computer is awake; sleep or hibernation does not count. | |
| collision_buffer | No | Space kept between colliding fronts, in cell heights (default 2). | |
| isotropic_height | No | Scale on the isotropic stop height (default 1). | |
| centroid_skewness | No | Skew criterion: centroid skewness limit (1 = off). | |
| equiangle_skewness | No | Skew criterion: equiangle skewness limit (1 = off). | |
| first_layer_height | Yes | Wall-normal height of the first cell (model units), e.g. 2.5e-5 m for y+~1. | |
| max_included_angle | No | Skew criterion: max included angle of T-Rex cells, degrees (default 170). | |
| equivolume_skewness | No | Skew criterion: equivolume skewness limit (1 = off). | |
| extra_block_attributes | No | Other block solver attributes, e.g. {"TRexIsotropicSeedLayers": 2}. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||