如何在Eclipse/Petrel模拟中移除或停止生成.unrst文件?
Great question—those .unrst files can definitely eat up storage fast, especially for large reservoir models. Let’s break down your two requests step by step:
The .unrst files are Eclipse’s unformatted restart files, created by default to support restarting simulations or running post-processing workflows. To disable their generation, you have two main options depending on how you set up your simulation:
Directly in Eclipse .DATA file:
Add theRESTARTkeyword with theNOUNRSTflag to your input deck. This tells Eclipse to skip creating unformatted restart files entirely. Here’s the syntax:RESTART NOUNRST / /Note: Be sure to place this in the correct section of your .DATA file (typically near other simulation control keywords).
Through Petrel’s simulation setup:
When configuring your Eclipse run in Petrel, navigate to the Restart tab in the simulation settings. Look for an option like "Generate unformatted restart files" or similar, and uncheck it. This will automatically add theNOUNRSTflag to the generated .DATA file for you.
Important caveat: Disabling .unrst files means you won’t be able to restart a partially completed simulation or use these files for certain post-processing tasks (like dynamic well analysis or history matching iterations). Only do this if you’re sure you won’t need this functionality later.
If you already have these files taking up space, here’s how to clean them up safely:
In Eclipse (standalone or Petrel-linked):
Simply navigate to your simulation’s working directory and delete the.unrstfiles manually. Just make sure the simulation isn’t currently running—deleting files while Eclipse is writing to them can cause crashes or corrupted results.Within Petrel:
- Project Tree method: Locate your simulation case in the Petrel Project Tree, expand the results folder, find the restart files (labeled with
.unrst), right-click them, and select Delete. - File Management tool: Open Petrel’s File Management window (under the Tools menu), filter for files with the
.unrstextension, select all the ones you want to remove, and click the delete button.
- Project Tree method: Locate your simulation case in the Petrel Project Tree, expand the results folder, find the restart files (labeled with
Command-line batch deletion:
For larger sets of files, you can use a command to delete all.unrstfiles in a directory:- On Windows Command Prompt:
del /s *.unrst - On Linux/macOS Terminal:
rm -rf *.unrst
Double-check the directory path before running these commands to avoid accidentally deleting important files.
- On Windows Command Prompt:
Pro tip: If you might need these files later but want to save space, consider compressing them (using tools like 7-Zip or tar) instead of deleting—they compress very well due to their binary format.
内容的提问来源于stack exchange,提问作者Rory

