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

User defined functions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 15, 2015, 18:52
Default User defined functions
  #1
New Member
 
abhishek chakrabarti
Join Date: May 2015
Posts: 8
Rep Power: 11
abhishek.iiest is on a distinguished road
can anyone please tell me as to how i should write a user defined function for a horizontal magnetic field. i need to know all the macros required and the format in which it is to be written. also i need to know the governing equation that should be programmed into the udf and the way in which it is to be programmed.
abhishek.iiest is offline   Reply With Quote

Old   May 18, 2015, 06:16
Default
  #2
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
If you want an explanation on how to write UDFs and what macro's there are available, you should start with the Fluent manual.
Right now your question is too general to be answered...
pakk is offline   Reply With Quote

Old   May 18, 2015, 06:39
Default udf
  #3
New Member
 
abhishek chakrabarti
Join Date: May 2015
Posts: 8
Rep Power: 11
abhishek.iiest is on a distinguished road
actually i am dealing with a magnetohydrodynamic flow within a closed lid-driven cavity.in order to incorporate the magnetic field i am writing a udf. a lorentz force will be generated in the y-momentum equation.also a buoyancy term appears in the dimensional y-momentum equation.so my question is should i write a udf which includes both the magnetic field and the buoyancy term or write two separate udfs or whether i should write the udf only for the magnetic field term??
abhishek.iiest is offline   Reply With Quote

Old   May 18, 2015, 06:44
Default
  #4
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
That is a concrete question that somebody here might be able to answer.

I can not really do that with confidence... But I thought that buoyancy is automatically included in the Fluent calculations if you add gravity, so in that case you would only need to add the magnetic force. I am not sure of that, as I have never did a simulation where buoyancy is important. But your answer might still be in the manual.
pakk is offline   Reply With Quote

Old   May 22, 2015, 10:15
Default
  #5
New Member
 
abhishek chakrabarti
Join Date: May 2015
Posts: 8
Rep Power: 11
abhishek.iiest is on a distinguished road
i have another question. i want to know as how to include a hollow cylinder in a two dimensional cavity in ansys fluent.i have done everything i know but after completing meshing when i enter the set-up and open the tab for the boundary conditions then all the sides of the cavity that i have named previously in the meshing section does not appear in the boundary conditions tab.only the interior surface body and wall surface body appears in the tab.
abhishek.iiest 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
Allocating user defined memory djn FLUENT 2 April 14, 2015 11:59
user defined scalar vs species transport gvj_mech FLUENT 0 March 27, 2014 15:33
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 13:21
User Defined Scalars - Returning Values Carlos V. FLUENT 0 April 19, 2006 19:18
User defined functions Tuomas Koiranen FLUENT 2 December 29, 1999 08:41


All times are GMT -4. The time now is 20:26.