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 13 of 13
Search took 0.00 seconds.
Search: Posts Made By: dmoroian
Forum: Fluent UDF and Scheme Programming July 16, 2010, 04:16
Replies: 32
Views: 12,905
Posted By dmoroian
None of the DEFINE_* macros that fluent provides...

None of the DEFINE_* macros that fluent provides for you are designed to be called by you, but by fluent it self. Consequently, you cannot call any of them.
Here I think I see a missunderstanding....
Forum: Fluent UDF and Scheme Programming July 15, 2010, 02:23
Replies: 32
Views: 12,905
Posted By dmoroian
DEFINE_EXECUTE_AT_END cannot directly reset your...

DEFINE_EXECUTE_AT_END cannot directly reset your boundary conditions, for this purpose fluent provides you with a macro called DEFINE_PROFILE. You have to present a bit more detailed what you do.
Forum: Fluent UDF and Scheme Programming July 13, 2010, 15:35
Replies: 32
Views: 12,905
Posted By dmoroian
1. No it is not. 2. Yes, my choice for this...

1. No it is not.
2. Yes, my choice for this case would be to do everything inside a udf.
Forum: Fluent UDF and Scheme Programming July 13, 2010, 07:29
Replies: 32
Views: 12,905
Posted By dmoroian
Your questions are still confusing me, so please...

Your questions are still confusing me, so please make a simple and clear list with your problem.
This is what I understood until now:
1. You want to read a fluent profile from a file. For this...
Forum: Fluent UDF and Scheme Programming July 12, 2010, 14:03
Replies: 32
Views: 12,905
Posted By dmoroian
I think that rp variables are available for the...

I think that rp variables are available for the udf once per session. That means, if you change an rp variable using your scheme script, the change will not be seen by your udf unless you make a save...
Forum: Fluent UDF and Scheme Programming July 10, 2010, 06:37
Replies: 32
Views: 12,905
Posted By dmoroian
DEFINE_EXECUTE_AT_END will be executed every...

DEFINE_EXECUTE_AT_END will be executed every iteration or time step (depending on the steady/unsteady calculation).
Why don't you check inside if the iteration is multiple of 10, and if it is, then...
Forum: Fluent UDF and Scheme Programming July 9, 2010, 02:45
Replies: 32
Views: 12,905
Posted By dmoroian
1. Fluent udf's must be written in C not C++. ...

1. Fluent udf's must be written in C not C++.
2. You have to create a library not a stand alone program, which means, among other things, that you cannot include a "main" function in your library,...
Forum: Fluent UDF and Scheme Programming July 5, 2010, 10:35
Replies: 32
Views: 12,905
Posted By dmoroian
This is just a wild guess, since I've never used...

This is just a wild guess, since I've never used it, but try:

...
(if (not (rp-var-object 'bc/x))
(rp-var-define 'bc/x (cdr (list-ref bubu 1)) 'list #f)
...
Forum: Fluent UDF and Scheme Programming July 3, 2010, 04:06
Replies: 32
Views: 12,905
Posted By dmoroian
1. You have to be a bit more organized (let other...

1. You have to be a bit more organized (let other benefit from your experience, too). Your script shouldn't work since variable md is not defined. However, your error seems to be produced by the fact...
Forum: Fluent UDF and Scheme Programming July 2, 2010, 14:53
Replies: 32
Views: 12,905
Posted By dmoroian
Ok, so beside the "tes" profile file, you wrote a...

Ok, so beside the "tes" profile file, you wrote a scheme script that reads the profile and puts some of the objects into rp variables.
It would be very helpful if you post your scheme code. However,...
Forum: Fluent UDF and Scheme Programming July 2, 2010, 02:13
Replies: 32
Views: 12,905
Posted By dmoroian
1. Well, you define a list of 4 elements but put...

1. Well, you define a list of 4 elements but put 5 into it (x 4 4 4 4), and you get an error! No surprize here :)
I suspect that fluent will consider only the last 4 elements (due to the declared...
Forum: Fluent UDF and Scheme Programming June 30, 2010, 03:17
Replies: 32
Views: 12,905
Posted By dmoroian
Code snippet

Hello Gary,
I don't know how are you going to use the scheme script, but here it comes a snippet:


(define bubu (open-input-file "interestingProfile.prof"))
(define cucu (read bubu))...
Forum: Fluent UDF and Scheme Programming June 29, 2010, 11:06
Replies: 32
Views: 12,905
Posted By dmoroian
As far as I remember, the profile file format...

As far as I remember, the profile file format consist in a list of scheme objects, and is in ascii format. Each object is ordered the same way as the face list in the boundary from wich the profile...
Showing results 1 to 13 of 13

 
Forum Jump

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