CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > FLUENT

Help -----------udf

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 9, 2006, 08:58
Default Help -----------udf
  #1
mech
Guest
 
Posts: n/a
Hi Is it possible to use two UDFs consecutively in the same simulation? If possible, how? Thanks Mech
  Reply With Quote

Old   June 9, 2006, 10:25
Default Re: Help -----------udf
  #2
Tom
Guest
 
Posts: n/a
As long as the UDFs are affecting different things, like a DEFINE_PROFILE and a DEFINE_SOURCE, or defining different sources, like an x-moment source or y-moment source, they can be used simultaneously.

If you want to have two things affecting, say, x-momementum at the same time, your best bet is to merge the UDFs together.

Hope this helps, Tom
  Reply With Quote

Old   June 10, 2006, 00:39
Default Re: Help -----------udf
  #3
mech
Guest
 
Posts: n/a
Tom Thank you for you response. I am working with microflow. First I simulate flow with noslip condition. After converging I impose slip boundary condition on it. Now I want to use uniform flow condition(not parabolic i.e. u(y)=constant)at inlet condtion for no slip boundary condition where I have to use define pofile. Then I have to impose slip condition using define profile. So I need two UDFs. In the same UDF it is not possible. If you have more idea about it please help me. Also For single devivative like du/dx I can use C_DUDX(c,t) but for higher derivative like momentum source term d2u/dy2,d2u/dxdy or d2v/dy2 which macro are to be used or how to write these terms in UDF. Have a nice time. Bye Mech
  Reply With Quote

Old   June 10, 2006, 06:49
Default Re: Help -----------udf
  #4
adriano
Guest
 
Posts: n/a
Hi, maybe the best way to do is use a switch law macro, U can find that in UDF Manual. For d2u/dy2 I think u must implemente a simple incremental ratio such as (delta(du/dx))/dx in your UDF. I hope it's helpfull

Regard

Adriano
  Reply With Quote

Old   June 15, 2006, 08:59
Default Re: Help -----------udf
  #5
mech
Guest
 
Posts: n/a
Hi Adriano Where is switch law macro? Will you mention the section number of the manual? Also I tried for 2nd order derivative but it is unmanagable. If you know I request you to clarify. Thanks Mech
  Reply With Quote

Reply

Thread Tools
Display Modes

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 Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
UDF parallel error: chip-exec: function not found????? shankara.2 Fluent UDF and Scheme Programming 1 January 16, 2012 23:14
How to add a UDF to a compiled UDF library kim FLUENT 3 October 26, 2011 21:38
Dynamic Mesh UDF Qureshi FLUENT 1 December 2, 2009 01:27
UDF...UDF...UDF...UDF Luc SEMINEL FLUENT 0 November 25, 2002 05:03
UDF, UDF, UDF, UDF Luc SEMINEL Main CFD Forum 0 November 25, 2002 05:01


All times are GMT -4. The time now is 04:29.