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 5 of 5
Search took 0.00 seconds.
Search: Posts Made By: Aurelien Thinat
Forum: Fluent UDF and Scheme Programming August 25, 2016, 09:27
Replies: 14
Views: 4,864
Posted By Aurelien Thinat
Well it's exact that the Cp is not easy to...

Well it's exact that the Cp is not easy to manipulate. Take a look at the section "8.2.6. User-Defined Real Gas Models (UDRGM)" of the ANSYS Fluent UDF guide. You should be able to properly define...
Forum: Fluent UDF and Scheme Programming August 25, 2016, 07:16
Replies: 14
Views: 4,864
Posted By Aurelien Thinat
Hi Lauren, Of course it is possible. In...

Hi Lauren,

Of course it is possible.

In the header of your UDF, you can define global variables :

#include "udf.h"
#include <stdio.h>
#include <stdlib.h>
Forum: Fluent UDF and Scheme Programming August 18, 2016, 05:29
Replies: 14
Views: 4,864
Posted By Aurelien Thinat
Hi Lauren, data[Nc] is an array of 1 line...

Hi Lauren,

data[Nc] is an array of 1 line and N colum (or 1 column and N lines).

If you want to store a matrix you need to define data as :

float data[Nc][Nl]


and to store something :
Forum: Fluent UDF and Scheme Programming August 17, 2016, 09:17
Replies: 14
Views: 4,864
Posted By Aurelien Thinat
Hi Lauren, Try something like this : " ...

Hi Lauren,

Try something like this :

"
float data_temp= 0.;

fscanf(rfile, "%f",&data_temp);

data[i] = data_temp;
Forum: Fluent UDF and Scheme Programming August 11, 2016, 06:11
Replies: 14
Views: 4,864
Posted By Aurelien Thinat
Hi Lauren, Yes it's possible in full UDF....

Hi Lauren,

Yes it's possible in full UDF. First you have to write a DEFINE_INIT or DEFINE_EXECUTE_ON_DEMAND to put in memory the density (or viscosity, etc...) matrix from an external file :

/ ...
Showing results 1 to 5 of 5

 
Forum Jump

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