3.1. Using the CDWRITE Command

To export a model from the ANSYS program to another application, use menu path Main Menu> Preprocessor> Archive Model> Write or the CDWRITE command within the general preprocessor, PREP7. This produces a coded database file called Jobname.cdb. You specify the jobname using Utility Menu> File> Change Jobname or the /FILNAME command. If you supply no jobname, the ANSYS program uses the default name "file".

The Jobname.cdb file contains selected geometry (nodes and elements), load items, and other model data in terms of ANSYS input commands. (For a complete list of data in the file, see the CDWRITE description in the Command Reference.) You can convert this information to a format compatible with the program into which you are importing it. The next few pages describe special considerations and commands you may need to do this conversion.


Note:  Files created by the CDWRITE command have the active coordinate system set to Cartesian (CSYS, 0).

ANSYS may create parameters in the CDWRITE file that start with an underscore (_), usually an “_z.” Such parameters are for ANSYS internal use and pass information to the ANSYS GUI.


3.1.1. Customizing Degree of Freedom Labels: the /DFLAB Command

The ANSYS program uses a set of default labels for the degrees of freedom. You use these labels when entering boundary conditions, or ANSYS uses the labels when writing the Jobname.cdb file.

You can change the labels to reflect the degrees of freedom of the other program by issuing the command /DFLAB. If you are customizing the DOF labels, /DFLAB must be the first command you enter within the ANSYS program. You may want to include the command in your START.ANSfile. You can use /DFLAB only at the Begin processing level.

/DFLAB assigns or reassigns the "displacement" and "force" labels in the ANSYS DOF list. For example, degree of number 1 is predefined to have a displacement label of UX and a force label of FX, but you can assign new labels to this DOF using by issuing /DFLAB. Changing predefined labels generates a warning message.

The format for the /DFLAB command is:

/DFLAB,NDOF,LabD,LabF
NDOF

ANSYS degree of freedom number (1 to 32)

LabD

Displacement degree of freedom label to be assigned (up to four characters)

LabF

Force label to be assigned (up to four characters)

You can also use /DFLAB to assign labels to spare degree of freedom numbers. Spare displacement and force labels are from 13 to 18 and from 27 to 32. All other DOF numbers are predefined, as follows:

DOF NumberCorresponding Displacement LabelCorresponding Force Label
1UXFX
2UYFY
3UZFZ
4ROTXMX
5ROTYMY
6ROTZMZ
7AXCSGX
8AYCSGY
9AZCSGZ
10VXVFX
11VYVFY
12VZVFZ
19PRESFLOW
20TEMPHEAT
21VOLTAMPS
22MAGFLUX
23ENKENPKE
24ENDSNPDS
25EMFCURT

Release 18.2 - © ANSYS, Inc. All rights reserved.