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

Eulerian Granular diameter as function of phase species

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 30, 2022, 01:01
Default Eulerian Granular diameter as function of phase species
  #1
New Member
 
Yuri
Join Date: Nov 2014
Posts: 2
Rep Power: 0
Yuri911 is on a distinguished road
Dear colleagues,

could you please help me to make this code work. At the time it ruins case with SIGSEGV error during initialization




#include "udf.h"

real particle_diameter_function;
real mass_fraction_carbon;




DEFINE_PROPERTY(particle_diam, cell, t)
{
Thread *phase1_thread;
phase1_thread = THREAD_SUB_THREAD(t,3);
mass_fraction_carbon = C_YI(cell, phase1_thread, 6);
particle_diameter_function = ((0.003 - 10e-6)/(1 - 0))*(mass_fraction_carbon - 0) + 10e-6;
return particle_diameter_function;

}

Thanks.
Attached Files
File Type: zip case.zip (106.7 KB, 2 views)

Last edited by Yuri911; May 30, 2022 at 05:14.
Yuri911 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
Calculating source term total cell-zone volume parallel computation RobV Fluent UDF and Scheme Programming 2 May 30, 2022 03:46
[mesh manipulation] refineMesh Error mohsen.boojari OpenFOAM Meshing & Mesh Conversion 3 March 1, 2018 22:07
is internalField(U) equivalent to zeroGradient? immortality OpenFOAM Running, Solving & CFD 7 March 29, 2013 01:27
Droplet Evaporation Christian Main CFD Forum 2 February 27, 2007 06:27
particle diameter (user defined function) eulerian nasser FLUENT 0 June 18, 2006 03:39


All times are GMT -4. The time now is 07:02.