|
[Sponsors] |
[OpenFOAM.com] [Windows] How to move/change the Working Folder to Another Drive? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 3, 2017, 10:08 |
[Windows] How to move/change the Working Folder to Another Drive?
|
#1 |
Member
Join Date: May 2017
Posts: 47
Rep Power: 9 |
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. |
|
July 3, 2017, 11:25 |
|
#2 | |
Senior Member
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 11 |
Quote:
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 |
||
July 4, 2017, 09:22 |
|
#3 |
Member
Join Date: May 2017
Posts: 47
Rep Power: 9 |
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 08:24. Reason: typo |
|
March 11, 2018, 07:56 |
File
|
#4 |
New Member
Michael Pucher
Join Date: Mar 2018
Posts: 4
Rep Power: 8 |
Hi,
I would like to do a similar thing. Could one of you share with me scripts that were used? Much appreciated! Thanks, Michael |
|
November 13, 2018, 04:40 |
|
#5 |
New Member
Arvid Dujardin
Join Date: Nov 2018
Posts: 1
Rep Power: 0 |
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 |
|
January 25, 2019, 14:52 |
|
#6 |
Senior Member
Pawan Ghildiyal
Join Date: Nov 2015
Posts: 135
Rep Power: 11 |
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 Last edited by pgh; January 25, 2019 at 15:05. Reason: link for download provided |
|
Tags |
change, drive, folder, ssd, workingdir |
|
|
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 07:26 |
[OpenFOAM.com] v1612+ [Windows] How to change the workingDir shared folder? | LThomes | OpenFOAM Installation | 4 | May 22, 2017 09:16 |
[OpenFOAM.com] v1606+ Run Folder | JSMOKA | OpenFOAM Installation | 5 | December 18, 2016 20:47 |
centOS 5.6 : paraFoam not working | yossi | OpenFOAM Installation | 2 | October 9, 2013 02:41 |
DPM parallel is not working but serial is working | johnwinter | FLUENT | 1 | March 27, 2012 03:01 |