CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Fluent UDF and Scheme Programming (https://www.cfd-online.com/Forums/fluent-udf/)
-   -   Loading library via scheme command (https://www.cfd-online.com/Forums/fluent-udf/141882-loading-library-via-scheme-command.html)

crevoise September 18, 2014 09:04

Loading library via scheme command
 
Hello

It might seem a silly question. I wish to load some user defined udf library and to make this procedure automatic by scheme command, saved in a .scm file.

1) Within the Fluent interface, the library loading is done normally by: Define>User-defined>function>manage.

2) In the fluent environment, the following scheme command do the loading of the library:
(ti-open-udf-library)load libudf

3)However, I wish to save this procedure into a .scm file, to be opened via file>read>scheme
When executing the .scm file, fluent is stoping after the first command (ti-open-udf-library) and request to give the answer to load/unload/compile. This is not really what i was looking for, as the aim was not to have to interact.

My question is: why, while reading the .scm file, fluent is stopping at the first scheme command (while it does not if I am writing it directly on the fluent window, and access the load command by itself)
Does anyone knows how to overcome this issue?

Thanks for any help

rarnaunot March 31, 2017 04:01

Hi!

I have almost the same problem. How do you solve that?

I've been thinking to use DEFINE_EXECUTE_ON_LOADING or EXECUTE_ON_LOADING but I don't know the difference :(

Thanks in advance

pakk March 31, 2017 04:23

For me, the following works:

Code:

(open-udf-library "libudf")
Assuming that "libudf" is already compiled.

rarnaunot March 31, 2017 06:50

Quote:

Originally Posted by pakk (Post 643153)
For me, the following works:

Code:

(open-udf-library "libudf")
Assuming that "libudf" is already compiled.

Thanks!

I'll tried it! I found that more effective that trying another UDF with execute on loading or another macros.


All times are GMT -4. The time now is 20:05.