|
[Sponsors] |
March 23, 2018, 05:51 |
Reading mesh from variable
|
#1 |
New Member
Mattias Stridh
Join Date: Mar 2018
Posts: 2
Rep Power: 0 |
Hello,
I have a very problem which I am sure has a very simple solution but I don't seem to find it. I have a journal file and in that file I read meshes and journals from another folder. I want to make a variable called path to the folder and only add the file name when I do the reading. What I want to do is (define path "/home/.../working_folder/") file/read-mesh (string-append path "my_mesh.msh") file/read-journal (string-append path "my_journal.jou") But read-mesh tries to read (string-append... Same thing if I do (define path "/home/.../working_folder/") (define full_path (string-append path "my_mesh.msh")) file/read-mesh full_path "Error: File "full_path" not found!" I am in a Linux environment. Thanks |
|
March 25, 2018, 22:50 |
|
#2 | |
Senior Member
Alexander
Join Date: Apr 2013
Posts: 2,363
Rep Power: 34 |
Quote:
you may try to use this function Code:
(ti-menu-load-string (format #f "file r-c ~a OK\n" (string-append path "my_mesh.msh"))) |
||
March 26, 2018, 04:13 |
|
#3 |
New Member
Mattias Stridh
Join Date: Mar 2018
Posts: 2
Rep Power: 0 |
Great! Thank you
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
sliding mesh problem in CFX | Saima | CFX | 46 | September 11, 2021 08:38 |
[ICEM] Error reading 2D hybrid ICEM mesh into Fluent | Kloz | ANSYS Meshing & Geometry | 1 | June 6, 2016 14:45 |
Cht tutorial in 15 | braennstroem | OpenFOAM Running, Solving & CFD | 197 | June 10, 2015 04:02 |
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! | sc298 | OpenFOAM Meshing & Mesh Conversion | 2 | March 27, 2011 22:11 |
Convergence moving mesh | lr103476 | OpenFOAM Running, Solving & CFD | 30 | November 19, 2007 15:09 |