Fluids

Fluids

Fluent Error: chip-exec: function “qi” not found, using energy source term with expression.

    • RezaKdr
      Subscriber

      Hello,

      I am modelling force convection heat transfer in a channel using energy and momentum source terms (qi and fi, respectively). I defined the source term using the Expressions option in Fluent 2020R2. The flow is turbulent and the turbulent model is realisable k-epsilon with enhanced wall function. I have no problem with the momentum source term but when I activate the energy source term the following error will appear:

      Fluent Error: chip-exec: function "qi" not found

      the energy source term is the momentum source term* x-velocity, as

      Velocity.x*fi

      I tried different scenarios, such as testing other turbulent models, considering other sorts of energy source terms such as a constant number; however, I got the same error. I also tried the series and parallel simulations, and also different solution methods (SIMPLE and Coupled), but still getting the same error.

      I would appreciate it if you help me with this issue.

    • Rob
      Ansys Employee
      It usually means a value that is being used is either not defined or not present in the model. With UDFs it's occasionally caused by model changes removing a required field (eg a turbulent setting from a UDF is removed by switching to laminar) and the UDF then being unloaded: the solver still looks for the UDF but doesn't actually need the value.
      How are "qi" and "fi" defined?
    • RezaKdr
      Subscriber
      I used expressions to define them, I didn't use UDF.
      "fi" is defined as:
      -0.25*Density*exp(- (y^2)/2)*Velocity.x*abs(Velocity.x)
      and "qi" is defined as:
      Velocity.x*fi
      The issue is that even if I define a constant number, say 2 W/m^3, in expression and use it as a heat source, I will get the same error.
    • Rob
      Ansys Employee
      Use a longer label to check "fi" and "qi" aren't a defined variable in Fluent.
    • RezaKdr
      Subscriber
      I have changed the labels but still, I am getting the same error.
      Error: chip-exec: function "Energy_source" not found.
    • Rob
      Ansys Employee
      Does the model run?
    • RezaKdr
      Subscriber
      Yes, it is working okay with the momentum source term. However, when I activate the energy source term, the model runs but with error. It runs without taking the source term into account.
    • Rob
      Ansys Employee
      Set "fi" as a fixed value and see what happens.
    • RezaKdr
      Subscriber
      The same error repeated
    • Rob
      Ansys Employee
      Change "qi" to be "qsomething" and see what happens. There are a few hard coded macros but no list.
    • RezaKdr
      Subscriber
      I have changed it to "qChanged" and the same error was repeated.
    • Rob
      Ansys Employee
      Still an error for qi or for qChanged? If it's the former there must be a setting that's got stuck in the solver.
    • RezaKdr
      Subscriber
      The same error is for qChanged.
    • Rob
      Ansys Employee
      To check:
      fi = momentum source
      qi = energy source
      Did you check the units? Expressions need units, unlike UDFs which assume the values going into and leaving the UDF are SI and correspond to whatever you're using them for.

    • RezaKdr
      Subscriber
      Yes, that's correct.
      I checked the units. Everything is fine.
    • RezaKdr
      Subscriber

      I finally found the reason for that error. This error appears when a heat source defined in the "named expressions" is used with a periodic boundary condition. The error disappeared when I switched from periodic boundary conditions to velocity inlet and pressure outlet.  No issue was found when the heat source is plugged in using UDF.  

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