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 6 of 6
Search took 0.00 seconds.
Search: Posts Made By: blackmask
Forum: Fluent UDF and Scheme Programming July 15, 2013, 19:49
Replies: 13
Views: 2,043
Posted By blackmask
Suppose that id0, id1 < 100, what I am trying to...

Suppose that id0, id1 < 100, what I am trying to do is to store the combination of id0,id1 in someway and retrieve them later,

#include <math.h>
#include "udf.h"

thread_loop_f(ft,domain)
{
...
Forum: Fluent UDF and Scheme Programming July 11, 2013, 21:51
Replies: 13
Views: 2,043
Posted By blackmask
1. Should not the magnitude be the square root of...

1. Should not the magnitude be the square root of its components for each phase? Is there any chance that the phase does not match in your comparison?

2. I think that the UDM should also be...
Forum: Fluent UDF and Scheme Programming July 11, 2013, 08:06
Replies: 13
Views: 2,043
Posted By blackmask
The type of C_CHEM_REACTION_ID(c,ct) should be...

The type of C_CHEM_REACTION_ID(c,ct) should be real so that it should be casted to integer in the switch expression. The 'lround' function is more accurate but I think 'int' is enough for small...
Forum: Fluent UDF and Scheme Programming July 10, 2013, 19:42
Replies: 13
Views: 2,043
Posted By blackmask
switch ( C_CHEM_REACTION_ID(c,ct) ) => ...

switch ( C_CHEM_REACTION_ID(c,ct) )
=>
switch ( (int) C_CHEM_REACTION_ID(c,ct) )
Forum: Fluent UDF and Scheme Programming July 10, 2013, 06:52
Replies: 13
Views: 2,043
Posted By blackmask
Then let discuss option 1 only. It goes like this...

Then let discuss option 1 only. It goes like this

Domain *d;
Thread *ct;
cell_t c;

d = Get_Domain(ROOT_DOMAIN_ID);

thread_loop_c(ct,d) {
if(FLUID_THREAD_P(ct))
Forum: Fluent UDF and Scheme Programming July 10, 2013, 05:42
Replies: 13
Views: 2,043
Posted By blackmask
Either you loop over all the cells and find those...

Either you loop over all the cells and find those with particular reaction id(s), or you record the cell id c and thread id ct for particular reaction id(s) with arrays in DEFINE_ON_DEMAND and then...
Showing results 1 to 6 of 6

 
Forum Jump

All times are GMT -4. The time now is 00:42.