3.1. Using the CDWRITE Command

To export a model from Mechanical APDL 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, Mechanical APDL uses the default name "file".

The Jobname.cdb file contains selected geometry (nodes and elements), load items, and other model data in terms of Mechanical APDL 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).

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


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

Mechanical APDL uses a set of default labels for the degrees of freedom. You use these labels when entering boundary conditions, or Mechanical APDL 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 degree-of-freedom labels, /DFLAB must be the first command you enter within Mechanical APDL. You may want to include the command in your START.ANS file. You can use /DFLAB only at the Begin processing level.

/DFLAB assigns or reassigns the "displacement" and "force" labels in the Mechanical APDL degree-of-freedom list. For example, DOF 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 degree of freedom by issuing /DFLAB. Changing predefined labels generates a warning message.

The format for the /DFLAB command is:

/DFLAB,NDOF,LabD,LabF
NDOF

Mechanical APDL 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 27 to 32. All other degree-of-freedom numbers are predefined, as follows:

DOF NumberCorresponding Displacement LabelCorresponding Force Label
1UXFX
2UYFY
3UZFZ
4ROTXMX
5ROTYMY
6ROTZMZ
7AXCSGX
8AYCSGY
9AZCSGZ
10VXVFX
11VYVFY
12VZVFZ
13GFV1GFL1
14GFV2GFL2
15GFV3PFFL
16WARPBMOM
17CONCRATE
18HDSPDVOL
19PRESFLOW
20TEMPHEAT
21VOLTAMPS
22MAGFLUX
23ENKENPKE
24ENDSNPDS
25EMFCURT
26CURRVLTG