Environment file syntax

The environment file for Abaqus uses Python syntax. See the Abaqus Scripting User's Guide for more detailed information on Python syntax.

Environment file entries have the following syntax:

parameter=value

All parameters must have a value. The following syntactic rules also apply:

  • All parameters are case sensitive.

  • A string value must be enclosed in a pair of double or single quotes.

  • Comments are preceded by a number sign (#). All characters following a number sign on a line are ignored. Number signs within a quoted string are part of the string, not the beginning of a comment.

  • Blank lines are ignored.

  • Lists must be enclosed in square brackets ([ ]). Individual items in the list are separated by commas. Entries take the form:

    parameter=[value1, value2, value3]
  • Tuples must be enclosed in parentheses (( )). Individual items in the tuple are separated by commas. If the tuple is enclosed in parentheses and contains only one value, a comma has to follow the value. Entries take the form:

    parameter=(value1, value2)
  • Embedded single quotes do not require special handling if they are placed within a double-quoted string. For example, "my value's" is translated as my value's. The same holds true for double quotes embedded in a single-quoted string. Quotes of the same type as the enclosing quotes can be embedded if they are prefixed by the backslash (\) character. Strings in a list or a tuple must be enclosed in quotes.

  • Triple-quoted (""") strings can span more than one line, and no special treatment of quotes within the string is necessary. Entries take the form:

    parameter="""
    multi-line
    value
    """

Examples of many of the environment file parameters are available in the sample abaqusinc.env file found in the solvers_install_dir/os/SMA/site/ subdirectory of the Abaqus/CAE installation. Care should be taken when merging customized abaqus_v6.env settings from an earlier release into the current release. Settings from the earlier release may not be compatible with the new release.