-
-
August 1, 2019 at 9:45 pm
Cosm0
SubscriberHi everyone,
I'm trying to use a udf to simulate a heat source all around the walls of a titanium drum (with water inside).
I attached an image of the CFX simulation showing the heat applied on the walls.
Now I want to do the same in fluent. So I'm using the udf define_source, in particular I want that the heat is applied only on the external walls (this means when the position is equal to the radius of the wall) and only in the middle of the wall (so when y=-0.04).
I attach here the udf define_source that I wrote, and that I then "interpret" in fluent (also becuase if I do compile somehow the fluent setup suddenly crashes and closes.
I'm not sure if x[0]=x and x[1]=y or if it is x[1]=x and x[2]=y, but I tried in both ways and anyway the result is wrong. The heat is not applied on the drum (so probably the if statement doesn't work).
Maybe I wrote the udf in the wrong way?
Thank you in advance for your help!
Cheers,
Paride
-
August 2, 2019 at 11:18 am
Rob
Ansys EmployeeA source is used to add stuff (energy in this case) to a volume (solid in this case). If you're trying to add heat to an external wall you'll need a DEFINE_PROFILE.
-
August 2, 2019 at 3:03 pm
Cosm0
SubscriberThanks rwoolhou for your answer.
In this case though I want to add energy in a volume close to the wall (W/m3), let's say 1cmx1cmxdrumperimeter.
In the simulation anyway the drum is turning at 63 rad/s, maybe the fact that is turning could be the cause of the wrong if statement?
Best,
P
-
August 2, 2019 at 3:43 pm
Rob
Ansys EmployeeRotation shouldn't matter, the source will apply to the cell zone.
-
- You must be logged in to reply to this topic.

Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.

Ansys Blog
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- Suppress Fluent to open with GUI while performing in journal file
- Floating point exception in Fluent
- What are the differences between CFX and Fluent?
- Heat transfer coefficient
- Getting graph and tabular data from result in workbench mechanical
- The solver failed with a non-zero exit code of : 2
- Difference between K-epsilon and K-omega Turbulence Model
- Time Step Size and Courant Number
- Mesh Interfaces in ANSYS FLUENT
- error in cfd post
-
2656
-
2120
-
1347
-
1118
-
461
© 2023 Copyright ANSYS, Inc. All rights reserved.