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

Search Results

Register Blogs Community New Posts Updated Threads Search

Showing results 1 to 14 of 14
Search took 0.00 seconds.
Search: Posts Made By: ComputerGuy
Forum: Fluent UDF and Scheme Programming January 8, 2012, 12:19
Replies: 53
Views: 22,121
Posted By ComputerGuy
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
Posted By ComputerGuy
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
Posted By ComputerGuy
This is unchecked. It doesn't use C_UDMI, and is...

This is unchecked. It doesn't use C_UDMI, and is not as efficient as it could be. However, I think it does what you want. I have looked through the Fluent manual and can't find C_POR, so if you...
Forum: Fluent UDF and Scheme Programming January 1, 2011, 02:01
Replies: 53
Views: 22,121
Posted By ComputerGuy
Manohar: 1) Numerical integration:...

Manohar:

1) Numerical integration: http://en.wikipedia.org/wiki/Numerical_integration
2) Custom field functions in Fluent:...
Forum: Fluent UDF and Scheme Programming December 31, 2010, 23:23
Replies: 53
Views: 22,121
Posted By ComputerGuy
Sarah, I think everything looks right,...

Sarah,

I think everything looks right, except for the first line. Try this:


DEFINE_PROFILE(porosity_profile,t,i)
{
real x[ND_ND];
real y;
cell_t c;
Forum: Fluent UDF and Scheme Programming December 31, 2010, 18:52
Replies: 53
Views: 22,121
Posted By ComputerGuy
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
Posted By ComputerGuy
Sarah, Put all the UDF's in the same .c...

Sarah,

Put all the UDF's in the same .c file. For instance:

#include "udf.h"

DEFINE_SOURCE()
{}

DEFINE_PROFILE()
Forum: Fluent UDF and Scheme Programming December 31, 2010, 12:05
Replies: 53
Views: 22,121
Posted By ComputerGuy
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
Posted By ComputerGuy
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
Posted By ComputerGuy
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
Posted By ComputerGuy
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
Posted By ComputerGuy
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 de ned as 2 for RP 2D...
Forum: Fluent UDF and Scheme Programming December 29, 2010, 11:14
Replies: 53
Views: 22,121
Posted By ComputerGuy
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
Posted By ComputerGuy
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...
Showing results 1 to 14 of 14

 
Forum Jump

All times are GMT -4. The time now is 01:54.