Question: Hello, The written UDF attached below is supposed to be used in my project. I'm using Ansys Fluent which needs UDF to impose a desired

Hello,

The written UDF attached below is supposed to be used in my project. I'm using Ansys Fluent which needs UDF to impose a desired time-dependent function in BC's. I've imposed this UDF and it worked out, but the thing I miss is that my function has to have a specific time step that controls its shape. The desired time step that I need is (0:0.025:0.5). Also, the function is periodic so it is supposed to repeat itself back and forth.I suppose I should use (For ... Loop) to enhance such time step. Unfortunately, I'm not quite good at coding So I hope somebody can help me to rewrite the code with the desired time step mentioned previously.

Thanks in advance!!!Hello, The written UDF attached below is supposed to be used in

flowrate.c X include "udt.h" DEFINE-PROFILE rans 1encna53:10NTate, thread, position) begin Eloop If, threadi PROFILE fr thread, po8ition} -74690 *pow lc,9|-163940*pow, 8 } +1 49770"Dow (6,7)-74 1 36"pow(t, 6) +21756/p0,s)-3886.7kpoitr41+406.9"pow ,3}-20 , 769"pow (6,2)+0.3634 *t+0 ,0031965 ; 10 end-f-loop(L thread) 13 flowrate.c X include "udt.h" DEFINE-PROFILE rans 1encna53:10NTate, thread, position) begin Eloop If, threadi PROFILE fr thread, po8ition} -74690 *pow lc,9|-163940*pow, 8 } +1 49770"Dow (6,7)-74 1 36"pow(t, 6) +21756/p0,s)-3886.7kpoitr41+406.9"pow ,3}-20 , 769"pow (6,2)+0.3634 *t+0 ,0031965 ; 10 end-f-loop(L thread) 13

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!