elements.catalog.fanno_pipe
elements.catalog.fanno_pipe(
length,
diameter,
friction_factor,
n_segments,
name='pipe',
)Distributed (Fanno) pipe: an n_segments chain of :func:pipe atoms.
A long or fast pipe is Fanno flow – wall friction drives the subsonic flow toward M = 1, so density, velocity and Mach vary continuously along the length and a single lumped K misses it. This chains n_segments pipe atoms, each of length L/N and the same diameter/friction_factor, joined by single internal edges (each internal edge is the intermediate flow state – no junctions). As N grows the chain converges to the true Fanno solution and can approach choke at the pipe exit; the locally-uniform per-segment mean state also propagates acoustics through the mean gradient far better than one lumped duct stamp.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| length | float | Total length L [m], hydraulic diameter D [m] and Darcy friction factor f (see :func:pipe). |
required |
| diameter | float | Total length L [m], hydraulic diameter D [m] and Darcy friction factor f (see :func:pipe). |
required |
| friction_factor | float | Total length L [m], hydraulic diameter D [m] and Darcy friction factor f (see :func:pipe). |
required |
| n_segments | int | Number of pipe-atom segments N (>= 1; a fidelity knob, see :func:segments_for_frequency and :func:grid_refine). |
required |
| name | str | Display name. | 'pipe' |
Returns
| Name | Type | Description |
|---|---|---|
| CompositeElementSpec |