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 Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By pakk

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 18, 2014, 09:04
Question Loading library via scheme command
  #1
Member
 
Join Date: Oct 2011
Location: Thessaloniki, Greece
Posts: 75
Rep Power: 12
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, 04:01
Default
  #2
Member
 
Rosario Arnau
Join Date: Feb 2017
Location: Spain
Posts: 57
Rep Power: 7
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, 04:23
Default
  #3
Senior Member
 
Join Date: Nov 2013
Posts: 1,969
Rep Power: 24
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, 06:50
Default
  #4
Member
 
Rosario Arnau
Join Date: Feb 2017
Location: Spain
Posts: 57
Rep Power: 7
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 06:52
Implementation of QUICK scheme Romuald Skoda Main CFD Forum 11 November 6, 2017 21:20
UDF Compilation Error - Loading Library - COMMON Problem! Help! robtheslob Fluent UDF and Scheme Programming 8 July 24, 2015 00:53
8x icoFoam speed up with Cufflink CUDA solver library kmooney OpenFOAM Running, Solving & CFD 42 November 6, 2012 11:37
SCHEME command to write XY plot to file? Angelo Sozzi FLUENT 1 July 22, 2004 16:54


All times are GMT -4. The time now is 04:12.