|
[Sponsors] |
[OpenFOAM.com] OpenFOAMplus is inaccessible from home directory |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 15, 2018, 05:23 |
OpenFOAMplus is inaccessible from home directory
|
#1 |
Senior Member
Ali Shayegh
Join Date: Oct 2015
Posts: 131
Rep Power: 11 |
Hi Mat
I have installed openfoam v1806 on ubuntu 16.04 and mkdir -p $FOAM_RUN , but now I don't know where is my $FOAM_RUN . Maybe at etc/var/lib/docker But I don't have the permission to see the the folder contents. |
|
July 15, 2018, 11:00 |
|
#2 | |
Senior Member
matej forman
Join Date: Mar 2009
Location: Brno, Czech Republic
Posts: 182
Rep Power: 17 |
Quote:
Hi, Not sure now - have you installed your OpenFOAM 1806 into a docker or you have installed OpenFOAM without any docker straight onto your Ubuntu box? In both cases, (as docker is mapping your home directory) you end up with a directory created at: /home/<yourUserName>/OpenFOAM/<yourUserName>-v1806/run And you can always run: echo $FOM_RUN to see what is the path. Mat |
||
July 15, 2018, 15:57 |
|
#3 | |
Senior Member
Ali Shayegh
Join Date: Oct 2015
Posts: 131
Rep Power: 11 |
Quote:
To tell the truth, I have OF v1806 and OF6 both installed and the directory that you mentioned is $FOAM_RUN of the latter. And at the end (as u could guess): Code:
echo $FOAM_RUN /home/ali/OpenFOAM/ali-6/run |
||
July 24, 2018, 18:53 |
|
#4 | |
Senior Member
matej forman
Join Date: Mar 2009
Location: Brno, Czech Republic
Posts: 182
Rep Power: 17 |
Quote:
if your docker is installed on Linux box, your docker home is mounted to your hosting system home. So your $FOAM_RUN is really in /home/ali/OpenFOAM ... If your docker is on Mac or Windows, your host system home is not mounted to the docker user home. E.g. in docker in Mac, you have a directory called workingDir into which the user home is mounted. It makes sense to create your $FOAM_RUN in there, so your case files are accessible from the host system as well. For example on my box, the address is: echo $FOAM_RUN /home/ofuser/OpenFOAM/ofuser-v1712/run but in /home/ofuser I created a symbolic link: OpenFOAM -> workingDir/OpenFOAM To make life easier. Hope this helps. |
||
August 7, 2018, 09:45 |
|
#5 | |
Senior Member
Ali Shayegh
Join Date: Oct 2015
Posts: 131
Rep Power: 11 |
Quote:
Hello My docker is installed on Linux box, BUT docker home is NOT mounted to my home directory. So my $FOAM_RUN of openFoam+ is not really in /home/ali/OpenFOAM , instead this directory is the $FOAM_RUN of openFoam6.0. To be more clear: openfoam 6.0 $FOAM_RUN : Code:
/home/user_name/OpenFOAM/user_name-6/run Code:
/root/OpenFOAM/root-v1806/run Any idea would be appreciated... |
||
August 9, 2018, 07:20 |
OpenFOAMplus is inaccessible from home directory
|
#6 |
Senior Member
Ali Shayegh
Join Date: Oct 2015
Posts: 131
Rep Power: 11 |
Hello
I have installed OpenFOAMplus 1806 into a docker; But there are 2 super-important questions.. 1-My docker is installed on Linux , BUT docker home is NOT mounted to my home directory. To tell the truth, I have OpenFOAM-plus v1806 and OpenFOAM6(from cfd.direct) both installed .So my $FOAM_RUN of openFoam-plus is not really in /home/ali/OpenFOAM , instead this directory is the $FOAM_RUN of openFoam6.0 (echo $HOME results : /home/ali). To be more clear: openfoam 6.0 $FOAM_RUN : Code:
/home/ali/OpenFOAM/ali-6/run Code:
/root/OpenFOAM/root-v1806/run How can I access openfoam-plus 1806 from home directory? 2-Additionally, I don't know where is openfoam-plus installed?? There is nothing regarding with openfoam-plus in the following directory: Code:
/home/ali/OpenFOAM/ |
|
August 17, 2018, 16:35 |
|
#7 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick answer @amuzeshi: I don't know if you have solved your problem, but my guess is that you are launching the script startOpenFOAM like this:
Code:
sudo ./startOpenFOAM If this is not what is happening, then please provide step-by-step details on how you are launching the OpenFOAM v1806 container and how you installed it.
__________________
|
|
August 19, 2018, 01:20 |
|
#8 |
Senior Member
Ali Shayegh
Join Date: Oct 2015
Posts: 131
Rep Power: 11 |
Hi cKat!
I am really appreciated for your attention. step-by-step details on how I installed OFplus : 1-Downloading docker CE package from here. 2-Following " Install from a package". 3-Creating a folder named "OFPlus", Downloading installOpenFOAM , startOpenFOAM scripts and saving them in : Code:
$HOME/OFPlus/ Code:
ali@soha:~/OFPlus$ chmod +x installOpenFOAM ali@soha:~/OFPlus$ ./installOpenFOAM 5- Code:
ali@soha:~/OFPlus$ chmod +x startOpenFOAM 6- Again WITHOUT "sudo": Code:
ali@soha:~/OFPlus$ ./startOpenFOAM non-network local connections being added to access control list of_v1806 bash-4.2# cd $FOAM_RUN bash-4.2# ls ../.. root-v1806 Code:
ali@soha:~$ docker images REPOSITORY TAG IMAGE ID CREATED SIZE rocker/rstudio latest 38f4873e0633 10 days ago 1.08GB hello-world latest 2cb0d9787c4d 5 weeks ago 1.85kB openfoamplus/of_v1806_centos73 latest 256f35c266e8 7 weeks ago 2.21GB Last edited by amuzeshi; August 19, 2018 at 04:36. |
|
August 20, 2018, 15:33 |
|
#9 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Quick answer: Excellent, all of this information does help. If you don't remember if you ran the installation script with sudo, then try removing the image and then installing again as normal user.
You can remove the image with the following command: Code:
docker rmi 256f35c266e8 Hopefully this solves the strange way "root" user was being used. |
|
August 21, 2018, 08:52 |
|
#10 |
Senior Member
Ali Shayegh
Join Date: Oct 2015
Posts: 131
Rep Power: 11 |
Thank you!
I will examine and let u know. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
how to calculate mass flow rate on patches and summation of that during the run? | immortality | OpenFOAM Post-Processing | 104 | February 16, 2021 09:46 |
[OpenFOAM.org] Error creating ParaView-4.1.0 OpenFOAM 2.3.0 | tlcoons | OpenFOAM Installation | 13 | April 20, 2016 18:34 |
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch | gschaider | OpenFOAM Installation | 225 | August 25, 2015 20:43 |
OpenFoam install script Error during paraFoam installation | SePe | OpenFOAM Installation | 10 | June 19, 2010 16:15 |
critical error during installation of openfoam | Fabio88 | OpenFOAM Installation | 21 | June 2, 2010 04:01 |