CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT > Fluent UDF and Scheme Programming

Loading library via scheme command

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By pakk

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 18, 2014, 10:04
Question Loading library via scheme command
  #1
Member
 
Join Date: Oct 2011
Location: Thessaloniki, Greece
Posts: 75
Rep Power: 15
crevoise is on a distinguished road
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
crevoise is offline   Reply With Quote

Old   March 31, 2017, 05:01
Default
  #2
Member
 
Rosario Arnau
Join Date: Feb 2017
Location: Spain
Posts: 57
Rep Power: 9
rarnaunot is on a distinguished road
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
rarnaunot is offline   Reply With Quote

Old   March 31, 2017, 05:23
Default
  #3
Senior Member
 
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27
pakk will become famous soon enough
For me, the following works:

Code:
(open-udf-library "libudf")
Assuming that "libudf" is already compiled.
rarnaunot likes this.
pakk is offline   Reply With Quote

Old   March 31, 2017, 07:50
Default
  #4
Member
 
Rosario Arnau
Join Date: Feb 2017
Location: Spain
Posts: 57
Rep Power: 9
rarnaunot is on a distinguished road
Quote:
Originally Posted by pakk View Post
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.
rarnaunot is offline   Reply With Quote

Reply

Tags
library, scheme


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR: unable to find library HJH CFX 6 February 26, 2019 07:52
Implementation of QUICK scheme Romuald Skoda Main CFD Forum 11 November 6, 2017 22:20
UDF Compilation Error - Loading Library - COMMON Problem! Help! robtheslob Fluent UDF and Scheme Programming 8 July 24, 2015 01:53
8x icoFoam speed up with Cufflink CUDA solver library kmooney OpenFOAM Running, Solving & CFD 42 November 6, 2012 12:37
SCHEME command to write XY plot to file? Angelo Sozzi FLUENT 1 July 22, 2004 17:54


All times are GMT -4. The time now is 14:52.