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

Importing Multiple Mesh Files Using Scheme

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By AlexanderZ

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 23, 2020, 05:35
Default Importing Multiple Mesh Files Using Scheme
  #1
New Member
 
Ataberk
Join Date: Nov 2019
Posts: 14
Rep Power: 7
berkozaydin is on a distinguished road
Hi guys,

I tried to import some mesh files using scheme coding. However, I got this error and this was my thousands of trials Here is my code:

file/set-tui-version "20.2"

(define nameVector (vector "dhw_plate2.msh.gz" "dhw_plate1.msh.gz" "dhw_channel.msh.gz" "ch_plate.msh.gz" "ch_channel.msh.gz"))

(do ((x 0 (+ x 1))) ((> x 4))
(begin (define a (vector-ref nameVector x)))
(display a)
(begin (file read-case a)))

And this is my error:

dhw_plate2.msh.gz
Error: eval: unbound variable
Error Object: file

Warning: An error or interrupt occurred while reading the journal file.
Some commands may not have been completed.

So, what can I do to fix this issue? Thanks a lot!
berkozaydin is offline   Reply With Quote

Old   November 23, 2020, 07:43
Default
  #2
Senior Member
 
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34
AlexanderZ will become famous soon enoughAlexanderZ will become famous soon enough
Code:
(define nameVector (vector "dhw_plate2.msh.gz" "dhw_plate1.msh.gz" "dhw_channel.msh.gz" "ch_plate.msh.gz" "ch_channel.msh.gz"))

(do ((x 0 (+ x 1))) ((> x 4))
(begin
(ti-menu-load-string (format #f "file read-case ~a" (vector-ref nameVector x)))
)
berkozaydin likes this.
__________________
best regards


******************************
press LIKE if this message was helpful
AlexanderZ is offline   Reply With Quote

Reply

Tags
fluent, import, mesh, scheme, udf


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
decomposePar problem: Cell 0contains face labels out of range vaina74 OpenFOAM Pre-Processing 37 July 20, 2020 06:38
[GAMBIT] Can I import multiple gambit mesh files to fluent? swtbkim ANSYS Meshing & Geometry 2 September 22, 2015 05:07
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 10:38
fluent add additional zones for the mesh file SSL FLUENT 2 January 26, 2008 12:55
Icemcfd 11: Loss of mesh from surface mesh option? Joe CFX 2 March 26, 2007 19:10


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