Cubit 15.7 User Documentation
A mesh can be scaled and transformed to a new location as it is written to or read from an Exodus file. To transform a mesh during import or export use the following command:
Transform Mesh {Input|Output}
[Scale <xyz_factor>]
[Scale <x_factor> <y_factor> <z_factor>]]
[Scale {X|Y|Z} <factor>]
[Translate <dx> [<dy> [<dz>]]]
[Translate {X|Y|Z} <distance>]
[Rotate <degrees> about {X|Y|Z}]
[Reset]
This command may be repeated any number of times using any number of options. Transform commands are cumulative, added to the effect of previous transforms. If more than one transformation is entered in the same command, transformations are applied in the order they appear in the command.
To clear a transformation matrix, use the Reset option:
Transform Mesh {Input|Output} Reset
Mesh input and output transformations are also cleared when you reset the entire model using the Reset command.
Transforming a mesh during output does not change the position of the mesh within CUBIT. It only changes the nodal positions written to the Exodus file. Nodal positions may be changed within CUBIT by transforming the body that contains the mesh. See Geometry Transforms for information on how to apply transformations to a Body.
Transforming a mesh during input does change the position of the mesh with CUBIT. The file being read is not modified.
Transformations applied during mesh input are independent of transformations applied during mesh output.
The following example generates a simple mesh, writes the mesh with its coordinates scaled by a factor of 2, and then re-imports that mesh, restoring the scaling to what it originally was in CUBIT.
brick x 10
volume 1 interval 4
mesh vol 1
transform mesh output scale 2
export mesh 'temp.exo'
delete mesh
transform mesh input scale .5
import mesh 'temp.exo'
See Geometry Transforms for information on how to apply transformations to a Body.
See Nodeset and Nodeset Repositioning
See Importing a Mesh