Skip to content

Simulation Studio Try Protos

← Home · Simulation Studio

Simulation Studio is where you build calculations, connect models to your data, and run simulations. You work on a visual canvas — a graph of connected blocks where data flows from inputs through to outputs.

The Co-Engineer can build canvases for you. Describe what you want to calculate and it creates the blocks, writes the code, and wires everything together. You review the code and approve it before it runs.


On This Page


Simulation Studio at a Glance

The canvas list

Simulation Studio opens on the project's canvases.

The canvas list

  1. Search the canvases by name; Filter by tag.
  2. Create with Co-Engineer asks the Co-Engineer to build a new canvas.
  3. New: New Canvas or Import Canvas.
  4. Start sequence runs that canvas without opening it.
  5. Publications: share canvases outside Protos. See Publishing Externally.

The editor

Click a canvas to open it in the editor, where you do the work.

The heat sink canvas in Graph view: four inputs feed the Thermal performance calculation, which feeds a chart

  1. Tabs for the canvases you have open. + (plus icon, right of the tabs) opens another or starts a new one.
  2. Build to edit the canvas, Results to see charts and outputs after a run.
  3. Graph view or List view of the blocks (the two icons right of Results).
  4. The Components rail (the column of icons down the left): click a block type to add it.
  5. Start sequence runs the whole canvas.
  6. The version button (clock icon with the version, such as v1.9) opens the canvas's version history.

What It Is

Each canvas is a graph of connected blocks:

Block What it does
Data input Pulls in data documents: any document of its schema that you can read
Parameter A value you can change: Numerical, Boolean, String, or Array
Calculation Python code that reads each upstream block by name from componentInputs and sets result
Model Calls a model from Models. The Co-Engineer sets it up. The rail's Model entry is a Pro feature, but a canvas that has a model block runs on any plan
Visualization HTML code that draws upstream results, for example as a chart

You wire blocks up on the graph, by dragging from one block to the next (see Working on the graph), or from inside a block: open it and pick its inputs under Upstream Components. When an input changes, the approved calculation and model blocks downstream re-run by themselves.


Simulation Studio opens on a list of the project's canvases, with search, a tag filter, Create with Co-Engineer, and New (New Canvas or Import Canvas). Each row's More actions menu has Edit details and Delete. The Publications section below the list is where the project's owner and editors publish canvases — see Publishing Externally.

Open a canvas to see its two tabs:

  • Build — add and connect blocks, write and approve calculations.
  • Results — charts and outputs after a run. Open any visualization with its Fullscreen button.

The Results tab of the heat sink canvas

Around the canvas:

  • Tabs bar — keep several canvases open, pin or close them. + opens recent canvases or starts a new one.
  • Graph view / List view — the icon toggle next to Build/Results. List view groups the blocks by type, each with Edit component. Connections, a Visualization's included, can also be made on the graph.
  • More actions (vertical dots) — Share… for the owner, Copy to project…, and export as PNG or PDF. Copy to project… puts a copy of the canvas, under a name you choose, in another of your projects; Open on the message that follows takes you there.
  • Version button — opens the Version history sheet, where you compare, label, or restore past versions. When something the canvas reads changes, a banner above the canvas offers Update, Keep, or Copy. See Versioning.
  • Avatars — collaborators with the project open. Opening a block to edit reserves it, so no one else can edit it at the same time.

Working on the graph

Graph view lays the blocks out by role: parameters and data inputs on the left, calculations and models in the middle, and visualizations on the right. Blocks line up in rows, and connections are drawn as smooth curves.

On a canvas you can edit:

  • Connect — drag from a block's output (its right edge) to another block's input (its left edge). Only calculation, model and visualization blocks take inputs, and a visualization has no output. A connection that would make a loop, or one that's already there, isn't allowed.
  • Bend or branch — click a connection to put a point on it, and drag the point to bend the line. Click a point to make it a connector, then click another block: that block gets the same input. Click anywhere else to let go.
  • Remove — click a connection to select it, then click its × (Remove connection) or press Delete or Backspace. A block itself is deleted from its panel, never with a key on the graph.
  • Move — drag a block. It stays where you drop it, for everyone, until you reset the layout.

