Fluids

Fluids

error: expression is not assignable Ansys Fluent DPM

    • pavankonchada123
      Subscriber
      C_DPMS_YI(c,t,0) += mp_dot*dpm_relax;
      When trying to implement define_dpm_switch udf in ansys fluent above line is throwing an erro
      It is showing error: expression is not assignable.
      Please can you help me in rectifying it
       
    • Rob
      Ansys Employee

       

      That’s the macro for species mass source from the DPM parcel. How are you planning on altering it? You may be able to augment it using a UDF. Don’t forget to remove more DPM mass if you do!

      https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v222/en/flu_udf/flu_udf_DataAccessMacros.html%23flu_udf_ApplicationMacros

       

    • pavankonchada123
      Subscriber

      It is the same udf what is present in udf manual I am trying to implement.

      The below mentioned lines are working without throwing any error

        C_DPMS_ENERGY(c,t) -= mp_dot*dpm_relax*MATERIAL_PROP(sp,PROP_Cp)*(C_T(c,t)-298.15);
         C_DPMS_ENERGY(c,t) -= mp_dot*dpm_relax*MATERIAL_PROP(sp,PROP_latent_heat);
      And I dont understand why C_DPMS_YI(c,t,0) += mp_dot*dpm_relax; is stating not assignable
    • Rob
      Ansys Employee

      OK, I assume species are turned on? 

    • pavankonchada123
      Subscriber

      Yes ofcourse and vapor has index 0

    • Rob
      Ansys Employee

      Read to the bottom of the table on the link I sent - search for C_DPMS_YI on the page & then scroll down for the "Note". 

Viewing 5 reply threads
  • You must be logged in to reply to this topic.