CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

DPM+udf\ inclusion\Continuous casting

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 8, 2022, 23:48
Default DPM+udf\ inclusion\Continuous casting
  #1
New Member
 
echo
Join Date: Jun 2022
Posts: 7
Rep Power: 3
2424464575 is on a distinguished road
Recently, I was doing the inclusion behavior simulation of molten steel after solidification. The solidification part has been calculated. Now I am ready to add the calculation of inclusion particles. I have encountered problems in UDF compilation. Do you have a teacher or senior brother to discuss it together? Thank you. My email: 2424464575@qq.com , thanks again! Good wishes!
My code is as follows:

1. When the volume fraction of liquid phase encountered by the particles is less than 0.6, the particles are considered to be captured by the solidified shell of liquid steel.


#include"udf.h"

DEFINE_DPM_LAW(stop_dpm_law,p,ci)
{
real fl;
cell_t c=P_CELL(p);/* Get the cell and thread that the particle is currently in */
Thread *t=P_CELL_THREAD(p);/* pointer to the thread of the cell that the particle is currently in*/
fl=C_LIQF(c,t);/* liquid fraction in a cell*/
if(fl<=0.6)
P_VEL(p)[0]=0.0,/* particle velocity component. */
P_VEL(p)[1]=0.0,
P_VEL(p)[2]=0.0;
else
return P_VEL(p);
}

What are the problems in my code? Please help me. Thank you!

Last edited by 2424464575; June 9, 2022 at 21:46.
2424464575 is offline   Reply With Quote

Old   June 2, 2023, 08:10
Default
  #2
New Member
 
Join Date: Feb 2023
Posts: 4
Rep Power: 3
kapil_rider9999 is on a distinguished road
did you get answer of this ? solved
kapil_rider9999 is offline   Reply With Quote

Reply

Tags
dpm,udf,inclusion


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
UDF in case with DPM modle POSTHU Fluent UDF and Scheme Programming 0 March 3, 2021 07:21
UDF for DPM paru Fluent UDF and Scheme Programming 0 September 23, 2020 13:24
how to distinguish DPM injections in UDF yyj-sy Fluent UDF and Scheme Programming 0 July 3, 2020 11:51
Viscous resistance UDF with DPM AyrtonZotelle Fluent UDF and Scheme Programming 2 December 17, 2019 22:48
please help me. i have question about the UDF at the DPM motallebi FLUENT 0 July 6, 2009 11:27


All times are GMT -4. The time now is 10:44.