Skip to main content

Import, Export, and Copy Models

Models can be saved in NexusFlow or exported to local files. When you need to create a new model using an existing model as a starting point, you can use "Save As". These operations look similar, but their storage locations and subsequent uses are different.

Interface name

Documents use "model" uniformly. Some buttons or windows on the current interface may use names such as "Project", "Study" or "Simulation", such as "Open Simulation", "New Blank Case" and "Export Case"; these names refer to the model on this page.

When to Import, Export or Copy​

First select the operation according to the purpose:

PurposeActions That Should Be UsedWhere Is the Model After the Operation?
Load the model file from the computer into the WorkbenchImport from Local FileFirst enter the current browser page, check and save it before it becomes a personal model
Keep the model file on your computer or hand it over to other users or other environments for inspectionExport to Local FileZIP file in browser download directory
Keep the original model and create a new model in the platform that can be edited independentlySave AsList of personal models for the current account
Modify an organization's shared or public modelAfter opening the shared model Save AsThe personal model list of the current account, the original shared model remains unchanged

The difference between "Save as" and "Export to local" is particularly important:

  • Save As will create a new model record in the platform. After the save is successful, the current page will be transferred to the new model, and subsequent saves will only update the new model.
  • Export to Local File will only download files and will not create a new personal model, nor will it change the name, visible range or save status of the current model.

Local model files are used to save model content and do not contain simulation job records, run logs or calculation results. When you need to retain the results, you should separately confirm the saving method provided by the current platform, and do not back up the model file as a complete job.

Import Model from Local File​

Prepare Before Importing​

Importing will load the file contents into the current page. To avoid overwriting the draft you are editing, it is recommended to prepare like this:

  1. Save modifications that still need to be retained in the current model.
  2. Return to Personal Center and enter the Simulation Workbench consistent with the local model type.
  3. Create a new blank model tab specifically for import.
  4. Verify that the file is a ZIP file generated by NexusFlow's "Export to Local" feature and comes from a trusted source.

Do not unzip and then select one of the JSON files. The import entry reads the complete ZIP, and the model structure and optional definitions in the compressed package need to remain intact.

Import File​

  1. Click New/Open at the top of the Simulation Workbench.
  2. Select Local File on the left side of the Open Simulation window.
  3. Drag the ZIP file to the upload area, or click the upload area and select the file.
  4. Wait for the file reading to complete. Upon success, the window closes and the model contents are displayed in the current canvas.
  5. Do not start the calculation immediately, first complete the check according to What to check after importing.
  6. After confirming that the content is correct, use Save As to fill in the new model name, description, group and visible range, and save it to your personal model.
Select the local file in the open simulation window and upload the ZIP
Select the local file in the open simulation window and upload the ZIP

The imported content will become a new unsaved model, with the initial selection Default Group. You can reselect the group you belong to before saving.

Has It Been Saved After Importing?​

No. Successful reading of local files only means that the model content has been loaded into the current page, but does not mean that the platform has created a personal model. Before closing the page, you should use "Save As" or complete the first save on a blank model, and confirm that the page displays "Save Successfully."

After saving, return to Personal Center and search by name in Personal Models to confirm that the model has appeared. For a list of first saves and personal models, see Create, Open, and Save Models.

Export Model to Local​

Export Model File​

  1. Open the model to be exported.
  2. If the page displays "Not Saved", first determine whether to export the current modifications together; local export shall be based on the current canvas content.
  3. Click More in the top toolbar.
  4. Select Export to Local File.
  5. Select whether to include component definitions and global parameter definitions in the Export Study window.
  6. Click OK and wait for the browser to download the ZIP file.
Open local export from the More menu and select the definitions that need to be accompanied
Open local export from the More menu and select the definitions that need to be accompanied

The browser may save the file to the default download directory, or it may ask for the save location first. If a file with the same name already exists, the browser will usually automatically adjust the file name. It is recommended to change the name to a name that describes the model and date immediately after downloading, but keep the .zip extension.

Is It Accompanied by a Definition?​

The export window provides two options:

  • Export Component Definition: Put the icon, port and parameter definitions of the component in the current Workbench into ZIP.
  • Export Global Parameter Definitions: Put the global parameter structure of the current Workbench into ZIP.

How you choose depends on where the file is used:

Usage ScenariosSuggestions
Short-term backup and re-import in current platform only, same WorkbenchYou can only export the model content, but you should still try importing it once to confirm.
Hand it over to other users, and it is not sure whether the other party's Workbench definition is completely consistent.It is recommended to attach component definition and global parameter definition
Prepare to import to another deployment environmentIt is recommended to attach two types of definitions and check compatibility one by one after importing

Incidental definitions can reduce the situation where the model cannot be displayed due to missing definitions, but it does not guarantee that models in different platform environments will be computable. When the Workbench type, simulation capabilities, component semantics or parameter constraints change, manual verification and re-verification are still required.

Import only trusted files

The ZIP attached with the definition will affect the component and parameter display of the file in the current page. Only import model files from trusted sources and clear purposes; if you find any abnormality in the component library or parameter structure after importing, please stop saving and calculating, and re-enter the correct Workbench to check.

Confirm That the File Is Available​

Important models don't just confirm "Browser download completed". It is recommended to do at least one readback check:

  1. Keep the original model saved in the platform.
  2. Create a new blank model tab.
  3. Import the ZIP you just downloaded from Local File.
  4. Check sheets, components, connections, parameters and global settings.
  5. Complete model verification, but there is no need to overwrite and save the original model just to verify the file.

Local ZIP is not a version history feature of the platform and does not automatically record subsequent modifications. After important changes occur to the model, a new file needs to be re-exported, and the file name and save location must be managed by the user.

Save Current Model as a Copy​

