General Mechanical

General Mechanical

Topics related to Mechanical Enterprise, Motion, Additive Print and more.

code error

    • İlker
      Subscriber
      /PREP7
       
      ! Custom parameters for Paint
      ! Custom property definitions
      *SET, RI_Paint, 1.0     ! Refractive Index (not typically used in thermal analysis)
      *SET, AC_Paint, 8.9E4   ! Absorption Coefficient
       
      ! Custom parameters for Resin
      ! Custom property definitions
      *SET, RI_Resin, 1.0     ! Refractive Index (not typically used in thermal analysis)
      *SET, AC_Resin, 0.751   ! Absorption Coefficient
       
      ! Custom parameters for Carbon Fiber
      ! Custom property definitions
      *SET, RI_CF_Parallel, 2.05 + 0.7i   ! Refractive Index parallel (complex value)
      *SET, RI_CF_Perpendicular, 3.1 + 2.1i ! Refractive Index perpendicular (complex value)
       
      /FINISH
       

      *** ERROR ***                           CP =      16.219   TIME= 12:01:52
       The above error occurred processing field= 2.05+0.7I                   
        Line= *SET, RI_CF_Parallel, (2.05 + 0.7i).                            

       

      how to fix this error

    • danielshaw
      Ansys Employee

      You cannot define a MAPDL parameter as a complex number.

Viewing 1 reply thread
  • The topic ‘code error’ is closed to new replies.