|
[Sponsors] |
July 23, 2019, 08:56 |
DPM erosion
|
#1 |
New Member
MT
Join Date: Jul 2019
Posts: 3
Rep Power: 7 |
Hi, I am trying to create an erosion model based on DNV standards. I managed to interpret the UDF and run the calculation but the erosion rate remains at 0 everywhere when I plot the contour. Are the lines for the thread and cell necessary?
#include "udf.h" DEFINE_DPM_EROSION(DNV, p, t, f, normal, alpha, Vmag, mdot) { real A[ND_ND]; Thread *t0; cell_t c0; /*t0 = THREAD_T0(t);*/ /*error interpreting these two lines*/ /*c0 = F_C0(f,t);*/ real erosion, F_alpha; F_alpha = 0.6*(pow(((sin(alpha))+7.2*((sin(alpha))-(pow((sin(alpha)),2.0)))),0.6))*(1-exp((-20)*alpha)); erosion = (3.67e-4)*F_alpha*(pow(Vmag,2.6))*mdot; /*mm per year*/ F_STORAGE_R(f,t,SV_DPMS_EROSION) =erosion; } |
|
July 23, 2019, 23:05 |
|
#2 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
Code:
#include "udf.h" #include "math.h" DEFINE_DPM_EROSION(DNV, p, t, f, normal, alpha, Vmag, mdot) { real erosion, F_alpha; F_alpha = 0.6*(pow(((sin(alpha))+7.2*((sin(alpha))-(pow((sin(alpha)),2.0)))),0.6))*(1-exp((-20)*alpha)); erosion = (3.67e-4)*F_alpha*(pow(Vmag,2.6))*mdot; /*mm per year*/ F_STORAGE_R(f,t,SV_DPMS_EROSION) =erosion; } |
|
July 24, 2019, 05:59 |
|
#3 | |
New Member
MT
Join Date: Jul 2019
Posts: 3
Rep Power: 7 |
Quote:
Thanks AlexanderZ. I compiled the above code but it is still showing zero erosion rate. I can see the erosion rate if I change to the default erosion models. |
||
July 25, 2019, 00:49 |
|
#4 |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
check your equations
best regards |
|
July 31, 2019, 21:15 |
|
#5 |
New Member
MT
Join Date: Jul 2019
Posts: 3
Rep Power: 7 |
Turns out that there were some changes in the define_dpm_erosion macro in Fluent 2019 R1/Ansys 19.3. Leaving the code below for reference.
Code:
#include "udf.h" #include "math.h" DEFINE_DPM_EROSION(DNV, tp, t, f, normal, alpha, Vmag, mdot) { real erosion, F_alpha; F_alpha = 0.6*(pow(((sin(alpha))+7.2*((sin(alpha))-(pow((sin(alpha)),2.0)))),0.6))*(1-exp((-20)*alpha)); erosion = (3.67e-4)*F_alpha*(pow(Vmag,2.6))*mdot; /*mm per year*/ F_STORAGE_R_XV(f, t, SV_DPMS_EROSION, EROSION_UDF)=erosion;} |
|
May 10, 2023, 02:49 |
|
#6 | |
New Member
Xiaozhen Liu
Join Date: Aug 2019
Posts: 1
Rep Power: 0 |
Quote:
your reference code helps me to solve my problem. Regards, Xiao |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Question about Fluent DPM erosion model | zdz198728 | FLUENT | 6 | April 1, 2017 04:49 |
FLUENT Erosion DPM (Methane with Sand) - Strange Erosion Contours | chongjqw | FLUENT | 3 | February 22, 2015 22:17 |
FLUENT Erosion DPM - Strange Erosion Contours | chongjqw | FLUENT | 0 | February 7, 2014 03:43 |
DPM - Erosion model | pipin | FLUENT | 2 | November 18, 2013 06:02 |
Modelling Sand erosion using Mixture model and DPM | karlchapman | FLUENT | 3 | July 5, 2012 09:55 |