Math & Numbers
Calcula a perda de carga principal (por atrito) de Darcy-Weisbach em um tubo reto: ΔP=f·(L/D)·(ρ·v²/2) Pa; perda de carga h_f=ΔP/(ρ·g)=f·(L/D)·v²/(2g) m. O usuário informa o fator de atrito de Darcy f (não Fanning). Comprimento em m/km/ft, diâmetro em m/cm/mm/inch, densidade em kg/m³/g/cm³/lb/ft³ (convertida para SI). Retorna kPa, bar e carga em m/ft.
Chame esta ferramenta a partir do seu código em três idiomas.
curl -X POST 'https://api.elysiatools.com/pt/api/tools/pipe-pressure-drop-darcy' \
-H 'Content-Type: application/json' \
-d '{"frictionFactor":0.02,"pipeLength":100,"pipeLengthUnit":"m","diameter":0.05,"diameterUnit":"m","density":1000,"densityUnit":"kg/m³","velocity":2,"gravity":9.81,"decimalPlaces":4}'Envie uma requisição POST com suas entradas em JSON. Parâmetros do tipo arquivo exigem upload prévio.
POST https://api.elysiatools.com/pt/api/tools/pipe-pressure-drop-darcy| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
| frictionFactor | number | Sim | Darcy friction factor f (also called Moody / Darcy-Weisbach factor). NOTE: this is NOT the Fanning friction factor (f_Darcy = 4·f_Fanning). Obtain f from a Moody chart or the Colebrook-White correlation. |
| pipeLength | number | Sim | Pipe length L in the selected Length Unit. |
| pipeLengthUnit | select | Não | — |
| diameter | number | Sim | Internal pipe diameter D in the selected Diameter Unit. |
| diameterUnit |
Adicione esta ferramenta ao seu servidor Model Context Protocol para que agentes de IA possam listá-la e chamá-la.
Adicione este bloco à configuração do seu cliente MCP:
{
"mcpServers": {
"elysiatools-pipe-pressure-drop-darcy": {
"name": "pipe-pressure-drop-darcy",
"description": "Calcula a perda de carga principal (por atrito) de Darcy-Weisbach em um tubo reto: ΔP=f·(L/D)·(ρ·v²/2) Pa; perda de carga h_f=ΔP/(ρ·g)=f·(L/D)·v²/(2g) m. O usuário informa o fator de atrito de Darcy f (não Fanning). Comprimento em m/km/ft, diâmetro em m/cm/mm/inch, densidade em kg/m³/g/cm³/lb/ft³ (convertida para SI). Retorna kPa, bar e carga em m/ft.",
"baseUrl": "https://api.elysiatools.com/mcp/sse?toolId=pipe-pressure-drop-darcy",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}Após conectar ao endpoint SSE, liste as ferramentas expostas:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/list"
}Invoque a ferramenta pelo seu id; os argumentos são construídos a partir de seus parâmetros:
{
"jsonrpc": "2.0",
"id": 2,
"method": "tools/call",
"params": {
"name": "pipe-pressure-drop-darcy",
"arguments": {
"frictionFactor": 0.02,
"pipeLength": 100,
"pipeLengthUnit": "m",
"diameter": 0.05,
"diameterUnit": "m",
"density": 1000,
"densityUnit": "kg/m³",
"velocity": 2,
"gravity": 9.81,
"decimalPlaces": 4
}
}
}| select |
| Não |
| — |
| density | number | Não | Fluid density ρ in the selected Density Unit. |
| densityUnit | select | Não | — |
| velocity | number | Sim | Mean flow velocity v in m/s. |
| gravity | number | Não | Gravitational acceleration g in m/s². Default 9.81 (Earth); override for non-Earth or unit-head conversions. |
| decimalPlaces | number | Não | — |
Resultado JSON
{
"key": {...},
"metadata": {
"key": "value"
},
"error": "Error message (optional)",
"message": "Notification message (optional)"
}Dúvidas ou problemas? Contate [email protected]