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

[OpenFOAM.com] OpenFOAMplus is inaccessible from home directory

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 15, 2018, 05:23
Default OpenFOAMplus is inaccessible from home directory
  #1
Senior Member
 
Ali Shayegh
Join Date: Oct 2015
Posts: 131
Rep Power: 11
amuzeshi is on a distinguished road
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.
amuzeshi is offline   Reply With Quote

Old   July 15, 2018, 11:00
Default
  #2
Senior Member
 
matej forman
Join Date: Mar 2009
Location: Brno, Czech Republic
Posts: 182
Rep Power: 17
matejfor is on a distinguished road
Quote:
Originally Posted by amuzeshi View Post
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.


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
matejfor is offline   Reply With Quote

Old   July 15, 2018, 15:57
Default
  #3
Senior Member
 
Ali Shayegh
Join Date: Oct 2015
Posts: 131
Rep Power: 11
amuzeshi is on a distinguished road
Quote:
Originally Posted by matejfor View Post
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
Yes; into a docker.
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
Any help would be appreciated.
amuzeshi is offline   Reply With Quote

Old   July 24, 2018, 18:53
Default
  #4
Senior Member
 
matej forman
Join Date: Mar 2009
Location: Brno, Czech Republic
Posts: 182
Rep Power: 17
matejfor is on a distinguished road
Quote:
Originally Posted by amuzeshi View Post
Yes; into a docker.
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
Any help would be appreciated.
Hi Amuzeshi,

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.
matejfor is offline   Reply With Quote

Old   August 7, 2018, 09:45
Default
  #5
Senior Member
 
Ali Shayegh
Join Date: Oct 2015
Posts: 131
Rep Power: 11
amuzeshi is on a distinguished road
Quote:
Originally Posted by matejfor View Post
Hi Amuzeshi,

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.

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
openfoam-plus 1806 $FOAM_RUN :

Code:
/root/OpenFOAM/root-v1806/run
Actually the problem is that my user home directory is something different from root directory...It is not as easy to work with root as it is with user's home.
Any idea would be appreciated...
amuzeshi is offline   Reply With Quote

Old   August 9, 2018, 07:20
Default OpenFOAMplus is inaccessible from home directory
  #6
Senior Member
 
Ali Shayegh
Join Date: Oct 2015
Posts: 131
Rep Power: 11
amuzeshi is on a distinguished road
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
openfoam-plus 1806 $FOAM_RUN :
Code:
/root/OpenFOAM/root-v1806/run
I followed the instructions in the this link, but it is very ambiguous how it would solve my problem.
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/
Any idea would be appreciated...
amuzeshi is offline   Reply With Quote

Old   August 17, 2018, 16:35
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
This would explain why you are seeing the path "/root/OpenFOAM/root-v1806/run".


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.
__________________
wyldckat is offline   Reply With Quote

Old   August 19, 2018, 01:20
Default
  #8
Senior Member
 
Ali Shayegh
Join Date: Oct 2015
Posts: 131
Rep Power: 11
amuzeshi is on a distinguished road
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/
4-
Code:
ali@soha:~/OFPlus$ chmod +x installOpenFOAM
ali@soha:~/OFPlus$ ./installOpenFOAM
I don't remember if I used "sudo" or not.
5-
Code:
ali@soha:~/OFPlus$ chmod +x startOpenFOAM
WITHOUT "sudo".

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
Appendix:
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.
amuzeshi is offline   Reply With Quote

Old   August 20, 2018, 15:33
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
Then run ./installOpenFOAM again as normal user.


Hopefully this solves the strange way "root" user was being used.
amuzeshi likes this.
wyldckat is offline   Reply With Quote

Old   August 21, 2018, 08:52
Default
  #10
Senior Member
 
Ali Shayegh
Join Date: Oct 2015
Posts: 131
Rep Power: 11
amuzeshi is on a distinguished road
Thank you!
I will examine and let u know.
amuzeshi is offline   Reply With Quote

Reply


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


All times are GMT -4. The time now is 11:29.