UDF for inflow
Hi everyone,
I am having an issue getting fluent to work with a ramped inflow condition. I have a UDF file for a simple ramp written and I have a journal file written but I get back an error everytime saying: "Primitive Error at Node 1: interpolate_profile_field: thread 24: profile \"\" does not exist." It is running in 2D and uses parrallel processing. Here are the files: ramped_inflow.c Code:
#include "udf.h" Code:
; READ MESH Thanks, Matt |
I think that you should attach the running log of fluent while reading the journal file.
I barely know UDF so I am a bit confused when reading your source code. Maybe you could help me with the following two questions? 1. Judge from the macro you used (!RP_HOST), the RP_Get... should be executed by HOST only. So why broadcasting those values to non-host processes is unnecessary? 2. Two floating numbers could be equal (r1 == r2 could be true) but people seldom do this. The more common practice I saw is ( fabs(r1-r2) < some_eps ). So do you have any particular reason for this line of code? if (u_in == 0.0) |
All times are GMT -4. The time now is 07:08. |