-
-
March 3, 2022 at 11:16 am
RezaKdr
SubscriberHello,
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.
March 3, 2022 at 11:36 amRob
Forum ModeratorIt 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?
March 3, 2022 at 12:33 pmRezaKdr
SubscriberI 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.
March 3, 2022 at 2:07 pmRob
Forum ModeratorUse a longer label to check "fi" and "qi" aren't a defined variable in Fluent.
March 3, 2022 at 3:12 pmRezaKdr
SubscriberI have changed the labels but still, I am getting the same error.
Error: chip-exec: function "Energy_source" not found.
March 3, 2022 at 3:27 pmRob
Forum ModeratorDoes the model run?
March 8, 2022 at 2:13 pmRezaKdr
SubscriberYes, 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.
March 8, 2022 at 2:18 pmRob
Forum ModeratorSet "fi" as a fixed value and see what happens.
March 8, 2022 at 2:24 pmRezaKdr
SubscriberThe same error repeated
March 9, 2022 at 3:57 pmRob
Forum ModeratorChange "qi" to be "qsomething" and see what happens. There are a few hard coded macros but no list.
March 9, 2022 at 5:10 pmRezaKdr
SubscriberI have changed it to "qChanged" and the same error was repeated.
March 9, 2022 at 5:14 pmRob
Forum ModeratorStill an error for qi or for qChanged? If it's the former there must be a setting that's got stuck in the solver.
March 9, 2022 at 5:49 pmRezaKdr
SubscriberThe same error is for qChanged.
March 10, 2022 at 2:34 pmRob
Forum ModeratorTo 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.
March 10, 2022 at 3:51 pmRezaKdr
SubscriberYes, that's correct.
I checked the units. Everything is fine.
November 4, 2022 at 10:14 amRezaKdr
SubscriberI 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- The topic ‘Fluent Error: chip-exec: function “qi” not found, using energy source term with expression.’ is closed to new replies.
Innovation SpaceTrending discussionsTop Contributors-
6545
-
1906
-
1463
-
1311
-
1022
Top Rated Tags© 2026 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-
Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.