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

Fluent command line to change working directory

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 14, 2017, 12:17
Default Fluent command line to change working directory
  #1
New Member
 
Omar
Join Date: Mar 2017
Posts: 3
Rep Power: 9
{Omar} is on a distinguished road
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
{Omar} is offline   Reply With Quote

Old   April 14, 2017, 12:27
Default
  #2
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,754
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
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
LuckyTran is offline   Reply With Quote

Old   April 14, 2017, 17:20
Default
  #3
New Member
 
Omar
Join Date: Mar 2017
Posts: 3
Rep Power: 9
{Omar} is on a distinguished road
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!
{Omar} is offline   Reply With Quote

Reply

Tags
command line, fluent


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


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