TAGGED: fluent, heat-source, udf-fluent
-
-
December 23, 2020 at 3:13 pm
ham
SubscriberHello,
I am essentially trying to make a simple model of a hot wire inside a fluid domain, I'm starting with very simple geometry (pic below). I'm only interested in the heating from the wire, so my first thought was to use a UDF to define an energy source in a region in the fluid zone. However, this doesn't seem to work. I am new to UDF's so most likely my code is wrong (attached below).
Is there a better way to go about the problem?
#include "udf.h" DEFINE_SOURCE(sourceterm,c,t,dS,eqn) { real x[ND_ND]; real source; C_CENTROID(x,c,t); if(x[0]>=5 && x[0]<=10 && x[1]>=0 && x[1]<=12) { source=50000; } else { source=0; } return source; }
December 28, 2020 at 12:57 pmKarthik Remella
AdministratorHello,nWhat issue do you get when you compile this UDF? Can you share the error message here?nAlso, why don't you use the Fluent Expressions directly here? Here is a link that might help you with the expression. Please go through this chapter in the Users Guide.nThank you.nKarthiknnViewing 1 reply thread- The topic ‘Applying a heat source inside a fluid domain’ is closed to new replies.
Ansys Innovation SpaceTrending discussions- air flow in and out of computer case
- Varying Bond model parameters to mimic soil particle cohesion/stiction
- Eroded Mass due to Erosion of Soil Particles by Fluids
- Centrifugal Fan Analysis for Determination of Characteristic Curve
- Guidance needed for Conjugate Heat Transfer Analysis for a 3s3p Li-ion Battery
- I am doing a corona simulation. But particles are not spreading.
- Issue to compile a UDF in ANSYS Fluent
- JACOBI Convergence Issue in ANSYS AQWA
- affinity not set
- Resuming SAG Mill Simulation with New Particle Batch in Rocky
Top Contributors-
3912
-
1414
-
1256
-
1118
-
1015
Top Rated Tags© 2025 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.
-
The Ansys Learning Forum is a public forum. You are prohibited from providing (i) information that is confidential to You, your employer, or any third party, (ii) Personal Data or individually identifiable health information, (iii) any information that is U.S. Government Classified, Controlled Unclassified Information, International Traffic in Arms Regulators (ITAR) or Export Administration Regulators (EAR) controlled or otherwise have been determined by the United States Government or by a foreign government to require protection against unauthorized disclosure for reasons of national security, or (iv) topics or information restricted by the People's Republic of China data protection and privacy laws.