CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation on Windows, Mac and other Unsupported Platforms

OpenFOAM on tablet (iPad)??

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree3Likes
  • 2 Post By wyldckat
  • 1 Post By andras

Reply
 
LinkBack Thread Tools Display Modes
Old   August 27, 2012, 16:26
Default OpenFOAM on tablet (iPad)??
  #1
Member
 
dw
Join Date: Jul 2012
Posts: 32
Rep Power: 6
1/153 is on a distinguished road
Hmm, just want to know before I go to buy an tablet, is there anyone be able to compile and run openfoam on tablet? Like iPad or android, etc.

Any comments or experience on the current status or developing status of topics like "run an mesh generator on tablet" or "run paraview on tablet" are also welcome.

Thanks

-----------
1/153 dw
1/153 is offline   Reply With Quote

Old   August 27, 2012, 16:54
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,558
Blog Entries: 39
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi 1/153 dw,

I love this topic!

Personally I've investigated about the possibility of building OpenFOAM on Android. And yes, I wanted to be the first to launch OpenFOAM on Android.
But there were two main problems:
  1. Setting up a build and test system can be a very big pain. Or at least it was 1 year ago.
  2. Last time I checked, Android uses it's own libc, instead of the GNU one that Linux uses. This translates to something very simple: too many unknowns. Basically, it's a "Schroedinger's cat" situation.


On the other hand, if we're talking about rooted tablet devices, the story is completely different: if you can root Ubuntu or Fedora or any other Linux distribution onto your tablet, then you can run the whole Linux world in it... in theory, that is. And AFAIK, the rooted section is slower when compared to the original OS installed in the tablet.

Similarly, there's always the "KDE tablet" - which has changed names a few times - which should run Linux natively, making it more plausible to run OpenFOAM in one.


But then comes into play the paradigm shift:
  1. Tablets are meant to be used as doorways, not as houses. If you study what the main focus drives these very portable machines is simple: Multi-touch Graphical User Interfaces.
    Period. Nothing more and nothing less.
  2. Not many tablets have multi-core.
  3. AFAIK, they rarely have more than 1GB of RAM.
  4. 64bit ARM processors are still being developed.
Which means that most of the software and tools developed for them is for helping create neat and powerful GUIs, not for developing neat and powerful server applications to run in them.

Although, there are already several game console emulators already available for iPad and Android... but these emulate old consoles, not the latest generation of PS3 or XBox.


Therefore, AFAIK, tablets can nowadays be used with OpenFOAM as follows:
  1. Install a remote terminal application - preferably one that can handle ssh - and then connect to your big desktop workstation and run the commands remotely.
  2. Maybe you can have NFS or Samba client running on your tablet, for direct network file sharing, so you can edit directly on your tablet.
  3. As for visual representation of the results, there's already Kitware's ParaviewWeb and Kiwi viewer:It's not perfect yet, but it's heading in the right direction.
  4. Last but not least, for interacting with Cloud Services, where you can interact with a remote server that you're paying per usage and use solely the web browser with a Java application.

And with this I conclude my knowledge in this area.

Best regards,
Bruno
airfoil and atda like this.
__________________
wyldckat is offline   Reply With Quote

Old   August 27, 2012, 17:10
Default
  #3
Member
 
dw
Join Date: Jul 2012
Posts: 32
Rep Power: 6
1/153 is on a distinguished road
Hmm, it seems to me, from a long term point of view,

Remote application (like ssh) has better potentiality than native applications.

And I vote for remote applications on a high speed wifi or on board network.
1/153 is offline   Reply With Quote

Old   April 24, 2014, 05:34
Default OpenFOAM on Android
  #4
New Member
 
Andras Horvath
Join Date: Mar 2009
Posts: 29
Rep Power: 9
andras is on a distinguished road
Hi Foamers!

I have ported OpenFOAM-2.3.0 to run on (rooted) Android 4. Have a look:
http://rheologic.at/?q=node/54&language=en

Your feedback is highly appreciated.

Cheers
Andras
andras is offline   Reply With Quote

Old   April 25, 2014, 16:03
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,558
Blog Entries: 39
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Andras,

Many thanks for sharing!
I know this is a bit troublesome to perform, as I have done some work on a tablet to have a Debian chrooted without explicit root directly on the tablet, by using the adb application from the Android SDK to run as root for setting it up. But I ended up giving up on it (partially on standby), as it was a bit too much trouble for something with such a small screen

Although this feels a bit like cheating... you're using a rooted Android installation and you're technically using a Debian installation via jail-root, because the Android kernel is somewhat compatible with a jail rooted installation of Debian (if the right ARM build is used). And since you didn't provide any specific instructions on what modifications had to be done to OpenFOAM's source code, I can only guess that you didn't need to change much, as GCC probably did most of the work.


The reaaaaally big challenge is to port OpenFOAM to build with Android's tools... so that we can then use a normal 500MB-1GB APK package for installing OpenFOAM on any Android device

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   April 28, 2014, 10:21
Default
  #6
New Member
 
Andras Horvath
Join Date: Mar 2009
Posts: 29
Rep Power: 9
andras is on a distinguished road
Bruno,
you are absolutely right...

The biggest modifications were in wmake/rules and a bit of assembly to get OpenMPI working on ARM (I had to remove some memcopy functions). I was also able to reuse the changes in wmake/rules from the previous OpenFOAM build for the Raspberry Pi.

As I understand it a real 'Android'-application is in the hierarchy above the kernel, drivers, binders, flingers and all the hardware specific code. It is also written in Java to be portable across the plethora of mobile handsets, tablets, wearables, ... you-name-it and running as byte-code in Google's Dalvik Virtual Machine.

I don't know if it is possible to glue Java and OpenFOAM's C++ via JNI (or something similar) together in a way to make OpenFOAM run 'natively' on Android. Even if it was possible the question remains: why do I want to spend time on porting _Open_FOAM to a mostly _closed_ OS like Android that changes it's API every 5 minutes or so?


For me it was a fun project and proof of concept. Also I found out that ARM7 cores were faster than I thought.


Cheers
Andras
wyldckat likes this.
andras is offline   Reply With Quote

Old   April 28, 2014, 14:27
Default
  #7
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 9,558
Blog Entries: 39
Rep Power: 97
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Andras,

Yep, you're right! Spending time in a port of OpenFOAM for a pure Android package is way too much of a bother, specially since the outcome would only be to have something that won't handle much more than a million cells and that's assuming that it is a pretty massive tablet/phone.

As far as I've researched into this, the C++ part would require building the GCC-C++ part of GCC or using Clang, and be linked to the Bionic C library.
As for interface, either it would be necessary to bind the installation to a terminal application or have a specific GUI that would request the command line strings, for running the applications.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
2D Mesh Generation Tutorial for GMSH aeroslacker Open Source Meshers: Gmsh, Netgen, CGNS, ... 12 January 19, 2012 04:52
Problem installing OpenFOAM 1.5 installation on RHEL 4. vwsj84 OpenFOAM Installation 4 April 23, 2009 04:48
2009 OpenFOAM Summer School in Zagreb, Croatia hjasak OpenFOAM Announcements from Other Sources 0 March 27, 2009 13:08
64bitrhel5 OF installation instructions mirko OpenFOAM Installation 2 August 12, 2008 18:07
OpenFOAM Training and Workshop Hrvoje Jasak Main CFD Forum 0 October 7, 2005 07:14


All times are GMT -4. The time now is 17:39.