The graph controls at the bottom left add two buttons:

  • Reset layout puts every block back on the layout and fits the view. Blocks keep their place when the canvas changes, so use this to tidy up after adding or connecting blocks.
  • Undo (or Ctrl/Cmd+Z, when you're not typing in a field) reverts your graph edits one at a time, newest first: moves, bends, resets, connections and removals. It goes back as far as when you opened the canvas; leaving the page clears it. There's no redo.

Block details panel

Click a block in Graph view to open its panel on the right.

The panel of a finished calculation block

  1. The run button: Approve & Run, then Re-run once approved, or Retry after a failed run.
  2. Result: the output of the last run, or the error if it failed.

Depending on the block, the panel also shows a chart Preview, Details (a parameter's value, the schema and keys a data input reads, or whether a block is approved), a code preview with Edit calculation, Sources, CAD files with View 3D, and Connections. A data input block has Open in Data Studio, which jumps to the documents it reads.


Building a Canvas

  1. Open Simulation Studio from the sidebar and click New › New Canvas.
  2. The empty canvas asks "Your canvas is ready — what do you want to simulate?" Describe your goal and the Co-Engineer proposes a graph and builds it once you approve.
  3. To build by hand instead, add blocks from the Components rail, then connect them on the graph, or open each one and set its Upstream Components. A Data input block needs at least one key under Selected Keys; all keys passes each whole document on, under root.
  4. Click Approve & Run on each Calculation or Model block. This confirms the code is safe to run.

Import Canvas copies a canvas from My projects (your other projects), Shared with Me, your organization's or community's tab, or Public Canvases into your project. The copy is yours to edit.


Running It

Start sequence runs the whole canvas: blocks with no upstream calculation or model run first, then everything downstream. Unapproved blocks are listed first, with Approve and run.

While it runs, the toolbar shows Running · X of Y done, and each block shows its status (Queued, Running, Completed, Failed to run, and so on). A calculation stays Queued while it waits for a free calculation runner, and the jobs menu in the header reads Waiting for the calculation runner. Runs happen on the server, so you can leave and come back.

To end the whole run, click Stop in the toolbar. It cancels every queued and running job of the canvas and marks unfinished blocks cancelled. If a job can't be stopped, a warning says it may still be running. To cancel a single job, use Cancel in the jobs menu.

A model you stop ends Cancelled, and blocks that waited on it say "Not run: its upstream … was stopped."

When it's done, open the Results tab. If a calculation or model a chart reads failed or was stopped on the last run, the chart keeps its last good result and says so above it: "Not updated: … failed. The chart shows its last successful result."


Design Space Exploration (Sweep)

A sweep runs your canvas across a range of values instead of one, so you get a full curve. Use a Parameter: Array block and set Min, Max, Number of Points, and Scale (Linear or Log). The calculation gets the whole list as one input and returns all the results in one run.

Example: set air speed as an array from 1 to 6 m/s across 20 points, run the canvas, and chart temperature across the whole range.


Running a Model in a Loop

When a model takes one value at a time, or you want to run it until a result converges, make a calculation its controller. The controller runs the model step by step and decides the next inputs from what came back.

  1. Add the model block and a calculation block. Wire the calculation's inputs (for example an array of values to try) as its Upstream Components. Don't wire the model to the calculation.
  2. Open the calculation with Edit calculation and set Controls model to the model block.
  3. Set Max steps (20 by default, up to 1000). Optionally set Stop when parameter is true or Stop when state key is true.

Each step, the code reads componentInputs["history"] (one {"params": ..., "result": ...} entry per run so far; a failed run has "result": None and an "error") and componentInputs["state"]. It sets result to either:

  • {"params": {...}, "state": {...}, "total": n} — run the model again with these inputs (state and total are optional), or
  • {"done": True, "result": ...} — finish.

This one runs the model once per value of an array parameter values, feeding each to the model's input x:

values = componentInputs["values"]
history = componentInputs["history"]
if len(history) < len(values):
    result = {"params": {"x": values[len(history)]}, "total": len(values)}
else:
    result = {"done": True, "result": {"runs": [h["result"] for h in history]}}

The controller shows a live count such as · 4/12. A controlled model only runs as part of the loop: Start sequence and input changes don't start it, and running it by hand during a loop fails the controller. Blocks downstream read the final value as componentInputs["<controller name>"]["result"].


Setting Up a Simulation from CAD

A design's STEP or IGES file can become a Simulation setup: a data document that splits the file into regions, one row per part and per face group (connected faces that share a plane, or a cylinder's axis), so you have something to attach conditions to. The setup links:

  • Materials, each assigned to the regions it covers.
  • Boundary conditions, Initial conditions and Loads, each a document of its own that names its regions. A Heat transfer condition can apply to a region's surface, or to the interface between two regions (for example a casting and its die).
  • Solver settings.

Building a setup

The Co-Engineer builds and fills setups. Ask it, for example "Set up a simulation of this design", or open the design's file with View 3D in the Data Studio, turn on Simulation in the viewer's toolbar and click Set up with Co-Engineer. That closes the viewer and starts a chat about the design.

The Co-Engineer builds the setup from the file, then names regions, assigns materials, and creates the conditions, loads and solver settings. It takes values from the design's drawing and your project's documents first, and lists the source of each value and any assumptions for you to check. It never approves a setup.

A file whose geometry check is red can't be made into a setup until it's repaired, or until an editor clicks Build the setup anyway in the viewer's geometry check.

Simulation mode in the 3D viewer

Simulation in the viewer's toolbar is offered on the current version of a STEP or IGES file. It shows the design's setup on the model:

  • Show regions tints each region in the colour of the condition type that covers it, with a legend. Hover a condition to highlight it on the model.
  • Boundary conditions, Initial conditions and Loads list each condition with its regions. If you can edit it, its region list is a picker: Search regions and tick or untick regions.
  • Materials lists each material and its regions, and Unassigned regions lists the regions no condition or load names yet.
  • Each item has Open in Data Studio, to edit its values.
  • When the design's file has changed since the regions were found, a notice offers Refresh.

When the setup is right, an editor clicks Approve setup. The approval records who approved it and when, and the canvas blocks that read the setup are approved with it. Any later edit shows the setup as Changed since approval, with what changed, until it is approved again.


Tips

  • Connect inputs from the Data Studio rather than typing values, so results link back to the document that produced them.
  • Keep calculation results under about 200 MB. Return summaries rather than every raw sample.
  • Scientific Python is available: NumPy, pandas, SciPy, scikit-learn, SymPy, xarray, SALib, pymoo, and SimPy.

See Also


← Back to Home