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 5 of 5
Search took 0.00 seconds.
Search: Posts Made By: blackmask
Forum: Fluent UDF and Scheme Programming May 4, 2013, 08:47
Replies: 14
Views: 5,780
Posted By blackmask
You can use DEFINE_INIT to specify the initial...

You can use DEFINE_INIT to specify the initial values.
Forum: Fluent UDF and Scheme Programming May 3, 2013, 07:50
Replies: 14
Views: 5,780
Posted By blackmask
I think at least you can concatenate the two...

I think at least you can concatenate the two files into a single file.
Forum: Fluent UDF and Scheme Programming May 3, 2013, 07:23
Replies: 14
Views: 5,780
Posted By blackmask
Try this one, adapted from the fluent udf manual....

Try this one, adapted from the fluent udf manual.

#include "udf.h"
DEFINE_SPECIFIC_HEAT(my_user_cp, T, Tref, h, yi)
{
real cp=4.3568+27.57838*exp(-0.5*( pow( (T-19.08514)/2.00369,2.0) ) );
*h...
Forum: Fluent UDF and Scheme Programming May 3, 2013, 06:07
Replies: 14
Views: 5,780
Posted By blackmask
Your ")" does not match "(" ...

Your ")" does not match "("

cp=4.3568+27.57838*exp(-0.5*( pow( (T-19.08514)/2.00369,2.0) ) );
Forum: Fluent UDF and Scheme Programming May 2, 2013, 22:28
Replies: 14
Views: 5,780
Posted By blackmask
As far as I can recall, the binary operator "^"...

As far as I can recall, the binary operator "^" in C means BIT-AND and it expects both operand to be integer, so you should replace
(...)^2
to
pow( (...), 2.0 )
when you need to calculate the...
Showing results 1 to 5 of 5

 
Forum Jump

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