ANSYS environment
Previewing ANSYS solver syntax
You can use the Solver Syntax Preview command or click the Preview Solution Setup button in the Solution dialog box to preview how a selected entity will be written out to your ANSYS input file. The software displays the syntax preview in an Information window.
Note:
For performance reasons, the software previews only the first 5000 lines of syntax. You can increase or decrease this limit using the Maximum Number of Output Lines for a Solver Syntax Preview customer default.
You can use the Solver Syntax Preview command to validate that you have set up your model correctly prior to a solve.
Previewing solver syntax in the FEM file
When a FEM is the work and displayed part, you can use the Solver Syntax Preview capability to preview the ANSYS syntax for selected entities. This command is available in the Simulation Navigator and in several dialog boxes.
Use the Solver Syntax Preview command in Simulation Navigator to preview the syntax for:
Meshes
Materials
Physical properties
Coordinate systems
Groups
Modeling objects
To preview the syntax for nodes, select one or more elements and use the Node/Element Information command to display a list of the nodes connected to each element.
Note:
You must select the General Listing format option in the Node/Element Information dialog box to view a list of the nodes.
To preview the syntax for physical properties, materials, and modeling objects, use the Solver Syntax Preview option in the Physical Properties Table Manager, Manage Materials, and Modeling Objects Manager dialog boxes.
Previewing solver syntax in the Simulation file
When a Simulation file is the work and displayed part, within the active solution or subcase, you can use the Solver Syntax Preview command in the Simulation Navigator to preview the syntax for the following types of entities within the active solution or subcase:
Loads
Constraints
Simulation objects
Simulation regions
Groups
Modeling objects
Formatting options and solver version affect the previewed information
The output produced by the Solver Syntax Preview command depends on:
The specified solver version as defined by the UGII_ANSYS_VERSION environment variables. The software only previews solver syntax that is supported in the specified ANSYS version.
The specified input file formatting options that you specify in either the Export Simulation dialog box (when a FEM file is active) or in the Advanced Solver Options dialog box (when a Simulation file is active).Note: The software writes out the card description information for either the first occurrence of each bulk data entry or command or for all occurrences of the bulk data entries and commands. If you select None from the Card Description list, the software still writes out the card description information for the first occurrence of each entry or command.
Implementation details
This software generates a preview only of the ANSYS syntax related to the entity that you select. This means that the previewed syntax is based on a small subset of your FEM or Simulation file. In some cases, the previewed ANSYS syntax will differ from the actual ANSYS syntax that this software generates when you export or solve an entire solution.
When you preview the syntax of certain types of entities, the previewed IDs may be different from the IDs that this software later exports. This difference can occur because IDs need to be consistent and unique across the entire ANSYS input file and also because ANSYS has requirements for certain types of IDs, In ANSYS, all coordinate system IDs must be greater than 10. Differences in the previewed IDs can occur, for example, when you preview:Physical property tables, which include real constant data and SECDATA.Modeling objects, such as contact elements.Elements, including the referenced IDs for element coordinate systems (ESYS), for example.To avoid seeing differences in previewed ID values, you can use the Preview Input File button in the Solution dialog box to preview the entire input file. When you click Preview Input File, you can preview the entire ANSYS input file, although only a few entities appear for each ANSYS command for performance reasons.
When you preview the syntax of simulation regions, the syntax depends on the option that you selected from the Use ESURF list in the Region dialog box when you created the region.If you selected Yes, the software also previews the related CMBLOCK commands. The CMBLOCK commands list the nodes that comprise the contact or target surfaces that are defined in ANSYS with the ESURF command. If you selected No, the software creates the ANSYS contact elements in your ANSYS input file when you export or solve your model. The software uses the CMBLOCK command to write out the group of nodes that define the region. When you preview a region that was created using the No option, the software includes the syntax for the related CMBLOCK commands. However, because this option creates the target (or contact) elements only when you export or solve, those elements are not included in the syntax preview.
When you preview a Bolt Pre-Load, the software also includes a preview of the associated SECDATA commands.
When you preview a Pressure load that was defined using the Components type, the software also include a preview of the associated SURF154 elements.
When you preview the syntax of selected meshes, the software previews only the coordinate systems (including any coordinate systems that may be exported as material orientation vectors), element tables, real constants or SECDATA, nodes, and elements that are related to the selected mesh. The previewed elements point to the IDs of element tables, real constants or SECDATA, and coordinate systems. These previewed IDs may differ from the IDs that the software generates in the ANSYS input file when you export or solve the solution.
Where do I find it?
Solver Syntax Preview command
| Application | Pre/Post |
|---|---|
| Prerequisite | A FEM or Simulation file as the displayed part and work part, and ANSYS as the specified solver |
| Simulation Navigator | Right-click the appropriate object→Solver Syntax Preview |
Maximum Number of Output Lines for a Solver Syntax Preview customer default
| Menu | File→Utilities→Customer Defaults |
|---|---|
| Location in dialog box | Simulation→Pre/Post→General→Environment tab |
How do I
Create an ANSYS KEYOPT table
Learn more
ANSYS environment
Modeling cohesive zones with ANSYS interface elements
Specifying user defined KEYOPTs for ANSYS
Requesting output for ANSYS analyses
Customizing ANSYS input files with user defined text
Look up more details
Using ANSYS high performance computing options
ANSYS boundary conditions
Previewing ANSYS solver syntax, Simcenter 3D 2021.1 Series
© 2020 Siemens
window.mainLanguage="en_US"
window.delivId=""
window.projectId=""
MathJax.Hub.Config({ TeX: { extensions: ["autoload-all.js"] }, tex2jax: { displayMath: [ ] }, "SVG": { scale: 125 } });
Source: https://docs.sw.siemens.com/en-US/doc/289054037/PL20200601120302950.advanced/xid667692 · retrieved 2026-07-17