calculate_drain_slope
Compute the required drain slope in percent and cm/m for plumbing or roof drainage based on pipe length, diameter, and fixture type, ensuring proper water flow per plumbing code.
Instructions
Compute required drain slope (% and cm/m) to ensure proper water flow per plumbing code. Use for plumbing or roof drainage. Inputs: pipe length, pipe diameter, application. Returns slope % and drop in cm. See list_bundles for related 'plomberie' calculators.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pipe_diameter_mm | No | Drain pipe diameter in millimeters (default 100mm) | |
| fixture_type | Yes | Type of sanitary fixture being drained |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | Computed result. Object whose fields depend on the tool (e.g. {tax, marginal_rate, brackets} for tax tools, {volume_l, gallons} for volume tools). | |
| formula | No | Human-readable formula or method used (e.g. "I=P·r·t", "Magnus formula"). | |
| source | No | Authoritative source for the rule or formula (e.g. "Article 197 CGI", "NF DTU 21"). | |
| reference_url | No | Link to a calcul2 page documenting the calculation in detail. |