|
[Sponsors] |
[openFuelCell] Fuel Cell Simulation in OpenFOAM |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 23, 2014, 15:17 |
Fuel Cell Simulation in OpenFOAM
|
#1 |
Member
Parisa
Join Date: Feb 2013
Posts: 51
Rep Power: 13 |
Hello everyone,
I am trying to simulate a simple fuel cell (no difference what type) in OpenFOAM. Would you please let me know which solver in OpenFOAM is used to simulate fuel cell? Thanks a lot for your help, |
|
February 24, 2014, 06:01 |
|
#2 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
Have a look at:
http://openfuelcell.sourceforge.net The git repository with the code is available there as well. Enjoy, Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
February 24, 2014, 11:56 |
|
#3 |
Member
Parisa
Join Date: Feb 2013
Posts: 51
Rep Power: 13 |
Thanks a lot,
that is a big favor |
|
February 25, 2014, 04:12 |
|
#4 |
New Member
Steven Beale
Join Date: Jan 2011
Posts: 4
Rep Power: 15 |
Hi:
Did you follow the instructions for downloading and running the code under "documentation"? |
|
February 25, 2014, 04:54 |
|
#5 |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22 |
I am not able to access the source code. The git repository seems to be private.
|
|
February 25, 2014, 15:08 |
|
#6 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
Try:
git clone git://git.code.sf.net/p/openfuelcell/git openfuelcell
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
February 25, 2014, 18:48 |
|
#7 |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22 |
||
February 26, 2014, 00:52 |
|
#8 |
Member
Parisa
Join Date: Feb 2013
Posts: 51
Rep Power: 13 |
Well, I could install that, thanks. But when I try to compile the solver, it come up with an error and shows the lack of a class or header in porous.
Have you seen that error before? |
|
February 26, 2014, 17:37 |
Problem in Compile
|
#9 |
Member
Parisa
Join Date: Feb 2013
Posts: 51
Rep Power: 13 |
I am completely following the instruction. However, when I wanna compile the model (src ./ Allwmake), it comes up with a fatal error as the below:
sofcFoam.C:57:25: fatal error: porousZones.H: No such file or directory Has anyone ever seen this error? If such a file doesn't exist, that would be a big issue. I am sure there is something wrong from my side. I really appreciate your helps. Thanks |
|
February 28, 2014, 12:31 |
|
#10 | |
Member
Parisa
Join Date: Feb 2013
Posts: 51
Rep Power: 13 |
Quote:
Have you ever tried to run in parallel? Thanks, Prisa |
||
April 5, 2014, 16:28 |
|
#11 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
I order to make it a little be easier to find this toolkit, I've created a wiki page for it: http://openfoamwiki.net/index.php/Ex...s/OpenFuelCell Anyone and everyone is welcome to add information to it! Although a bit late, regarding the issues on the previous posts:
Bruno
__________________
|
||
May 2, 2014, 06:21 |
unable to run the tutorial "coFlow" from the toolkit openfuelcell
|
#12 |
New Member
Join Date: May 2014
Posts: 1
Rep Power: 0 |
Dear all,
I am running a 64 bits computer with ubuntu 12.04LTS installed. I have installed and tested openfoam211 and paraviewopenfoam3120. Everything looks fine. I have also installed openfuelcell using the following instructions: http://openfuelcell.sourceforge.net/doc/quick-start . The compilation and the mesh generation steps went well but the make run command gave me the following error: Create mesh for time = 0 Reading cell properties --> FOAM FATAL IO ERROR: keyword numCells is undefined in dictionary "/home/victorhess/OpenFOAM/openfuelcell/run/coFlow/constant/cellProperties" file: /home/victorhess/OpenFOAM/openfuelcell/run/coFlow/constant/cellProperties from line 29 to line 60. From function dictionary::lookupEntry(const word&, bool, bool) const in file db/dictionary/dictionary.C at line 400. FOAM exiting Any help will be highly appreciated. Regards Yvo Last edited by yvo; May 3, 2014 at 17:19. |
|
May 6, 2014, 12:27 |
|
#13 |
Senior Member
Vesselin Krastev
Join Date: Jan 2010
Location: University of Tor Vergata, Rome
Posts: 368
Rep Power: 20 |
Hi Bruno (and everyone else),
do you know if the openfuelcell toolkit has been already ported onto OpenFOAM-2.2.x? I have also older versions installed, but since the 2.2.x is my baseline release I was just trying to know if there is already some work done out there or should I start it from scratch. Thank you V. |
|
June 8, 2014, 17:34 |
|
#14 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings to all!
I've had this thread on my to-do list for some time now and only managed to look into this a few minutes ago. @Yvo: The problem you've triggered is related to a recent code change that was made back in April 2014. You can use the following command from the "run" folder, for searching the tutorial cases that already use this option: Code:
find . -name cellProperties | xargs grep "numCells" Code:
./quickTest/constant/cellProperties:numCells numCells [0 0 0 0 0 0 0] 1; // K ./quickTestStack/constant/cellProperties:numCells numCells [0 0 0 0 0 0 0] 3; Quote:
From what I can see on the git history, I would suggest that you switch to an old commit, by running the following commands from the main folder for this toolkit: Code:
git checkout 7afc755bc -b January2014 cd src wclean all wmake all ----------------------- @Vesselin: AFAIK, this toolkit has not been ported to OpenFOAM 2.2.x nor 2.3.x. From what I can figure out from the git history and project's pages:
Bruno
__________________
|
||
June 8, 2014, 19:01 |
|
#15 | |
Senior Member
Vesselin Krastev
Join Date: Jan 2010
Location: University of Tor Vergata, Rome
Posts: 368
Rep Power: 20 |
Quote:
V. |
||
February 1, 2017, 09:44 |
is this tool still usable?
|
#16 |
New Member
RobinZ
Join Date: Apr 2014
Posts: 19
Rep Power: 12 |
Dear all,
i got problems while compiling the code with a newer Version of gcc. So, if you try to compile this model, use a compatible gcc compiler version for OpenFOAM-2.1 (gcc 4.3.3 - 4.7.x) best regards, Robin my erro was: collect2: error: ld returned 1 exit status make: *** [/srv/home/s41323/OpenFOAM/s41323-2.1.1/platforms/linux64GccDPOpt/bin/fuelCellFoam] Error 1 Last edited by RobinZ; February 6, 2017 at 06:01. Reason: Error solved |
|
May 3, 2017, 08:47 |
|
#17 |
New Member
Maximilian Hauck
Join Date: May 2017
Posts: 2
Rep Power: 0 |
Hello,
Has anyone been able to compile this solver with the current release of OF (4.1)? I have problems installing OF 2.1.x, while OF 4.1 was easy to install via docker. I would like to use and modify the openfuelcell solver for my master thesis. Does anyone with more experience in OpenFoam programming know how much work it would be to adapt the solver for OF 4.1? Thanks in advance! |
|
May 6, 2017, 18:05 |
|
#18 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128 |
Greetings Krebsmann,
Many thanks for posting your question, because I had thought the code was not available online any more. But after reading your post, I've followed the instructions at http://openfuelcell.sourceforge.net/doc/quick-start and was able to download the source code using git! I've updated the wiki page https://openfoamwiki.net/index.php/Contrib/OpenFuelCell - after inspecting the git repository. It looks like the code has been upgraded to build with OpenFOAM 3.0.1 and that is available in the "V3" branch, which you can checkout with the following command: Code:
git checkout V3 Right now I don't have time to try and update the source code to build with OpenFOAM 4.1. And since you didn't indicate which operating system you are using, I'm unable to suggest a specific way to build OpenFOAM 3.0.1 from source code. However, you could create a container in Docker that uses Ubuntu 14.04 and then install OpenFOAM 3.0.1 as instructed here: https://openfoam.org/download/3-0-1-ubuntu/ Best regards, Bruno
__________________
|
|
May 9, 2017, 01:35 |
|
#19 | |
Senior Member
Ramakant Gadhewal
Join Date: Apr 2010
Location: Chemical Engineering,National Institute of Technology,Warangal (T.S.),India
Posts: 131
Rep Power: 16 |
Quote:
Please share the complete steps. how I can install. Thank you |
||
May 9, 2017, 08:00 |
|
#20 |
New Member
Maximilian Hauck
Join Date: May 2017
Posts: 2
Rep Power: 0 |
To download the specific branch you have to use the following command:
git clone -b V3 git://git.code.sf.net/p/openfuelcell/git openfuelcell Then you follow the directions given here: http://openfuelcell.sourceforge.net/doc/quick-start Thanks @wyldckat for the hint with the new version! OF 3.0.x builds fine on my system (Arch Linux, Kernel 4.10), and the Openfuelcell solver also seems to work (I don't see any fields besides temperature in Paraview in the moment, but I guess I'll sort this out quickly). |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM course for beginners | Jibran | OpenFOAM Announcements from Other Sources | 2 | November 4, 2019 09:51 |
[CGNS] CGNS converters available | mbeaudoin | OpenFOAM Meshing & Mesh Conversion | 137 | December 14, 2018 05:20 |
How to contribute to the community of OpenFOAM users and to the OpenFOAM technology | wyldckat | OpenFOAM | 17 | November 10, 2017 16:54 |
simulation of Proton exchange membrane fuel cell by CFD | Asifa Awan | Main CFD Forum | 0 | August 26, 2017 16:54 |
Membraneless Fuel cell simulation | PRASHANTCFD | Main CFD Forum | 3 | April 9, 2014 03:39 |