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

How to add a UDF to a compiled UDF library

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

Like Tree1Likes
  • 1 Post By kim

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 2, 2004, 10:02
Default How to add a UDF to a compiled UDF library
  #1
kim
Guest
 
Posts: n/a
Hi,

I want to know if it is possible to add own UDF to a exist compiled UDF library which has no source code.

For example, FLUENT6.1 has provided MHD module that is a kind of UDF. In this library, the UDF, mhd_dpm_force, has been provided as the body force of the particle in the electromagnetic filed. However, I want to use some coefficient, say co0, to multiple this body force as:

co0*mhd_dpm_force.

I can use UDF to define some function. However, How can I combine the UDF defined by me to the MHD module which is provided FLUENT as UDF. Of course, FLUENT does not provide any source file of UDF about MHD.

I cheked the MHD1.0 under addons fold of Fluent.Inc and found there are some libudf.so file. If these files are object files, it may be possible to re-compile my source code with those object file. Is it right ?

Does any body has such kind of expereince? My OS is LINUX red hat.

Thanks.

KIM
zhebenshu1912 likes this.
  Reply With Quote

Old   April 4, 2004, 10:07
Default Re: How to add a UDF to a compiled UDF library
  #2
Benny
Guest
 
Posts: n/a
Hi KIM,

I also shared the similar experience with you, and I want to amend the libudf.dll (in Windows), but I found it's too difficlut to so do.
  Reply With Quote

Old   October 26, 2011, 09:37
Default
  #3
New Member
 
amir mofakham
Join Date: Feb 2011
Posts: 14
Rep Power: 15
amir.mofakham is on a distinguished road
Hi every one.
I want to define a boundary condition of a MHD problem by use of UDF. In the section UDS of the boundary I select the specified flux for the boundary and then in user-Define Scalar Boundary Value I select the udf which was interpreted. When I start the iteration following error is appeared!

Error: phi_boundary: Invalid electric potential field boundary
Error Object: ()

In the UDF as u see I write a simple commend:

#include "udf.h"
DEFINE_PROFILE(Electrical_Potential,t,i)
{

face_t f;
begin_f_loop(f,t)
{
F_UDSI(f,t,0)=10;
}
end_f_loop(f,t)


}
Thanks in advance.
amir.mofakham is offline   Reply With Quote

Old   October 26, 2011, 22:38
Default
  #4
Senior Member
 
Join Date: Feb 2010
Posts: 164
Rep Power: 17
gearboy is on a distinguished road
Quote:
Originally Posted by kim
;111558
Hi,

I want to know if it is possible to add own UDF to a exist compiled UDF library which has no source code.

For example, FLUENT6.1 has provided MHD module that is a kind of UDF. In this library, the UDF, mhd_dpm_force, has been provided as the body force of the particle in the electromagnetic filed. However, I want to use some coefficient, say co0, to multiple this body force as:

co0*mhd_dpm_force.

I can use UDF to define some function. However, How can I combine the UDF defined by me to the MHD module which is provided FLUENT as UDF. Of course, FLUENT does not provide any source file of UDF about MHD.

I cheked the MHD1.0 under addons fold of Fluent.Inc and found there are some libudf.so file. If these files are object files, it may be possible to re-compile my source code with those object file. Is it right ?

Does any body has such kind of expereince? My OS is LINUX red hat.

Thanks.

KIM
DLL is a kind of binary code recognized by computer only. It is difficult to be read by Human. If you have some cracking knowledge, maybe you can disassembly it into assembly language and edit it using ultra-edit or winhex, etc.
gearboy is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help for compiled UDF Tim FLUENT 1 April 8, 2011 04:56
Error in compiled UDF Mustafa Ayad FLUENT 0 January 20, 2009 15:51
compiled or interpreted udf Aireen FLUENT 11 August 25, 2005 01:54
building compiled udf s in windows sourav FLUENT 8 August 18, 2005 02:46
compiled degassing UDF ... anyone?? L. S. FLUENT 0 July 6, 2005 09:07


All times are GMT -4. The time now is 06:59.