Forum: Fluent UDF and Scheme Programming
January 8, 2012, 12:19
|
Replies: 53
Views: 22,121
Molixu,
First: You have posted this...
Molixu,
First: You have posted this question in several threads. My suggestion, to help those who are trying to help you, is to please stop posting the same question to multiple threads.
Now,...
|
Forum: Fluent UDF and Scheme Programming
January 2, 2011, 10:22
|
Replies: 53
Views: 22,121
Sarah,
I'm glad it worked. I left...
Sarah,
I'm glad it worked. I left C_UDMI(c,t,0)=F_PROFILE(c,t,i); in the code accidentally, and you're right to take it out. However, in the C1 and C2 code, if you take out the line...
|
Forum: Fluent UDF and Scheme Programming
January 1, 2011, 18:56
|
Replies: 53
Views: 22,121
|
Forum: Fluent UDF and Scheme Programming
January 1, 2011, 02:01
|
Replies: 53
Views: 22,121
|
Forum: Fluent UDF and Scheme Programming
December 31, 2010, 23:23
|
Replies: 53
Views: 22,121
|
Forum: Fluent UDF and Scheme Programming
December 31, 2010, 18:52
|
Replies: 53
Views: 22,121
Sarah,
You need to use a similar format to...
Sarah,
You need to use a similar format to the porosity function I wrote, not the same one.
Short of writing all the UDF's for you, here's what I'd suggest:
Enable a user-defined memory...
|
Forum: Fluent UDF and Scheme Programming
December 31, 2010, 13:55
|
Replies: 53
Views: 22,121
|
Forum: Fluent UDF and Scheme Programming
December 31, 2010, 12:05
|
Replies: 53
Views: 22,121
Sarah,
Your UDF was basically correct,...
Sarah,
Your UDF was basically correct, although didn't address the case where y=1 or y=1.85. You also need to assign a vector to x, which I did with the C_CENTROID command. I've changed it below:...
|
Forum: Fluent UDF and Scheme Programming
December 31, 2010, 11:41
|
Replies: 53
Views: 22,121
Manohar,
If I understand correctly:
...
Manohar,
If I understand correctly:
Heat is being generated by the absorbtion of a gas into a solid.
The heat generation rate depends on the temperature, as well as the difference in...
|
Forum: Fluent UDF and Scheme Programming
December 30, 2010, 22:57
|
Replies: 53
Views: 22,121
Sarah,
If you can write an equation (or an...
Sarah,
If you can write an equation (or an algorithm) for porosity as a function of geometric position, you can write a UDF for it. It's not that hard. The trick is that as opposed to...
|
Forum: Fluent UDF and Scheme Programming
December 30, 2010, 22:49
|
Replies: 53
Views: 22,121
Manohar,
Is C a scalar? Is it a property of...
Manohar,
Is C a scalar? Is it a property of the fluid which travels with the fluid (like species mass fraction, for example)? Or, is it something about the cell which simply changes with time?
...
|
Forum: Fluent UDF and Scheme Programming
December 29, 2010, 13:25
|
Replies: 53
Views: 22,121
Sarah,
You should read through the Fluent...
Sarah,
You should read through the Fluent UDF manual. However, from the Fluent 6.3 UDF manual (Fluent, Inc., September 11, 2006), page 3-26:
"The constant ND_ND is dened as 2 for RP 2D...
|
Forum: Fluent UDF and Scheme Programming
December 29, 2010, 11:14
|
Replies: 53
Views: 22,121
Sarah,
I have given you the code you need to...
Sarah,
I have given you the code you need to make your function work. Instead of x[0], which returns the "x" component of the geometry, you'll need to use x[1], which returns the "y" component.
...
|
Forum: Fluent UDF and Scheme Programming
December 28, 2010, 18:23
|
Replies: 53
Views: 22,121
Sarah,
Is "x" in your function the...
Sarah,
Is "x" in your function the x-coordinate of the cell? If so, try the following un-checked code.
#include "udf.h"
#include "math.h"
DEFINE_SOURCE(energy_source,c,t,dS,eqn)
{
real...
|