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

Change directory

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 9, 2020, 04:33
Default Change directory
  #1
Member
 
Francesco
Join Date: Apr 2020
Posts: 56
Rep Power: 7
franc1 is on a distinguished road
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??
franc1 is offline   Reply With Quote

Old   September 9, 2020, 06:32
Default
  #2
Member
 
Francesco
Join Date: Apr 2020
Posts: 56
Rep Power: 7
franc1 is on a distinguished road
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.
franc1 is offline   Reply With Quote

Old   September 18, 2020, 10:28
Default
  #3
New Member
 
Join Date: Sep 2020
Posts: 8
Rep Power: 7
p.b+cfd is on a distinguished road
I'm not sure if it helps, but afaik you can simply do
Code:
!cd "/some/directory"
on Linux or
Code:
!cd "C:\\some\\directory"
on Windows. Note the exclamation marks!

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"))
or
Code:
(define directory "C:\\some\\directory")
(ti-menu-load-string (format #f "/file/interpolate write ~s yes yes") (string-append directory "\\" "fineciclo3.ip"))
p.b+cfd is offline   Reply With Quote

Reply

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
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


All times are GMT -4. The time now is 15:34.