|
[Sponsors] |
Compiled define_dpm_scalar_update not having any effect in fluent |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 31, 2023, 06:04 |
Compiled define_dpm_scalar_update not having any effect in fluent
|
#1 |
New Member
DIWAS BAJRACHARYA
Join Date: Mar 2021
Posts: 6
Rep Power: 5 |
I ran a dpm simulation, compiled it with define_dpm_scalar_update function and hooked it as a discrete phase UDF but its not working. Maybe what I did is physically wrong or maybe I used the wrong UDF.
The UDF: #include "udf.h" #include "dpm.h" DEFINE_DPM_SCALAR_UPDATE(update_velocity, cell, thread, initialize, p) { real z = TP_POS(p)[2]; real z_vel = TP_VEL(p)[2]; if (z < 1.5) { P_VEL(p)[2] = z_vel * 0.05; } else { P_VEL(p)[2] = z_vel; } } |
|
October 31, 2023, 09:42 |
|
#2 |
New Member
DIWAS BAJRACHARYA
Join Date: Mar 2021
Posts: 6
Rep Power: 5 |
Its working, just needed to compile using built in compiler.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using compiled case and data file in another fluent software | Nishant_Sharma | Fluent UDF and Scheme Programming | 1 | June 23, 2018 01:56 |
Running UDF with Supercomputer | roi247 | FLUENT | 4 | October 15, 2015 14:41 |
Problem in using parallel process in fluent 14 | Tleja | FLUENT | 3 | September 13, 2013 11:54 |
hook a compiled DEFINE_ADJUST UDF to FLUENT | caloggero | Fluent UDF and Scheme Programming | 3 | December 14, 2012 04:08 |
Can fluent calculate the Joule-Thomson effect ? | ruanbl | FLUENT | 3 | April 2, 2012 15:29 |