# FLUENTUDF+"TIME" VARIABLE NAME IN COUP+EXP SOLVER?

 Register Blogs Members List Search Today's Posts Mark Forums Read

 April 14, 2002, 11:45 FLUENTUDF+"TIME" VARIABLE NAME IN COUP+EXP SOLVER? #1 Taner Guest   Posts: n/a Dear Madam, Sir ; I need to find the name of the TIME variable that is used in the original C code of Fluent for unsteady coupled explicit solver.I 'll use it to write my own UDF which computes a time dependent inlet boundary velocity.I have to save the time values ,so that variable is critical. I've examined the udf tutorials and lots of messages in this group but couldn't find it. I'll be happy if anybody informs me about this subject. I'm looking forward to your messages, because the deadline for the project is on the first week of May. Thanks... Taner.

 April 14, 2002, 21:14 This is an example in Fluent user's guide ... #2 Johnix Guest   Posts: n/a My Web Site Title Hi, The following is a sample code: The C function (sinusoidal-v.c) that will be used to compute this velocity is shown below. #include "udf.h" DEFINE_PROFILE(inlet_xv_sinusoidal, thread, nv) { face_t f; real flow_time = RP_Get_Real("flow-time"); /*!!! Maybe this is what you want ... */ begin_f_loop (f,thread) { F_PROFILE(f,thread,nv) = 20. + 5.*sin(10.*flow_time); } end_f_loop (f,thread) } The function that is defined is named inlet_xv_sinusoidal. A floating point variable is created for the time, flow_time. Before you can compile this UDF, you must specify an unsteady flow calculation. Good Luck!

 April 15, 2002, 05:19 Re: This is an example in Fluent user's guide ... #3 Taner Guest   Posts: n/a Hi Johnix! Thank you for your interest, but I want to save the time values for Coupled Explicit solver. I've examined the tutorials before and tried to save them using "flow-time" variable but it didn't work out.I think that is something different for Coupled solver. Sincerely... Taner BALKAN Istanbul

 April 15, 2002, 09:16 Re: This is an example in Fluent user's guide ... #4 Johnix Guest   Posts: n/a Hi, Taner In my opinion, whether the time value is savable doesn't depend on what solver(ex/im) you choose. o you have to choose "Unsteady solver" o In Iterate dialogbox, set "Time step size", "Number of time step" and "Max Iterations per time step" correctly ... I tyied, and it worked well, suppose I have understood your question...

 April 16, 2002, 04:58 Re: This is an example in Fluent user's guide ... #5 Taner Guest   Posts: n/a Dear Johnix ! In some udf tutorials time variable is written as "flow_time". After I have examined your first message again, I became aware of where the problem is. "flow-time" is the right usage Thank you for your interest again... Sincerely Taner

 Thread Tools Display Modes Linear Mode

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts BB code is On Smilies are On [IMG] code is On HTML code is OffTrackbacks are On Pingbacks are On Refbacks are On Forum Rules

 Similar Threads Thread Thread Starter Forum Replies Last Post Tuks CFX 4 July 11, 2005 05:49 youngan CFX 0 July 1, 2003 23:32 lego CFX 3 November 5, 2002 21:09 Roued CFX 1 October 2, 2001 16:49 tokai CFX 10 July 17, 2001 16:25

All times are GMT -4. The time now is 23:57.