{
  "openapi": "3.0.1",
  "info": {
    "title": "FEA Stress Analysis API: STEP to Stress & Safety Factor",
    "description": "Finite element stress analysis of a CAD part by API. Send a STEP file, the faces that are held and the loads; get von Mises stress, displacement, safety factor and reaction forces, with stress plots and a mesh convergence check. Meshed with Gmsh, solved with CalculiX. For engineers and AI agents.",
    "version": "0.1",
    "x-build-id": "bPz42VIA4Z3ABhhIr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jumblemog~fea-stress-analysis/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jumblemog-fea-stress-analysis",
        "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~fea-stress-analysis/runs": {
      "post": {
        "operationId": "runs-sync-jumblemog-fea-stress-analysis",
        "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~fea-stress-analysis/run-sync": {
      "post": {
        "operationId": "run-sync-jumblemog-fea-stress-analysis",
        "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": {
          "model": {
            "title": "Link to the CAD file",
            "type": "string",
            "description": "A link to a STEP file (.step, .stp), or IGES or BREP; gzip and ZIP with one file work too. Units are read from the file and results are in millimetres. Write example to use the built-in bracket."
          },
          "upload": {
            "title": "Or upload the CAD file",
            "type": "string",
            "description": "A STEP, IGES or BREP file from your computer, instead of a link."
          },
          "material": {
            "title": "Material",
            "enum": [
              "steel",
              "steel s355",
              "steel 1045",
              "steel 4140",
              "stainless 304",
              "stainless 316",
              "cast iron",
              "aluminum 6061-t6",
              "aluminum 7075-t6",
              "aluminum 5052-h32",
              "aluminum 2024-t3",
              "aluminum a356-t6",
              "titanium ti-6al-4v",
              "titanium grade 2",
              "brass",
              "copper",
              "bronze",
              "magnesium az31b",
              "abs",
              "pla",
              "petg",
              "nylon pa6",
              "nylon pa12",
              "polycarbonate",
              "pom",
              "peek",
              "hdpe",
              "polypropylene",
              "acrylic"
            ],
            "type": "string",
            "description": "Sets the stiffness, the weight and the strength the safety factor is measured against. Steel when left empty. Typical handbook values; put your own in customMaterial."
          },
          "customMaterial": {
            "title": "Your own material values",
            "type": "object",
            "description": "Instead of the list, or to change single values of the chosen material: {\"youngsModulusMpa\": 71000, \"poissonRatio\": 0.33, \"densityKgM3\": 2800, \"yieldStrengthMpa\": 420, \"ultimateStrengthMpa\": 480, \"name\": \"My alloy\"}. Young's modulus and Poisson's ratio are needed for a material of your own; density only for gravity; the strengths only for the safety factor."
          },
          "fixed": {
            "title": "Fixed faces",
            "type": "array",
            "description": "Faces held completely still, one entry each: a side (bottom, top, left, right, front, back), a face number (face 3, faces 3-5), a hole (hole A, holes 7 mm, all holes, largest hole) or the face nearest a point (near 10, 0, 5). Leave supports and loads empty to get the list and a picture of the part's faces first.",
            "items": {
              "type": "string"
            }
          },
          "sliding": {
            "title": "Sliding faces",
            "type": "array",
            "description": "Flat faces that may slide in their own plane but not lift off or sink in: a part resting on a table, or a symmetry plane. Named like fixed faces.",
            "items": {
              "type": "string"
            }
          },
          "loads": {
            "title": "Loads",
            "type": "array",
            "description": "One entry each, as amount, direction and faces: 500 N down on top; 1.2 kN -x on hole A; 150 lbf normal on face 7 (pushing straight into the face); 2 MPa on face 7 (pressure); 5 N·m on hole A (torque about the hole's axis). Directions: down, up, left, right, front, back, +x to -z, normal, outward, or three numbers. A force is spread evenly over the faces it names.",
            "items": {
              "type": "string"
            }
          },
          "gravity": {
            "title": "Gravity",
            "type": "string",
            "description": "The part's own weight as a load: down for one g downward, or 2 g down, 9.81 m/s2 -y, or three numbers in m/s² such as 0, 0, -9.81. Empty: no weight."
          },
          "up": {
            "title": "Up axis",
            "enum": [
              "z",
              "y"
            ],
            "type": "string",
            "description": "Which axis of the model points up; it decides what top, bottom, front, back, down and up mean.",
            "default": "z"
          },
          "meshQuality": {
            "title": "Mesh",
            "enum": [
              "coarse",
              "normal",
              "fine"
            ],
            "type": "string",
            "description": "How finely the part is divided into 10-node tetrahedra. Parts with many holes and fillets get more elements than the figure says.",
            "default": "normal"
          },
          "elementSizeMm": {
            "title": "Element size (mm)",
            "type": "string",
            "description": "Set the largest element edge yourself, in millimetres, such as 1.5, instead of the mesh setting. Up to 150,000 elements are solved."
          },
          "convergenceCheck": {
            "title": "Check the mesh",
            "type": "boolean",
            "description": "Solve a second time on a finer mesh and report how much the stress and the movement change. Under a few percent means the mesh is fine enough. Takes about three times as long.",
            "default": false
          },
          "inspect": {
            "title": "Only list the faces",
            "type": "boolean",
            "description": "Don't solve: return the part's size, volume, faces, sides and holes with a numbered picture, to see what to hold and load. Billed as the cheaper inspection event.",
            "default": false
          },
          "pictures": {
            "title": "Pictures",
            "type": "boolean",
            "description": "Draw the stress, the movement and the supports and loads as PNG.",
            "default": true
          },
          "imageWidth": {
            "title": "Picture width (pixels)",
            "minimum": 600,
            "maximum": 3000,
            "type": "integer",
            "description": "Width of each picture.",
            "default": 1400
          },
          "resultFiles": {
            "title": "Result files",
            "type": "boolean",
            "description": "Also save the full result as a VTU file (opens in ParaView, with displacement and von Mises stress at every node) and the CalculiX input deck (.inp), to rerun or extend the study yourself.",
            "default": false
          },
          "title": {
            "title": "Title",
            "type": "string",
            "description": "A title for the pictures and the report."
          },
          "timeLimitSeconds": {
            "title": "Time limit per study (seconds)",
            "minimum": 10,
            "maximum": 1800,
            "type": "integer",
            "description": "How long one study may mesh, solve and draw. A normal mesh takes 10 to 20 seconds. Time past 30 seconds is billed per started 30 seconds.",
            "default": 300
          },
          "studies": {
            "title": "Several studies",
            "type": "array",
            "description": "Several studies in one run, such as load cases of one part: a list of objects, each with any of the fields above: [{\"title\": \"pull\", \"loads\": [\"300 N right on hole A\"]}, {\"title\": \"twist\", \"loads\": [\"5 N·m on hole A\"]}]. Fields not given come from above. In a study a load can also be an object: {\"on\": \"hole A\", \"force\": 300, \"direction\": [1, 0, 0]}, {\"on\": \"face 7\", \"pressure\": 2} or {\"on\": \"hole A\", \"torque\": 5}."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}