|
[Sponsors] |
June 8, 2022, 23:48 |
DPM+udf\ inclusion\Continuous casting
|
#1 |
New Member
echo
Join Date: Jun 2022
Posts: 7
Rep Power: 3 |
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. |
|
June 2, 2023, 08:10 |
|
#2 |
New Member
Join Date: Feb 2023
Posts: 4
Rep Power: 3 |
did you get answer of this ? solved
|
|
Tags |
dpm,udf,inclusion |
|
|
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 |