{
  "openapi": "3.0.1",
  "info": {
    "title": "Fluid Properties: Steam Tables, Refrigerants, Psychrometrics",
    "description": "Thermodynamic properties from plain text: steam tables, refrigerants (R134a, R410A, R32, CO2, ammonia), gases, glycol and brine, moist air with a psychrometric chart, refrigeration and Rankine cycles. SI or US units. For AI agents.",
    "version": "0.1",
    "x-build-id": "HVTc7zHSwvl2qEP4E"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jumblemog~fluid-properties/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jumblemog-fluid-properties",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/jumblemog~fluid-properties/runs": {
      "post": {
        "operationId": "runs-sync-jumblemog-fluid-properties",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/jumblemog~fluid-properties/run-sync": {
      "post": {
        "operationId": "run-sync-jumblemog-fluid-properties",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "states": {
            "title": "Fluid states",
            "type": "array",
            "description": "One state per line: the fluid, then two properties with units or labels, such as 'water: 10 bar, 300 C', 'steam: P = 150 psia, h = 1300 Btu/lb', 'R134a at -10 C, saturated vapor', 'ammonia at 10 bar, 90% quality', 'CO2: 100 bar, 40 C', 'propylene glycol 30%: 20 C'. One temperature or pressure alone gives saturated liquid and vapor ('water at 100 C'). Properties: T, P, quality (x), h, s, u, density, specific volume.",
            "items": {
              "type": "string"
            }
          },
          "fluid": {
            "title": "Default fluid",
            "type": "string",
            "description": "The fluid for state lines that don't name one, such as water or R134a."
          },
          "saturationTables": {
            "title": "Saturation tables",
            "type": "array",
            "description": "Steam-table style tables of saturated liquid and vapor: 'water from 0 to 100 C step 10', 'R134a: -40 to 60 C every 5', 'water: 10 kPa to 20 MPa, 15 rows' (pressure tables with a wide range are spaced evenly on a log scale).",
            "items": {
              "type": "string"
            }
          },
          "cycles": {
            "title": "Cycles",
            "type": "array",
            "description": "Refrigeration or heat-pump cycles: {\"type\": \"refrigeration\", \"fluid\": \"R134a\", \"evaporating\": \"-10 C\", \"condensing\": \"40 C\", \"superheat\": \"5 K\", \"subcooling\": \"3 K\", \"efficiency\": 0.75, \"capacity\": \"10 kW\"}. Rankine cycles: {\"type\": \"rankine\", \"fluid\": \"water\", \"boilerPressure\": \"80 bar\", \"turbineInlet\": \"500 C\", \"condenserPressure\": \"10 kPa\", \"turbineEfficiency\": 0.85, \"pumpEfficiency\": 0.8, \"netPower\": \"100 MW\", \"reheatPressure\": \"10 bar\", \"reheatTemperature\": \"500 C\"}."
          },
          "humidAir": {
            "title": "Moist air states",
            "type": "array",
            "description": "One moist-air state per line: dry bulb with relative humidity, wet bulb, dew point or humidity ratio ('30 C, 50% RH', 'dry bulb 95 F, wet bulb 75 F', '25 C, dew point 10 C', '24 C, W = 9 g/kg'), or enthalpy with one of them. Add a pressure or 'altitude 1500 m' to a line, or set it for all below. All states are plotted on one psychrometric chart.",
            "items": {
              "type": "string"
            }
          },
          "airPressure": {
            "title": "Air pressure",
            "type": "string",
            "description": "Barometric pressure for moist-air lines that don't give one, such as 101.325 kPa or 12.2 psia. Empty: sea level."
          },
          "altitude": {
            "title": "Altitude",
            "type": "string",
            "description": "Instead of the pressure: an altitude such as 1500 m or 5000 ft (standard atmosphere)."
          },
          "connectAirStates": {
            "title": "Connect air states as a process",
            "type": "boolean",
            "description": "Draw a line through the moist-air states in order on the chart, for a process such as cooling and reheating.",
            "default": false
          },
          "units": {
            "title": "Units",
            "enum": [
              "auto",
              "SI",
              "US"
            ],
            "type": "string",
            "description": "Units of bare numbers and of the results. Automatic picks US when most units written are US units.",
            "default": "auto"
          },
          "referenceState": {
            "title": "Reference state",
            "enum": [
              "default",
              "IIR",
              "ASHRAE",
              "NBP"
            ],
            "type": "string",
            "description": "The zero point of enthalpy and entropy. Differences (and cycle results) don't change; match the tables you're comparing with. Many US textbooks use ASHRAE for refrigerants.",
            "default": "default"
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}