-
-
January 25, 2019 at 7:49 am
swathi
SubscriberI wanted to increase the rotation of my cylinder as a function of time. how can I write a UDF for the same.Â
-
January 25, 2019 at 9:57 am
Rob
Forum ModeratorIf it's a boundary setting (moving wall) or cell zone (rotating fluid) then use a DEFINE_PROFILE. There are a few examples on here, and quite a good on in the manual.Â
-
January 26, 2019 at 1:14 pm
swathi
SubscriberThank you, Sir.
I wrote one UDF as you said but I failed to hook it for rotation velocity(cell zone condition). some kind of error is popping up like." cortex received a fatal signal (unrecognized signal)". I am attaching the UDF that I have used. Please suggest me if there is any error in this code.
-
January 28, 2019 at 5:36 pm
Rob
Forum ModeratorYou've set vo & rampr as REAL and given them an integer value - this can cause problems. Otherwise you'll need to check the model works without the UDF and then work from there.Â
-
January 29, 2019 at 10:35 am
swathi
Subscriberwhen I am running a steady simulation by hooking the same above mentioned code by not considering rampr*flow_time term in the expression, i am getting the solution. but when coming to the unsteady simulation. the code is not working properly. some kind of cortex error is coming.
-
January 29, 2019 at 11:50 am
swathi
SubscriberI think there is some problem with getting flow time or in the expression written. Can you please give me some suggestions.Â
-
January 29, 2019 at 1:23 pm
Rob
Forum ModeratorTry changing the flow_time variable to t  That's what I use in my UDFs: shouldn't make a difference but there are some characters that don't work well with the compilers.Â
-
January 29, 2019 at 2:13 pm
swathi
SubscriberThank you, sir. But still, it's not working and I am not compiling UDF rather I am interpreting it. will that make a difference?
-
January 29, 2019 at 3:45 pm
Rob
Forum ModeratorShouldn't do for a DEFINE_PROFILE macro.Â
Remember that flow time is measured in seconds: depending on your timestep the rotation speed could get very high very quickly.Â
-
- The topic ‘how to write a UDF in ansys Fluent’ is closed to new replies.
-
4683
-
1565
-
1386
-
1242
-
1021
© 2025 Copyright ANSYS, Inc. All rights reserved.
