CDWRITE
CDWRITE, Option
,
Fname
, Ext
, --
, Fnamei
, Exti
,
Fmat
, --
,
Key
Writes geometry and load database items to a file.
Option
Selects which data to write:
ALL
—
Write all appropriate geometry, material property, load, and component data (default). Two files will be produced.
Fname.Ext
will contain all data items mentioned in "Notes", except the solid model data.Fnamei.Exti
will contain the solid model geometry and solid model loads data in the form of IGES commands. This option is not valid when CDOPT,ANF is active.COMB
—
Write all data mentioned, but to a single file,
Fname.Ext
. Solid model geometry data will be written in either IGES or ANF format as specified in the CDOPT command, followed by the remainder of the data in the form of Mechanical APDL commands. More information on these (IGES/ANF) file formats is provided in "Notes".DB
—
Write all database information except the solid model and solid model loads to
Fname.Ext
in the form of Mechanical APDL commands. This option is not valid when CDOPT,ANF is active.SOLID
—
Write only the solid model geometry and solid model load data. This output will be in IGES or ANF format, as specified in the CDOPT command. More information on these (IGES/ANF) file formats is provided in "Notes".
GEOM
—
Write only element and nodal geometry data. Neither solid model geometry nor element attribute data will be written. One file,
Fname.Ext
, will be produced. Use CDREAD,DB to read in a file written with this option. Element types (ET) compatible with the connectivity of the elements on the file must first be defined before reading the file in with CDREAD,DB.CM
—
Write only node and element component and geometry data to
Fname.Ext
.MAT
—
Write only material property data (both linear and nonlinear) to
Fname.Ext
.LOAD
—
Write only loads for current load step to
Fname.Ext
.SECT
—
Write only section data to
Fname.Ext
. Pretension sections are not included.Fname
File name and directory path (248 characters maximum, including the characters needed for the directory path). An unspecified directory path defaults to the working directory; in this case, you can use all 248 characters for the file name.
Ext
Filename extension (eight-character maximum).
The extension defaults to CDB if
Fname
is blank.--
Unused field.
Fnamei
Name of the IGES file and its directory path (248 characters maximum, including directory). If you do not specify a directory path, it will default to your working directory and you can use all 248 characters for the file name.
The file name defaults to
Fname
. Used only ifOption
= ALL or SOLID. Previous data on this file, if any, is overwritten.Exti
Filename extension (eight-character maximum).
The extension defaults to IGES in all cases, except when CDOPT,ANF is active and CDWRITE,
Option
= SOLID. In this caseExti
= ANF.Fmat
Format of the output file (defaults to BLOCKED).
BLOCKED
—
Blocked format. This format allows faster reading of the output file. The time savings is most significant when BLOCKED is used to read .cdb files associated with very large models.
UNBLOCKED
—
Unblocked format.
BINARY
—
Binary format. This format writes the nodes and elements into a binary file when applicable, which reduces the size of .cdb files. Otherwise, the blocked format is used.
--
Unused field.
Key
Format key required for Multistage workflow in Workbench.
DUPL
—
Ensures the correct numbering offsets are applied when writing a .cdb file for automatic sector mesh duplication.
Notes
Load data includes the current load step only. Loads applied to the solid model (if any) are automatically transferred to the finite element model when this command is issued. CDWRITE writes out solid model loads for meshed models only. If the model is not meshed, the solid model loads cannot be saved. Component data include component definitions, but not assembly definitions. Appropriate NUMOFF commands are included at the beginning of the file; this is to avoid overlap of an existing database when the file is read in.
Solution control commands are typically not written to the file unless you specifically change a default solution setting.
CDWRITE does not support the GSBDATA and GSGDATA commands, and these commands are not written to the file.
The data may be reread (on a different machine, for example) with the CDREAD command. Caution: When the file is read in, the NUMOFF,MAT command may cause a mismatch between material definitions and material numbers referenced by certain loads and element real constants. See NUMOFF for details. Also, be aware that the files created by the CDWRITE command explicitly set the active coordinate system to Cartesian (CSYS,0).
You should generally use the blocked format (Fmat
= BLOCKED) when
writing out model data with CDWRITE. This is a compressed data format
that greatly reduces the time required to read large models through the
CDREAD command. The blocked and unblocked formats are described
in The CDWRITE (CDB) File Format in the Programmer's Reference.
If you use CDWRITE in any of the derived products (Ansys Mechanical Pro, Ansys Mechanical Premium), then before reading the file, you must edit the Jobname.cdb file to remove commands that are not available in the respective component product.
The CDWRITE command does not support (for beam meshing) any line operation that relies on solid model associativity. For example, meshing the areas adjacent to the meshed line, plotting the line that contains the orientation nodes, or clearing the mesh from the line that contains orientation nodes may not work as expected. For more information about beam meshing, see Meshing Your Solid Model in the Modeling and Meshing Guide.
If you issue CDWRITE to write a .cdb file containing a user-defined element, manually insert USRELEM and USRDOF commands in the .cdb file to provide the user-defined element characteristics. Insert the two commands after the ET command (defining the user-defined element) and before the EBLOCK command. (If multiple element types are defined in the .cdb file, insert the TYPE command to select the user-defined element. Place it before USRELEM and USRDOF.)
If radiosity surface elements (SURF251 or
SURF252) are present in the model, a radiosity mapping data file,
Fname
.RSM, is also saved when the
CDWRITE command is issued. For more information, see Advanced Radiosity Options in the Thermal Analysis Guide.
IGES and ANF File Formats for Solid Model Geometry Information
The format used for solid model geometry information is determined by the current CDOPT command setting. The default format is IGES.
IGES option (default) to write solid model information (CDOPT, IGS):
Before writing solid model entities, select all corresponding lower level entities (ALLSEL,BELOW,ALL).
Section properties assigned to areas, lines and other solid model entities are not maintained when the model is exported.
If you issue CDWRITE after generating a beam mesh with orientation nodes, the database file will contain all of the nodes for every beam element, including the orientation nodes; however, the orientation keypoints that were specified for the line (LATT) are no longer associated with the line and won't be written out to the geometry file. All associativity between the line and the orientation keypoints is lost.
For beam meshing, this option does not support any line operation that relies on solid model associativity. For example, meshing the areas adjacent to the meshed line, plotting the line that contains the orientation nodes, or clearing the mesh from the line that contains orientation nodes may not work as expected.
Concatenated lines are not written. The line segments that make up the concatenated lines are written; however, if the command encounters an area that contains a concatenated line, the write operation halts (that area cannot be recreated during the read operation). If your model has areas that contain concatenated lines, you must first list these and then unconcatenate them before issuing the CDWRITE command. Similarly, hardpoint information cannot be written.
ANF option to write solid model information (CDOPT, ANF):
Writes all model information in the database (regardless of select status) to the archive file; however, when you restore the database using this archived file, the select status of entities is also restored.
Restores all line attributes, including orientation keypoints. It also writes out any components (not assemblies) that consist of solid model entities.
Halts CDWRITE when a concatenated line or an area that contains a concatenated line is detected. You must delete the concatenated lines before issuing CDWRITE. Similarly, hardpoint information cannot be written.
This command is also valid in SOLUTION.