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

UDF for mass transfer between phases in two phase ice-slurry pipe flow

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

Like Tree1Likes
  • 1 Post By devshi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 14, 2016, 07:25
Default UDF for mass transfer between phases in two phase ice-slurry pipe flow
  #1
New Member
 
Devshi Ziyad
Join Date: Oct 2015
Posts: 10
Rep Power: 6
devshi is on a distinguished road
I have wrote a UDF for melting of ice-particles in two-phase ice-slurry pipe flow

The code is as follows:

#include "udf.h"
/* UDF to define a simple mass transfer*/

DEFINE_MASS_TRANSFER(UFD, cell, thread, from_index, from_species_index, to_index, to_species_index)

{real mass;

real hsl = 1;
real pr=1;
real C_YI(c,t,1);
real ds = 0.0001;
read latent_heat = 21000
real alphas = 0.1;
real ds = 0.0001;
real v = 1.25;
real lambdal = 0.5034;
real mus=1.72*10^-5;
real mul=0.70354;
real rhos=917;
real cpl=4260;
real latent_heat=332400;

Res= rhos*|C_U(c,t,2)-C_U(c,t,3)|*ds/mus;

Pr=mul*Cpl/lambdal

hsl= (lambdal/ds)*(7+(10*alphas)+(5*alphas^2))*(1+0.7*(Res^0.2)* (Pr^1.3))

hv=6*alphas*hsl/ds;

mass= hv*((C_T(c,t,2)-C_T(c,t,3))/latent_heat);

return mass;
}


I am keep getting error that :

Error: The UDF library you are trying to load (C:\Users\Devshi\Downloads\pipe\pipe2_files\dp0\FF F\Fluent\libudf) is not compiled for 3d on the current platform (win64).

The system cannot find the file specified.


Kindly help
dexter likes this.
devshi is offline   Reply With Quote

Old   November 14, 2016, 08:04
Default
  #2
Boh
Member
 
Join Date: Sep 2016
Posts: 35
Rep Power: 6
Boh is on a distinguished road
is it the first time that you compile an UDF?
Boh is offline   Reply With Quote

Old   November 14, 2016, 11:18
Default
  #3
New Member
 
Devshi Ziyad
Join Date: Oct 2015
Posts: 10
Rep Power: 6
devshi is on a distinguished road
Yes, this is my first time. Kindly advice
devshi is offline   Reply With Quote

Old   November 14, 2016, 12:13
Default
  #4
Boh
Member
 
Join Date: Sep 2016
Posts: 35
Rep Power: 6
Boh is on a distinguished road
ok...then I had the same problem, for me it worked to disintall all visual c programs and install the Microsoft Visual Studio Express 2015 and then to add the path where "fluent.exe" and "runwb2.exe" to the "path" enviroment variable....then I rebooted the system and it worked...
https://www.researchgate.net/post/Ho..._ANSYS_Fluent2 (Here it's explained better)
Boh is offline   Reply With Quote

Old   November 14, 2016, 14:26
Default
  #5
New Member
 
Devshi Ziyad
Join Date: Oct 2015
Posts: 10
Rep Power: 6
devshi is on a distinguished road
Thank you for your kind help. I'll let you know about the progress soon.

Thanks again!
devshi is offline   Reply With Quote

Old   November 14, 2016, 19:27
Default
  #6
`e`
Senior Member
 
Join Date: Mar 2015
Posts: 892
Rep Power: 14
`e` is on a distinguished road
Also ensure you're correctly unloading and compiling the new UDF by following my compiling process for Fluent UDFs with an existing library loaded.
`e` is offline   Reply With Quote

Reply

Tags
eulerian multiphase model, udf and programming

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
Multiphase flow - incorrect velocity on inlet Mike_Tom CFX 6 September 29, 2016 01:27
Error - Solar absorber - Solar Thermal Radiation MichaelK CFX 12 September 1, 2016 05:15
behavior of two phase flow in a pipe Sonia84 FLUENT 5 September 17, 2013 16:31
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11
fluid flow fundas ram Main CFD Forum 5 June 17, 2000 21:31


All times are GMT -4. The time now is 05:39.