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 16 of 16
Search took 0.00 seconds.
Search: Posts Made By: dmoroian
Forum: Fluent UDF and Scheme Programming July 17, 2013, 14:03
Replies: 34
Views: 16,479
Posted By dmoroian
Stack overflow

This is a classical example of stack overflow programming error:

char str1[] = "file-";
char str2[] = ".dat";

strcat (str1, cur_ts);
strcat (str1, str2);


You allocate 6 bytes on the...
Forum: Fluent UDF and Scheme Programming June 29, 2013, 15:52
Replies: 34
Views: 16,479
Posted By dmoroian
I would use the command within "execute-commands"...

I would use the command within "execute-commands" and run it periodically every time-step or every iteration.
Forum: Fluent UDF and Scheme Programming October 18, 2012, 08:03
Replies: 34
Views: 16,479
Posted By dmoroian
Input/Ouput in parallel is not trivial, and...

Input/Ouput in parallel is not trivial, and certainly doesn't work straight from the serial implementation.
You'll have to look at the Fluent UDF Manual, chapter 7 "Parallel Considerations" for some...
Forum: Fluent UDF and Scheme Programming October 16, 2012, 15:44
Replies: 34
Views: 16,479
Posted By dmoroian
The chosen value ensures that I will find at...

The chosen value ensures that I will find at least one cell.


All three arrays are declared as "static", so if you fill them once, they will keep their values as long as the udf is loaded into...
Forum: Fluent UDF and Scheme Programming March 9, 2011, 04:13
Replies: 34
Views: 16,479
Posted By dmoroian
void mapCell(real *x, cell_t *cell, Thread...

void mapCell(real *x, cell_t *cell, Thread **thread)
{
Domain *d = Get_Domain(1);
Thread *t;
cell_t c;
real centroid[ND_ND];
real dist2[ND_ND];
real min = 1.0e6;

...
Forum: Fluent UDF and Scheme Programming May 19, 2010, 11:36
Replies: 34
Views: 16,479
Posted By dmoroian
The journal file looks ok, at first glance. Most...

The journal file looks ok, at first glance. Most likely there is something wrong with the case file.
You could ask fluent support for that error.
I don't think it matters how many iterations you...
Forum: Fluent UDF and Scheme Programming May 19, 2010, 07:25
Replies: 34
Views: 16,479
Posted By dmoroian
Before you continue with your gui script, try to...

Before you continue with your gui script, try to type in the text interface:

/file/export

then you will understand the meaning of the entire command from above.
The GUI record macro was just a...
Forum: Fluent UDF and Scheme Programming May 19, 2010, 06:12
Replies: 34
Views: 16,479
Posted By dmoroian
Most likely you run a journal file that is...

Most likely you run a journal file that is different from what you think it has inside. Did you try my version of script?
Forum: Fluent UDF and Scheme Programming May 19, 2010, 03:02
Replies: 34
Views: 16,479
Posted By dmoroian
/file/export ascii data_output/bubu.txt 13 () no pressure () no

Here come some comments:
1. The "Apply" line should not be removed (although it was my previous suggestion). This should fix the path for the output data.
2. In the picture you present there is a...
Forum: Fluent UDF and Scheme Programming May 17, 2010, 14:03
Replies: 34
Views: 16,479
Posted By dmoroian
You'll have to experiment with this, but for the...

You'll have to experiment with this, but for the moment try changing:

(cx-gui-do cx-set-text-entry "Select File*FilterText" "e:\3_re_fluent_with_actuator\active\1hz\\*")
(cx-gui-do...
Forum: Fluent UDF and Scheme Programming May 17, 2010, 06:13
Replies: 34
Views: 16,479
Posted By dmoroian
To Ivan: If you check the help page for the...

To Ivan:
If you check the help page for the "Execute Commands" dialog box, you'll find out that it can run commands defined using the button "Define Macro.." or text commands. In your case, the...
Forum: Fluent UDF and Scheme Programming May 17, 2010, 05:15
Replies: 34
Views: 16,479
Posted By dmoroian
No it does not execute the transcript unless you...

No it does not execute the transcript unless you tell it to. There are several ways to tell fluent to run a script:
1. In the GUI, chose from the menu: File->Read->Scheme or File->Read->Journal...
Forum: Fluent UDF and Scheme Programming May 14, 2010, 17:45
Replies: 34
Views: 16,479
Posted By dmoroian
Hi Ivan, Check chapter 4.1.7 in the user manual...

Hi Ivan,
Check chapter 4.1.7 in the user manual for automatic numbering of files, and 4.13 for exporting solution data (I think you're interested in the ASCII format).
The simplest way is to record...
Forum: Fluent UDF and Scheme Programming May 14, 2010, 15:41
Replies: 34
Views: 16,479
Posted By dmoroian
Well, one of the facilities is that you can...

Well, one of the facilities is that you can automatically change the name of the output file every iteration or every time step.
Forum: Fluent UDF and Scheme Programming May 14, 2010, 13:06
Replies: 34
Views: 16,479
Posted By dmoroian
Hello Ivan, For that purpose, I would use...

Hello Ivan,
For that purpose, I would use macros (scheme scripts) instead of udf's. You can set fluent to export the data in those planes in many different formats (my preferate is DX format for the...
Forum: Fluent UDF and Scheme Programming February 9, 2010, 07:15
Replies: 34
Views: 16,479
Posted By dmoroian
#include"udf.h" #define c_evap 1.0 #define...

#include"udf.h"
#define c_evap 1.0
#define c_con 0.1
DEFINE_CAVITATION_RATE(user_cav_rate, c, t, p, rhoV, rhoL, mafV, p_v, cigma, f_gas, m_dot)
{
FILE *pf;
real p_vapor = *p_v;
real...
Showing results 1 to 16 of 16

 
Forum Jump

All times are GMT -4. The time now is 08:32.