"Save as" is suitable for copying the model within the platform. It is often used to create new work cases, retain the original model before making major adjustments, or save imported and shared models under your own name.

The steps are as follows:

  1. Open the model to be copied and confirm that the content to be copied is on the canvas.
  2. Click More in the top toolbar.
  3. Select Save As.
  4. Fill in the new model name and description. The name should reflect the purpose or working conditions to avoid confusion with the original model.
  5. Select Group and the visible range to create a new group directly here.
  6. Click OK and wait for the page to prompt "save successfully".
  7. Return to Personal Models in Personal Center and confirm that both the original model and the new model exist.

After the save is successful, the current page has been switched to the new model. Afterwards, clicking "Save" will update the new model and will not change the original model. The existing simulation jobs, job logs and calculation results of the model will not be copied as jobs of the new model.

Group selection and new entry are the same as first save. When you save your own model as, the original grouping will be used. When you save a model shared by others, the default grouping will be used by default.

Copy a Shared Model​

Organizational shared and public models are used for viewing and reuse, and the original model cannot usually be modified directly. When you need to continue modeling based on the shared model:

  1. Open the model from Model Marketplace in Personal Center, or Organizational Simulation or Simulation Square in Simulation Workbench.
  2. Start by reading the model name, description, and simulation type to make sure it is suitable for your current use.
  3. Use Save As to save the current content to your own personal model.
  4. After confirming that the page has been switched to the new model, modify the component, connection and parameters.

The save operation only creates a copy, and will not add you as a collaborator of the original model, nor will the author of the original model see your subsequent modifications. The visibility range of the new model is selected when you save; see Share Models and Collaborate if you want to continue sharing within your organization.

If the components used in the shared model are not available under your account, or the Workbench to which the model belongs is not within your authorization scope, saving as cannot bypass these restrictions. Please contact your administrator to confirm Workbench and organization permissions.

What to Check After Importing​

A successful import only means that the file can be read. The following three types of checks should be completed before saving or calculating.

Workbench Type​

Confirm that the current Workbench is consistent with the original simulation type of the model. For example, do not import a liquid pipe model into the Gas Network Workbench. Key points to check:

  • Is the Workbench name displayed on the page correct?
  • Whether the component library on the left contains the component types used in the model;
  • Whether the simulation method and calculation settings required by the model are provided in the global parameters.

If the types do not match, close the current page, enter the correct Workbench and import again. Do not force model type conversion by deleting abnormal components or manually modifying the ZIP.

Component Definition​

Check the component's icon, name, port, and parameter panels sheet by sheet:

  • Whether any components are not displayed, appear blank, or are replaced;
  • Whether the number, location and direction of ports are consistent with the original model;
  • Whether parameter grouping, units, default values and options are complete;
  • Whether the linear component still maintains the correct shape and connection relationship.

If you export without definitions, the import uses the definitions currently provided by the target Workbench. When the definitions on both sides are inconsistent, even if the component name is the same, the parameters and ports may be different. After discovering differences, you should confirm the export environment and Workbench configuration with the file provider. Do not judge compatibility based on the appearance of the interface.

Parameter and Topology Verification​

After checking the content, perform model validation and handle any issues that would prevent calculations:

  • Whether the required component parameters and global parameters have valid values;
  • Whether numerical ranges, units, and options still comply with current constraints;
  • Whether the ports between components are fully connected;
  • Whether the port type and connection direction are compatible;
  • Whether the multi-sheet pin names and logical connections still correspond;
  • Does the model have duplicate components, dangling connections, or unrecognized objects?

After the verification passes, create a test job to confirm that the kernel can read the model. Do not use models from different sources or whose definitions have changed directly for formal calculations. For parameters and topology processing methods, please refer to Configure Component and Global Parameters and Add Components and Build Model Topology.

Common Failures and Solutions​

PhenomenonPossible ReasonsTreatment Method
After selecting the file, it prompts that the import failed.The file is not a complete ZIP, the archive is damaged, or the internal model content cannot be readRe-obtain the original files generated by "Export to Local"; do not import the unzipped individual files
The canvas is empty after importingThere is no valid model content in the ZIP, or the file export is incompleteConfirm the source of the file with the provider, re-export it in the original environment, and read it back for inspection.
The component icon is missing or the parameter panel is abnormalThe current Workbench lacks the corresponding component definition, or the definition is different from the export environmentEnter the correct Workbench; if necessary, ask the provider to re-export with definitions, and then have the administrator confirm compatibility
The connection is disconnected or the verification fails.Port definitions, topology rules, or parameter constraints are differentRepair items one by one according to the verification prompts; stop calculation and confirm the source environment configuration when there are large differences.
Model not found in personal model after importThe file has only been loaded into the current page and has not been saved to the platform.Use "Save As" to create a personal model and wait for the "Save Successfully" prompt
Shared models cannot be edited or saved directlyCurrently open is a read-only modelUse "Save As" to create your own copy before editing
Save as failedThe name is empty, the login status is invalid, there is no required Workbench permission, or the network is abnormal.Read the page prompts and confirm your account and name; avoid losing the current content before refreshing, and contact the administrator if necessary
No file downloaded after clicking exportThe browser blocks the download, the download directory is unavailable, or there is insufficient disk spaceCheck the browser download prompts and download records, allow this download or change the writable save location
ZIP can be imported but calculation cannot be startedThe Workbench or simulation capabilities are incompatible, or there are still problems with model verificationCheck the Workbench type, re-check parameters and topology, and then create a test job

When encountering problems, please keep the original ZIP and do not modify the JSON or SVG files directly in the compressed package. It is usually easier to locate differences by explaining the source Workbench, export time, whether definitions are attached, the Workbench where it was imported, and the complete error message to the administrator or file provider.

Next Steps​