Cubit 16.14 User Documentation
There are currently two ways to save/restore a model in CUBIT. A file can be saved with either the Exodus or CUBIT File method. The method of choice is determined by a set command. The CUBIT method is the default.
The CUBIT file is a binary cross-platform compatible file for the storage of a Cubit model that is compact in size and efficient to access. It includes both the geometry and the associated mesh, groups, blocks, sidesets, and nodesets. Mesh and geometry are restored from the Cubit file in exactly the same state as when saved. For example, element faces and edges are persistent, as well as mesh and geometry ids. The Graphical User Interface version of CUBIT also provides a toolbar with direct access to file operations using the CUBIT File method described here.
New
Creates a new blank model with default name, closing the current model. The New command essentially acts like the reset command.
Open '<filename>'
Opens an existing *.cub file, closing the current model.
Save
A default file name is assigned when CUBIT is started (in very much the same way the journal files are assigned on startup) in the form cubit01.cub, for example. The current model filename is displayed on the title bar of the CUBIT window. Typing save at any time during your session will save the current model to the assigned *.cub file. The *.cub file includes the *.sat file and the mesh. Groups, blocks, sidesets and nodesets are also saved within the *.cub file. To change the name of the current model, or to save the model's current geometry to a different file, use the save as command. Note that 'save <file.cub>' is NOT a valid command.
Save
Save As 'filename.cub' [Overwrite]
The set file overwrite command can be toggled on and off to allow overwriting when using the save as command. The command is defaulted to not allow overwriting.
Set File Overwrite [On|OFF]
A backup file is created by default, allowing access to previous states of the model. The backup files are named *.cub.1, *.cub.2... The user can set the total number of backups created per model with the following command (the default number of backups is 99,999):
Set Save Backups <number>
As soon as the number of model backups reaches the maximum, the lowest numbered backup file will be removed upon subsequent backup creation.
To check on the status of a 'set' command, type in the command in question without any options. For example, to check which save method is currently toggled, type:
Set Save
Import
Appends a *.cub file to an existing model.
Import Cubit 'filename.cub' [merge_globally]
Export
In addition to saving an entire model, one can use the export command to save only a portion of a model. The geometry and associated mesh, groups, blocks, sidesets and nodesets are exported. Only bodies or free surfaces, curves or vertices can be exported to a Cubit file.
Export Cubit 'filename.cub' entity-list