|
[Sponsors] |
April 2, 2004, 10:02 |
How to add a UDF to a compiled UDF library
|
#1 |
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 |
|
April 4, 2004, 10:07 |
Re: How to add a UDF to a compiled UDF library
|
#2 |
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. |
|
October 26, 2011, 09:37 |
|
#3 |
New Member
amir mofakham
Join Date: Feb 2011
Posts: 14
Rep Power: 15 |
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. |
|
October 26, 2011, 22:38 |
|
#4 | |
Senior Member
Join Date: Feb 2010
Posts: 164
Rep Power: 17 |
Quote:
|
||
|
|
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 |