def avres(self, key="", opt="", **kwargs):
    """Specifies how results data will be averaged when PowerGraphics is

    APDL Command: AVRES
    enabled.

    Parameters
    ----------
    key
        Averaging key.

        1 - Average results at all common subgrid locations.

        2 - Average results at all common subgrid locations except where material type
            [MAT] discontinuities exist. This option is the default.

        3 - Average results at all common subgrid locations except where real constant
            [REAL] discontinuities exist.

        4 - Average results at all common subgrid locations except where material type
            [MAT] or real constant [REAL] discontinuities exist.

    opt
        Option to determine how results data are averaged.

        (blank) - Average surface results data using only the exterior element faces (default).

        FULL - Average surface results data using the exterior face and interior element data.

    Notes
    -----
    The AVRES command specifies how results data will be averaged at
    subgrid locations that are common to 2 or more elements.  The command
    is valid only when PowerGraphics is enabled (via the /GRAPHICS,POWER
    command).

    With PowerGraphics active (/GRAPHICS,POWER), the averaging scheme for
    surface data with interior element data included (AVRES,,FULL) and
    multiple facets per edge (/EFACET,2 or /EFACET,4) will yield differing
    minimum and maximum contour values depending on the  Z-Buffering
    options (/TYPE,,6 or /TYPE,,7).  When the Section data is not included
    in the averaging schemes (/TYPE,,7), the resulting absolute value for
    the midside node is significantly smaller.

    PowerGraphics does not average your stresses across discontinuous
    surfaces. The normals for various planes and facets are compared to a
    tolerance to determine continuity. The ANGLE value you specify in the
    /EDGE command is the tolerance for classifying surfaces as continuous
    or "coplanar."

    The command affects nodal solution contour plots (PLNSOL), nodal
    solution printout (PRNSOL), and subgrid solution results accessed
    through the Query Results function (under General Postprocessing) in
    the GUI.

    The command has no effect on the nodal degree of freedom solution
    values (UX, UY, UZ, TEMP, etc.).

    For cyclic symmetry mode-superposition harmonic solutions, AVRES,,FULL
    is not supported. Additionally, averaging does not occur across
    discontinuous surfaces, and the ANGLE value on the /EDGE command has no
    effect.

    The command is also available in /SOLU.
    """
    command = f"AVRES,{key},{opt}"
    return self.run(command, **kwargs)