|
[Sponsors] |
Fluent command line to change working directory |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 14, 2017, 12:17 |
Fluent command line to change working directory
|
#1 |
New Member
Omar
Join Date: Mar 2017
Posts: 3
Rep Power: 9 |
Hi all,
I am running a fluent case from a journal file. The working directory is the directory where the journal file is located. I have .cas and .dat files in the upper directory, i need to load these files but I cant seem to be able to change the directory to that of the .cas and .dat files (Note: I cannot copy or move the .cas and .dat files to the working directory) Is there a way to load the .cas and .dat files by changing the directory or perhaps by some other way (btw: presume i do not know the full path to the .cas and .dat files) Best regards, Omar |
|
April 14, 2017, 12:27 |
|
#2 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,762
Rep Power: 66 |
If you want to experiment
pwd is print working directory chdir for changing directory Btw you don't need to chdir into a directory. you can just do rcd "folder/blah.cas" This load the blah.cas file that is in the folder directory which is presumably a folder in the current directory. To load something in a parent directory you do rcd "../blah.cas" the .. means to look in the parent directory the same way you would use chdir .. chdir .. takes you up one directory chdir ../.. takes you up two You can chain combinations of .. and folder names to navigate all over the place |
|
April 14, 2017, 17:20 |
|
#3 |
New Member
Omar
Join Date: Mar 2017
Posts: 3
Rep Power: 9 |
Thanks a lot Lucky Tran, it worked just fine.
I was playing around with the commands earlier but couldn't find that appropriate solution. Now it works! |
|
Tags |
command line, fluent |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Change current working directory with a text command? | macfly | FLUENT | 2 | May 9, 2024 13:04 |
polynomial BC | srv537 | OpenFOAM Pre-Processing | 4 | December 3, 2016 10:07 |
Need help regarding phase change models in ansys fluent | diggee | Fluent Multiphase | 0 | October 11, 2016 12:35 |
Running UDF with Supercomputer | roi247 | FLUENT | 4 | October 15, 2015 14:41 |
Working directory in starccm+ | crevoise | STAR-CCM+ | 4 | January 22, 2013 10:40 |