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

Compiled UDFs - questions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 26, 2006, 18:08
Default Compiled UDFs - questions
  #1
Antonis
Guest
 
Posts: n/a
Hi!

I'm a rookie on the UDF subject and I have some questions.

1) I want to impose a Neuman boundary condition (velocity gradients), possibly through the DEFINE_ADJUST macro. Do I have to interpret it or compile it??

2) When using compiled UDFs, do I need to compile the source file BEFORE loading it in Fluent?

3) Can I compile using the devc++ compiler or is it not compatible with Fluent?

I'm using Fluent 6.2.16 and Windows XP.

I would appreciate any help!! Antonis
  Reply With Quote

Old   August 26, 2006, 21:19
Default Re: Compiled UDFs - questions
  #2
cadaei
Guest
 
Posts: n/a
Will try to answer some of your questions.

1) you wont be able to implement a boudnary condition using a DEFINE_ADJUST macro. You will only be able to change boundary conditions using DEFINE_PROFILE. It will be very difficult to implement a Neumann boudary condition in Fluent.

2) you can interpret the source code which doesnt require a compiler although it runs slower than compiling. I would recommend compiling.

3) I'm not sure about this one. Its easiest just to compile within fluent.
  Reply With Quote

Old   August 27, 2006, 08:52
Default Re: Compiled UDFs - questions
  #3
Antonis
Guest
 
Posts: n/a
Thanks for your answer.

For the Neumann condition, you mean it will be difficult to implement it through a interpreted UDF, or in general?

Also another question:

When setting a boundary conditions, should I loop over the cells of the boundary, or the face?

  Reply With Quote

Old   August 27, 2006, 13:50
Default Re: Compiled UDFs - questions
  #4
cadaei
Guest
 
Posts: n/a
For the Neumann condition, I think it will be difficult to implement at a wall because fluent does not allow you to access the boundary condition using UDF as far as i know. I have done something similar using two-phase flow and ended up using UDS equations to do it.

For setting boundary condition, you loop over all the faces on the boundary of interest. fluent stores values on the faces at the domain boundary and cell centroid in the interior
  Reply With Quote

Old   August 28, 2006, 12:03
Default Re: Compiled UDFs - questions
  #5
Albert F.
Guest
 
Posts: n/a
I tryed to compile UDF using dev c++ but it didn't worked. As far as I know you need to install .Net framework and make a few changes at enviroment settings. If you want look for a post called error while compiling udf, I posted the instructions I followed to solve compilers problems.
  Reply With Quote

Old   August 29, 2006, 09:36
Default Re: Compiled UDFs - questions
  #6
Antonis
Guest
 
Posts: n/a
@cadaei: I don't want to implement the Neumann condition at a wall, but at a velocity inlet (in fact I want to impose the 2d zero vorticity condition du/dy=dv/dx).

@Albert F.: thanks, I found the previous thread, very helpful.
  Reply With Quote

Old   December 26, 2012, 07:12
Default
  #7
Member
 
Satish Gupta
Join Date: Jun 2012
Posts: 30
Rep Power: 14
Rahul123 is on a distinguished road
Can anyone tell me how to apply du/dy=0 at a boundary using UDF.
I cannot understand how to differentiate between du/dx and du/dy
thank you
Rahul123 is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Interepreted Vs. Compiled UDFs Antonis Fluent UDF and Scheme Programming 10 March 22, 2018 12:15
Using compiled UDF:s in different Fluent versions S H FLUENT 1 September 12, 2007 04:40
accessing udf_library for compiled udf's Asghari FLUENT 0 August 9, 2006 05:41
compiled UDFs Jianli FLUENT 5 December 14, 2004 04:20
Compiled UDFs Devin FLUENT 4 October 28, 2003 21:47


All times are GMT -4. The time now is 15:10.