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

[openFuelCell] Fuel Cell Simulation in OpenFOAM

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

Like Tree14Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 23, 2014, 15:17
Default Fuel Cell Simulation in OpenFOAM
  #1
Member
 
Parisa
Join Date: Feb 2013
Posts: 51
Rep Power: 10
Parisa_Khiabani is on a distinguished road
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,
ramakant and Caio Martins like this.
Parisa_Khiabani is offline   Reply With Quote

Old   February 24, 2014, 06:01
Default
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,871
Rep Power: 29
hjasak will become famous soon enough
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
hjasak is offline   Reply With Quote

Old   February 24, 2014, 11:56
Default
  #3
Member
 
Parisa
Join Date: Feb 2013
Posts: 51
Rep Power: 10
Parisa_Khiabani is on a distinguished road
Thanks a lot,
that is a big favor
Parisa_Khiabani is offline   Reply With Quote

Old   February 25, 2014, 04:12
Default
  #4
New Member
 
Steven Beale
Join Date: Jan 2011
Posts: 4
Rep Power: 12
stevenbeale is on a distinguished road
Hi:

Did you follow the instructions for downloading and running the code under "documentation"?
stevenbeale is offline   Reply With Quote

Old   February 25, 2014, 04:54
Default
  #5
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 613
Rep Power: 18
jherb is on a distinguished road
I am not able to access the source code. The git repository seems to be private.
jherb is offline   Reply With Quote

Old   February 25, 2014, 15:08
Default
  #6
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,871
Rep Power: 29
hjasak will become famous soon enough
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
hjasak is offline   Reply With Quote

Old   February 25, 2014, 18:48
Default
  #7
Senior Member
 
Joachim Herb
Join Date: Sep 2010
Posts: 613
Rep Power: 18
jherb is on a distinguished road
Thank you very much. It works this way.

Quote:
Originally Posted by hjasak View Post
Try:

git clone git://git.code.sf.net/p/openfuelcell/git openfuelcell
But why is the repository on the sourceforge website private?
jherb is offline   Reply With Quote

Old   February 26, 2014, 00:52
Default
  #8
Member
 
Parisa
Join Date: Feb 2013
Posts: 51
Rep Power: 10
Parisa_Khiabani is on a distinguished road
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?
Parisa_Khiabani is offline   Reply With Quote

Old   February 26, 2014, 17:37
Default Problem in Compile
  #9
Member
 
Parisa
Join Date: Feb 2013
Posts: 51
Rep Power: 10
Parisa_Khiabani is on a distinguished road
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
Parisa_Khiabani is offline   Reply With Quote

Old   February 28, 2014, 12:31
Default
  #10
Member
 
Parisa
Join Date: Feb 2013
Posts: 51
Rep Power: 10
Parisa_Khiabani is on a distinguished road
Quote:
Originally Posted by hjasak View Post
Have a look at:

http://openfuelcell.sourceforge.net

The git repository with the code is available there as well.

Enjoy,

Hrv
I tried to run in parallel. However, "make parprep" doesn't work. I also tried with decompospar but it doesn't run as parallel.
Have you ever tried to run in parallel?
Thanks,
Prisa
Parisa_Khiabani is offline   Reply With Quote

Old   April 5, 2014, 16:28
Default
  #11
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,959
Blog Entries: 45
Rep Power: 122
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
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:
  1. This error message:
    Code:
    sofcFoam.C:58:25: fatal error: porousZones.H: No such file or directory
    is because openFuelCell was designed to work with OpenFOAM 2.1.x: http://openfuelcell.sourceforge.net/doc/quick-start - and I quote:
    Quote:
    Assuming you have OpenFOAM version 2.1.x with environment variables set, here is all you need to download, compile, and run sofcFoam.
  2. @Parisa_Khiabani: Knowing which case you're referring to would make it easier to try and reproduce the same problem!
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   May 2, 2014, 06:21
Default unable to run the tutorial "coFlow" from the toolkit openfuelcell
  #12
yvo
New Member
 
Join Date: May 2014
Posts: 1
Rep Power: 0
yvo is on a distinguished road
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.
yvo is offline   Reply With Quote

Old   May 6, 2014, 12:27
Default
  #13
Senior Member
 
Vesselin Krastev
Join Date: Jan 2010
Location: University of Tor Vergata, Rome
Posts: 368
Rep Power: 17
vkrastev is on a distinguished road
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.
vkrastev is offline   Reply With Quote

Old   June 8, 2014, 17:34
Default
  #14
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,959
Blog Entries: 45
Rep Power: 122
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
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"
I got the following two results:
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;
The description from the git repository about this new option is this:
Quote:
Added numCells in readCellProperties.H to indicate number of cells in stack (set to 1 for single cell)
This new option/variable is used in the file "src/appSrc/solveCurrent.H".

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
The main development is kept in the "master" branch. Study any git tutorial to learn how to use a git repository

-----------------------

@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:
  1. This toolkit is still in development and said development is done periodically.
  2. It seems to be done by more than one team and/or it's shared between several people from different institutes/companies.
  3. They very likely won't port to a new version until they reach a new stable release of their toolkit, so that they can validate and compare the results with 2.1.x vs 2.2.x or 2.3.x or any other OpenFOAM version.
Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   June 8, 2014, 19:01
Default
  #15
Senior Member
 
Vesselin Krastev
Join Date: Jan 2010
Location: University of Tor Vergata, Rome
Posts: 368
Rep Power: 17
vkrastev is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
@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:
  1. This toolkit is still in development and said development is done periodically.
  2. It seems to be done by more than one team and/or it's shared between several people from different institutes/companies.
  3. They very likely won't port to a new version until they reach a new stable release of their toolkit, so that they can validate and compare the results with 2.1.x vs 2.2.x or 2.3.x or any other OpenFOAM version.
Best regards,
Bruno
Ok, got the message, thanks anyway.

V.
vkrastev is offline   Reply With Quote

Old   February 1, 2017, 09:44
Default is this tool still usable?
  #16
New Member
 
RobinZ
Join Date: Apr 2014
Posts: 19
Rep Power: 8
RobinZ is on a distinguished road
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
RobinZ is offline   Reply With Quote

Old   May 3, 2017, 08:47
Default
  #17
New Member
 
Maximilian Hauck
Join Date: May 2017
Posts: 2
Rep Power: 0
Krebsmann is on a distinguished road
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!
Krebsmann is offline   Reply With Quote

Old   May 6, 2017, 18:05
Default
  #18
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,959
Blog Entries: 45
Rep Power: 122
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
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
I've tested building it with OpenFOAM 3.0.x and it also built successfully. However, it did not build with OpenFOAM 4.1.

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

Old   May 9, 2017, 01:35
Default
  #19
Senior Member
 
Ramakant Gadhewal
Join Date: Apr 2010
Location: Chemical Engineering,National Institute of Technology,Warangal (T.S.),India
Posts: 123
Rep Power: 12
ramakant is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
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
I've tested building it with OpenFOAM 3.0.x and it also built successfully. However, it did not build with OpenFOAM 4.1.

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
Dear
Please share the complete steps. how I can install.

Thank you
ramakant is offline   Reply With Quote

Old   May 9, 2017, 08:00
Default
  #20
New Member
 
Maximilian Hauck
Join Date: May 2017
Posts: 2
Rep Power: 0
Krebsmann is on a distinguished road
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).
ramakant likes this.
Krebsmann is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


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


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