Trying to build and install OpenFOAM 2.4.0 on Lubuntu 14.04 ARM7
Code:
Checking basic setup... |
Problem in open foam installation through ubuntu deb method
Followed installation instructions . got the following erros after sudo apt-get install
failed to faetch http://www.openfoam.org/download/ubuntu/dists trusty/main/binary-armfh/Packages 404 Not Found uname - m gives armv7l Please help . |
Greetings Hemanth and welcome to the forum!
I'm sorry to say that the OpenFOAM 2.4.0 Deb packages are not available for the ARM architectures. The closest I know about people being able to build/install OpenFOAM on ARM7 architectures have been these two:
Bruno |
1 Attachment(s)
Thanks Bruno for the reply. Glad to know at least there are two people who installed openfoam on armv processer.
I have goen through the first link and the conversation. I didn't clearly understand all the instructions. I am not knowing where to start and what to do. Pelase help me with the procedure to modify the things as per Jon Elvar Wallevik suggested. Any ways i will try doing some thing and mean while, i tried installation from source pack I got some error for which i am attachng the log file. Please help me with this if this problem is easy to fix. |
Quick answer:
|
1 Attachment(s)
gcc --version gives
gcc (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04) 4.8.4 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. g++ --version gives g++ (Ubuntu/Linaro 4.8.4-2ubuntu1~14.04) 4.8.4 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Here is log file. It shows the directory is not available because i deleted OpenFOAM folder. If you want me to compile again i will do that. Can you please send detailed instructions if available to install openfoam in ARM architecture. Thanks in advance and in the rhelogical site i didnt understand which version to download and how to install. Please help. |
Hi Hemanth,
Sorry for the late reply, but only today did I finally manage to take a quick look into this. If you're trying to install OpenFOAM 2.4.0 on a RaspberryPi 2, then you might want to check this post: http://www.cfd-online.com/Forums/ope...tml#post556013 - post #5 If you have some other machine, then the best I can suggest is as follows:
Best regards, Bruno |
Thanks Bruno,
Will try and let you the progress next weekend. How to whether system is rasberry pi or not ? |
Quote:
|
Raspberry Pi
I have recently build a Raspberry Pi cluster, using Raspberry pi model b 2, i have Openfoam 2.4.0 running every thing works, I can put together a how to if any one is intrested
|
Hi Linead,
Can you post a step by step post for installing Openfoam2.4 on ARM architecture if possible. |
Hi Hemanth
Yes that's not a problem I will put together a pdf as there are a few people who are interested. Depends how my workload is at work but hopefully I will get some thing on here within the next few days |
OpenFoam For Raspberry Pi
1 Attachment(s)
To Hemanth and every one else that is looking to install OpenFoam on a Raspberry Pi, see attachment.
I hope it is useful to some one, if you like this tutorial and you have any knowledge of setting up a axial fan boundary condition please let me know as that is what i need help with :) |
1 Attachment(s)
Quote:
Can you help from this if you can ? |
Hemanth
Try the instructions in the pdf I posted yesterday |
Quote:
When i did ./Allwmake in the path sepecified in instructions, It throws an error . ./Allwmake: 4 : ./Allwmake: wmake chkPwd : not found Error : Current directory is not $WM_PROJECT_DIR The environment variables are inconsistent with the installation. Check the Open FOAM entries in your dot-files and source them. It might be because of the previous environment variables that are set during installation through the other method by Bruno. |
Hi Hemanth
What os are you using ? I would suggest you start with reinstalling your os so that every thing is default then try again |
I just followed your tutorial. I only did not take the latest version of Rasbian but I took the one from May (Wheezy) since I assumed you used that one as well (Rasbian Jessie wasn't out when you guys had this discussion).
Unfortunately I got the exact same error as Hemanth. What should I do? Try it with Rasbian Jessie? Did you succeed eventually Hemanth? |
Strange that both of you are having troubbles. As two people have had the same error I will review the tutorial to make sure there are no errors and I will update. I am currently at the open foam user event and don't have the cluster to hand but I should get back to you by the end of the week
|
I am not sure yet but I might have fixed it by running:
source /home/pi/OpenFOAM/OpenFOAM-2.4.0/etc/bashrc which loaded the environment variables (I guess, I'm also new to this). Now it is doing stuff after I ran: /.Allwmake Does this seem like a logical solution? |
I had a feeling that was the error and i was going to check it tonight. If it is constantly printing out the compiling data to the terminal it should now be working. Just remember this part takes long :)
|
Yes it looks like it is compiling, seems like an infinite stream of stuff it is doing. I'll let you know if it succeeds! :D
|
That sounds about right I will validate it as well when I get home. Once it is finished compiling I suggest the first thing you do is to back up an image of the Rasbian.
That way you dont have to do it again should any thing go wrong and you can then copy that image to other nodes so you only have to do it once :) |
Hey Daniel,
It's is working fine and I already ran a simple Poiseuille simulation on the four cores. Right now I am trying to set up a cluster like you did with multiple RasPi2's. Unfortunately that is not going so smooth so far. I sort of got the openMPI working (well they do get some sort of a connection it seems) however I do get all sorts of errors a do not understand. Have you maybe got some tips on how you did it? update1: I think I got my openMPI running, (or maybe not), but I now get the same error for either running the icoFoam application using 'mpirun -np 8 -hostfile machines icoFoam -parallel > log.icoFoam' or 'foamJob -p -s icoFoam'. Namely I get this, Parallel processing using SYSTEMOPENMPI with 8 processors Executing: /usr/bin/mpirun -np 8 -hostfile machines -x FOAM_SETTINGS /home/pi/OpenFOAM/OpenFOAM-2.4.0/bin/foamExec -prefix /home/pi/OpenFOAM icoFoam -parallel | tee log /*---------------------------------------------------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.4.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ Build : 2.4.0-dcea1e13ff76 Exec : icoFoam -parallel Date : Nov 08 2015 Time : 20:20:33 Host : "master" PID : 2585 Case : /home/pi/FoamCases/ppWallGradParallel nProcs : 8 Slaves : 7 ( "master.2586" "master.2587" "master.2588" "slave1.2694" "slave1.2695" "slave1.2696" "slave1.2697" ) Pstream initialized with: floatTransfer : 0 nProcsSimpleSum : 0 commsType : nonBlocking polling iterations : 0 sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE). fileModificationChecking : Monitoring run-time modified files using timeStampMaster allowSystemOperations : Allowing user-supplied system call operations // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 [4] [4] [4] --> FOAM FATAL ERROR: [4] Cannot find file "points" in directory "polyMesh" in times 0 down to constant [4] [4] From function [5] [5] [5] --> FOAM FATAL ERROR: [5] Cannot find file "points" in directory "polyMesh" in times 0 down to constant [5] [5] From function Time::findInstance(const fileName&, const word&, const IOobject::readOption, const word&) [5] in file db/Time/findInstance.C at line 203. [5] FOAM parallel run exiting [5] [6] [6] [6] --> FOAM FATAL ERROR: [6] Cannot find file "points" in directory "polyMesh" in times 0 down to constant [6] [6] From function Time::findInstance(const fileName&, const word&, const IOobject::readOption, const word&) [6] in file db/Time/findInstance.C at line 203. [6] FOAM parallel run exiting [6] Time::findInstance(const fileName&, const word&, const IOobject::readOption, const word&) [4] in file db/Time/findInstance.C at line 203. [4] FOAM parallel run exiting [4] -------------------------------------------------------------------------- MPI_ABORT was invoked on rank 6 in communicator MPI_COMM_WORLD with errorcode 1. NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes. You may or may not see output from other processes, depending on exactly when Open MPI kills them. -------------------------------------------------------------------------- [7] [7] [7] --> FOAM FATAL ERROR: [7] Cannot find file "points" in directory "polyMesh" in times 0 down to constant [7] [7] From function Time::findInstance(const fileName&, const word&, const IOobject::readOption, const word&) [7] in file db/Time/findInstance.C at line 203. [7] FOAM parallel run exiting [7] -------------------------------------------------------------------------- mpirun has exited due to process rank 6 with PID 2696 on node slave1 exiting without calling "finalize". This may have caused other processes in the application to be terminated by signals sent by mpirun (as reported here). -------------------------------------------------------------------------- [master:02580] 3 more processes have sent help message help-mpi-api.txt / mpi-abort [master:02580] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages |
Hi
Glad to see you got openFoam working, there are a couple of things that need to be sorted before this works. I had to figure this out the hard way. 1. When you source your bashrc file make sure its at the top(the very first line) of your bashrc file not at the bottom. 2. You will need a network set up between all the nodes looks like you have already done this. I ended up using static ip addresses because I had some issues with a DHCP server. 3. You will also need to set up password less ssh between all the nodes with a ssh key for each node on every node. 4. A nfs file sharing system is also a requirement, I made a run directory on the master node so that all the nodes can read and write to the case directory on the master node. There are lots of tutorials online on how to accomplish each of these steps, I would like to put together a tutorial but I have been so busy lately I just dont get the time. But if you have any issues just post and I will try to help you. Note: There are lots of different ways to set up the points above and different ways to set up a cluster what I have described above is just how I got it to work. |
Oke sounds like I got point one up until three already set up! :)
I'll look into point four you gave me since I haven't set that up correctly yet. I was already wondering how that would work. Thanks for the tips! This morning I finished the tower so once I get two RasPi's working together I'll extent it to a total of five https://scontent-ams3-1.xx.fbcdn.net...1e&oe=56BCF728 |
All times are GMT -4. The time now is 09:00. |