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

Search Results

Register Blogs Members List Search Today's Posts Mark Forums Read

Showing results 1 to 7 of 7
Search took 0.00 seconds.
Search: Posts Made By: DoHander
Forum: FLUENT June 17, 2010, 18:02
Replies: 13
Views: 2,634
Posted By DoHander
Here is a slightly better approximation: ...

Here is a slightly better approximation:

http://en.wikipedia.org/wiki/Error_function

Do
Forum: FLUENT June 17, 2010, 18:01
Replies: 13
Views: 2,634
Posted By DoHander
You use a very crude approximation for erf, you...

You use a very crude approximation for erf, you will get about 10^-1 error if you use (1-exp(x)) instead of the actual erf.

The good thing is that if you were capable to compile your code using...
Forum: FLUENT June 17, 2010, 17:46
Replies: 13
Views: 2,634
Posted By DoHander
It depends of your Linux system, but yes it is...

It depends of your Linux system, but yes it is possible to not have a C compiler installed.

What you can do is to give a search on all your system after math.h (probably it is in /usr/... but...
Forum: FLUENT June 17, 2010, 17:39
Replies: 13
Views: 2,634
Posted By DoHander
/* UDF for specifying a transient inlet velocity...

/* UDF for specifying a transient inlet velocity profile boundary condition */

#include "udf.h"
#include <math.h>
#define PI 4.*atan(1.)
#define RT 0.00183
real VM=21.911;
real VNin=0.01;
...
Forum: FLUENT June 17, 2010, 17:37
Replies: 13
Views: 2,634
Posted By DoHander
Hey, try the same code but with: ...

Hey,

try the same code but with:

#include <math.h>

instead of:

#include "math.h"
Forum: FLUENT June 17, 2010, 17:35
Replies: 13
Views: 2,634
Posted By DoHander
I would recommend you to use a good book like: ...

I would recommend you to use a good book like:
...
Forum: FLUENT June 17, 2010, 17:24
Replies: 13
Views: 2,634
Posted By DoHander
I suppose you are on a Windows system ? If yes...

I suppose you are on a Windows system ? If yes the erf function is not implemented in math.h :) . So basically you will need to implement a custom version of erf in your UDF function.

If you are...
Showing results 1 to 7 of 7

 
Forum Jump

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