August 3, 2023 at 10:20 am
Atharva Nagarkar
Ansys Employee
Hello
The temperature can be set by specifying the appropriate energy source. For the energy equation, add a source that is to be calculated from the mass source, the heat capacity (Cp) and the desired temperature. If no adjustment to the energy equation is made, the species sources are treated as entering at T_ref = 298.15 K. Here is the link from the Ansys manual on how to add a source term in a UDF.Â
2.3. Model-Specific DEFINE Macros (ansys.com) - Check section 2.3.43
Note that you should add momentum sources unless the mass that enters is at rest.
If you are not able to access the link, please refer to this forum discussion: Using Help with links (ansys.com)
Thanks!