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

Compiled define_dpm_scalar_update not having any effect in fluent

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 31, 2023, 05:04
Default 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
DIWAS is on a distinguished road
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;
}
}
Attached Files
File Type: txt New Text Document.txt (249 Bytes, 2 views)
DIWAS is offline   Reply With Quote

Old   October 31, 2023, 08:42
Default
  #2
New Member
 
DIWAS BAJRACHARYA
Join Date: Mar 2021
Posts: 6
Rep Power: 5
DIWAS is on a distinguished road
Its working, just needed to compile using built in compiler.
DIWAS is offline   Reply With Quote

Reply


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
Using compiled case and data file in another fluent software Nishant_Sharma Fluent UDF and Scheme Programming 1 June 23, 2018 00:56
Running UDF with Supercomputer roi247 FLUENT 4 October 15, 2015 13:41
Problem in using parallel process in fluent 14 Tleja FLUENT 3 September 13, 2013 10:54
hook a compiled DEFINE_ADJUST UDF to FLUENT caloggero Fluent UDF and Scheme Programming 3 December 14, 2012 03:08
Can fluent calculate the Joule-Thomson effect ? ruanbl FLUENT 3 April 2, 2012 14:29


All times are GMT -4. The time now is 03:26.