|
[Sponsors] | |||||
|
|
|
#1 |
|
Member
Francesco
Join Date: Apr 2020
Posts: 56
Rep Power: 7 ![]() |
Hi everybody,
i need to change the directory of a project. The command sync-chdir is not working on my case, i don't know why. How can i solve the problem?? |
|
|
|
|
|
|
|
|
#2 |
|
Member
Francesco
Join Date: Apr 2020
Posts: 56
Rep Power: 7 ![]() |
Basically i need to automatically write the interpolation file (temperature field of a disk), into the working directory. I used the following execute command:
/file/interpolate write fineciclo3 yes yes in which "fineciclo3" is the name of the file If i cannot do this i would like to change the working directory into another folder in order to avoid this problem. |
|
|
|
|
|
|
|
|
#3 |
|
New Member
Join Date: Sep 2020
Posts: 8
Rep Power: 7 ![]() |
I'm not sure if it helps, but afaik you can simply do
Code:
!cd "/some/directory" Code:
!cd "C:\\some\\directory" Alternatively you could use full paths: Code:
(define directory "/some/directory") (ti-menu-load-string (format #f "/file/interpolate write ~s yes yes") (string-append directory "/" "fineciclo3.ip")) Code:
(define directory "C:\\some\\directory") (ti-menu-load-string (format #f "/file/interpolate write ~s yes yes") (string-append directory "\\" "fineciclo3.ip")) |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Custom Thermophysical Properties | wsmith02 | OpenFOAM | 4 | June 1, 2023 15:30 |
| [swak4Foam] funkyDoCalc with OF2.3 massflow | NiFl | OpenFOAM Community Contributions | 14 | November 25, 2020 04:30 |
| [waves2Foam] Waves2Foam Related Topics | ngj | OpenFOAM Community Contributions | 660 | August 20, 2018 13:39 |
| polynomial BC | srv537 | OpenFOAM Pre-Processing | 4 | December 3, 2016 10:07 |
| [swak4Foam] Problem installing swak_2.x for OpenFoam-2.4.0 | towanda | OpenFOAM Community Contributions | 6 | September 5, 2015 22:03 |