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

[OpenFOAM.com] [Windows] How to move/change the Working Folder to Another Drive?

Register Blogs Community New Posts Updated Threads Search

Like Tree5Likes
  • 3 Post By pgh
  • 2 Post By pgh

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 3, 2017, 09:08
Default [Windows] How to move/change the Working Folder to Another Drive?
  #1
Member
 
Join Date: May 2017
Posts: 47
Rep Power: 9
LThomes is on a distinguished road
Greetings everyone,
I'm using OpenFOAM for Windows, and the current /home/ofuser/workingDir folder is shared with the C:/Users/myName folder. But now I have a SSD ( S: ). So I would like to run OpenFOAM inside this drive, that is, I would like to set S:/someFolder as the workingDir shared folder.

Could anybody help me?

Thanks in advance.
LThomes is offline   Reply With Quote

Old   July 3, 2017, 10:25
Default
  #2
pgh
Senior Member
 
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 10
pgh is on a distinguished road
Quote:
Originally Posted by LThomes View Post
Greetings everyone,
I'm using OpenFOAM for Windows, and the current /home/ofuser/workingDir folder is shared with the C:/Users/myName folder. But now I have a SSD ( S: ). So I would like to run OpenFOAM inside this drive, that is, I would like to set S:/someFolder as the workingDir shared folder.

Could anybody help me?

Thanks in advance.


To access other drive , new scripts is needed and which will create a new container

I have provided a link below i.e at end to download tar file which has 4 files in it .



What you need to changed
i) Open the Virtual Machine and then close the default which is running



ii) Go to setting and add new drive which you want to share. As shown in attached image

i shared new drive E i.e e:\ to e/ folder in virtual box . Please do same with your drive



iii) Open the file of_start_container.ps1

and edit 4th line

docker-machine.exe ssh default "sudo mount -t vboxsf -o uid=1000,gid=50 e/ /root/../mountedDrive
(This is used by me . You need to replace e/ with your drive name (see attached image i.e for me e/ e:\ i.e e:\ is my directory which i mount)





Launching and creating container.

i) Click on the create_OF_plus.bat and it will create a new container

Close the terminal when process end

ii) Click on the startOF_plus . It will open container and now you can see two folder there
workingDir_mounted and workingDir . You need to use this script to launch openfoam .

You can click it multiple times and it will open the new terminal and you can work in multiple terminal with
openfoam environment set.

Download link:
https://ftpbox.esi-group.com/?u=fOb2...fv1612plus.tgz
Attached Images
File Type: png VirtualBOX.png (60.7 KB, 111 views)
Mojtaba.a, fondexx and LThomes like this.
pgh is offline   Reply With Quote

Old   July 4, 2017, 08:22
Default
  #3
Member
 
Join Date: May 2017
Posts: 47
Rep Power: 9
LThomes is on a distinguished road
It worked just fine!!! Thank you very much pgh for always helping me!

P.S.: Is there any way I could run this in a terminal-like window (just like the original OpenFOAM_Start)? It's running in PowerShell, but I like the good old black background
PowerShell.PNG

Last edited by LThomes; July 6, 2017 at 07:24. Reason: typo
LThomes is offline   Reply With Quote

Old   March 11, 2018, 06:56
Default File
  #4
New Member
 
Michael Pucher
Join Date: Mar 2018
Posts: 4
Rep Power: 8
MIchael_P is on a distinguished road
Hi,
I would like to do a similar thing. Could one of you share with me scripts that were used?
Much appreciated!
Thanks,
Michael
MIchael_P is offline   Reply With Quote

Old   November 13, 2018, 03:40
Default
  #5
New Member
 
Arvid Dujardin
Join Date: Nov 2018
Posts: 1
Rep Power: 0
arvid is on a distinguished road
Dear Pawan,

I have the same question as LThomes (or as in the posts of rudolf.hellmuth or garumple).

It seems none of the links to the zipped-files are accessible at this moment? Could you be so kind to provide, once again, a new link?

I understand you changed the settings in the Oracle VM VirtualBox Manager and you altered the of_start_container.ps1 file.
Since you renamed the create_OF and start_OF batch files, I suppose you altered these slightly in respect to the ones that come with the openFOAM for Windows installation?

Best regards,
Arvid
arvid is offline   Reply With Quote

Old   January 25, 2019, 13:52
Default
  #6
pgh
Senior Member
 
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 10
pgh is on a distinguished road
Ok.. Sure. Here is script. I will upload it soon in openfoam.com website soon
https://ftpbox.esi-group.com/?u=xXst...pt_ofv1806.tgz
wyldckat and arvid like this.

Last edited by pgh; January 25, 2019 at 14:05. Reason: link for download provided
pgh is offline   Reply With Quote

Reply

Tags
change, drive, folder, ssd, workingdir


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
[OpenFOAM.com] [Windows] Error message "of_create_container.exe has stopped working" JohnMartinGodo OpenFOAM Installation 6 August 9, 2017 06:26
[OpenFOAM.com] v1612+ [Windows] How to change the workingDir shared folder? LThomes OpenFOAM Installation 4 May 22, 2017 08:16
[OpenFOAM.com] v1606+ Run Folder JSMOKA OpenFOAM Installation 5 December 18, 2016 19:47
centOS 5.6 : paraFoam not working yossi OpenFOAM Installation 2 October 9, 2013 01:41
DPM parallel is not working but serial is working johnwinter FLUENT 1 March 27, 2012 02:01


All times are GMT -4. The time now is 06:51.