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

Modelling Solidification and Melting

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 15, 2017, 08:02
Default Modelling Solidification and Melting
  #1
Member
 
sebastian bergman
Join Date: Mar 2017
Location: seattle
Posts: 52
Rep Power: 9
Tushar_Telmasre is on a distinguished road
Hello,

I am trying to solve for solidification in simple binary systems with convection and Species transport. At the end I want to plot species fraction in terms of C_mix(mixture concentration) which is defined as

C_mix=fl*Cl+C_new

C_new=C_old+del_f*k*Cl

fl=Liquid fraction
Cl= Liquid concentration
del_f = Difference in liquid fraction in successive time steps.
k= Partition Coefficient
C0= Alloy Composition
C_old = acts as counter (initialized as C_old=K*C0)

I am trying to write the UDF but do not know where to hook up the UDF in species model.

Here is my UDF

#include "udf.h"

DEFINE_PROPERTY(c_mix,c,t)
{
real c_m,k=0.3,c_new,c_old=k*0.1;
begin_c_loop(c,t)
{
del_f=C_LIQF(c,t,1)-C_LIQF(c,t,0);
c_new=c_old+del_f*k*C_YI(c,t,i);
c_m=C_LIQF(c,t)*C_YI(c,t,i)+c_new ;
}
end_c_loop(c,t)
return c_m;
}
Tushar_Telmasre is offline   Reply With Quote

Reply

Tags
solidification/melting, species model, udf

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
solidification and melting with VOF: how to sink solid PCM as it melts? sakil2k3 FLUENT 32 November 15, 2019 07:27
melting or solidification model in CFX jasonchang CFX 5 January 31, 2018 07:33
Question about solidification and melting model aestas FLUENT 0 November 8, 2015 21:32
solidification and melting mojtaba-azadi FLUENT 2 November 30, 2011 11:27
Solidification and melting with CFX Don CFX 0 December 1, 2008 12:30


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