CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   UDF Outputs dont match exactly for volumetric heat generation. (https://www.cfd-online.com/Forums/fluent-udf/164738-udf-outputs-dont-match-exactly-volumetric-heat-generation.html)

nvarma December 31, 2015 10:19

UDF Outputs dont match exactly for volumetric heat generation.
 
I checked and crosschecked and backcalculated and everything.

I have a volumetric heat generation rate set as a function of coordinates. If I manually calculate the numbers (which I have set in the udf) I get say 10kW exact. But when it comes to udf, the total volume integral is only 9500W.

The contour plot makes sense. Heat balance is exact. But the 500W difference?

Anybody?

`e` January 2, 2016 17:38

Are you calculating heat generation at the nodes or cell centres? What is the UDF you are using to calculate the volume integral?

nvarma May 23, 2016 08:55

Based on cell centres.

I have come to the conclusive assumption that this is the discretization error from the mesh?

`e` May 23, 2016 17:41

The mesh would need to be quite coarse to be missing 5 % of the heat generation (try mesh refinement). What is the UDF you are using, are you sure it's calculating across the full volume?


All times are GMT -4. The time now is 22:59.