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 7 of 7
Search took 0.00 seconds.
Search: Posts Made By: Pmaroul
Forum: Fluent UDF and Scheme Programming March 30, 2019, 06:05
Replies: 10
Views: 1,143
Posted By Pmaroul
Dear Alexander. Your answer was so...

Dear Alexander.

Your answer was so helpful!!. Really I had to define that array in a define-on-demand and then to update in other macros.

Good luck and best wish for you.
Forum: Fluent UDF and Scheme Programming March 22, 2019, 06:18
Replies: 10
Views: 1,143
Posted By Pmaroul
Dear Alexander I compiled your suggested...

Dear Alexander

I compiled your suggested sub-code and encountered below error:

error C2040: 'A' : 'int ' differs in levels of indirection from 'double ** ' for the command line 4:"A=...
Forum: Fluent UDF and Scheme Programming March 21, 2019, 10:10
Replies: 10
Views: 1,143
Posted By Pmaroul
Dear Alexander. Are the n, m constant...

Dear Alexander.

Are the n, m constant parameters dynamic allocated in udf's , too?
Forum: Fluent UDF and Scheme Programming March 5, 2019, 15:27
Replies: 10
Views: 1,143
Posted By Pmaroul
Thanks Sirs very much ! If you're not in a...

Thanks Sirs very much !

If you're not in a hurry, can you send a Pseudocode executing the matrix's printing(A[i,j]) in a file, for example, in intervals of every ten time steps, and then from...
Forum: Fluent UDF and Scheme Programming March 4, 2019, 05:15
Replies: 10
Views: 1,143
Posted By Pmaroul
Thanks sir so much. How about...

Thanks sir so much.

How about two-dimensional arrays?
Is the following Pseudocode right?

#include udf.h
int n,m,i;
real **A;
A= (real**)malloc((m)*sizeof(real*));
for (j=0; j<m; j++)
Forum: Fluent UDF and Scheme Programming March 3, 2019, 17:55
Replies: 10
Views: 1,143
Posted By Pmaroul
Maybe I couldn't ask my question clearly,...

Maybe I couldn't ask my question clearly, therefore I try to re-raise my question with a Pseudocode .



#include udf.h
for(int i=0;i<n0;i++)
for(int j=0;j<m0;j++)
A(i,j)= A(i,j)+ /*some...
Forum: Fluent UDF and Scheme Programming February 28, 2019, 12:43
Replies: 10
Views: 1,143
Posted By Pmaroul
Save & read a vector (array) in same or other macros for next time step or iteration

Hello all;

How can we save a written vector(array) (for example 2*30 ) and read (use) it for other or same UDF macros in the next time step or iterations?

Thanks a lot for any advice.
...
Showing results 1 to 7 of 7

 
Forum Jump

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