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

Multi species mass transport library [update]

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

Like Tree13Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   May 5, 2013, 00:05
Default
  #61
New Member
 
Ismael
Join Date: Nov 2012
Posts: 2
Rep Power: 0
idjibb is on a distinguished road
Never mind, I got it done otherwise.
thanks anyways
idjibb is offline   Reply With Quote

Old   January 23, 2014, 06:24
Default met some blooks when compile the SOFC solver
  #62
New Member
 
jiatangwang
Join Date: Jan 2014
Posts: 7
Rep Power: 3
jiatangwang is on a distinguished road
Hi ,


I tried to compile the the SOFC packages you released on the above website, but i met some blocks. The details are as follows,

I have installed OpenFOAM 2.2.1 on my ubuntu 12.04 version, and can work smoothly. So I started from downloaded the package called aekb_v1_0.tar.gz, extracted it, then I coped the files in the corresponding position you listed in the paper named "An Open-Source Library for the Numerical Modeling of Mass-Transfer in Solid-Oxide Fuel Cells".

>> cp -r ~/temp-install/mstm/lib/*
>> ~/OpenFOAM/$USER-2.2.1/lib
>> cp -r ~/temp-install/mstm/applications/*
>> ~/OpenFOAM/$USER-2.2.1/applications
>> cp -r ~/temp-install/mstm/run/*
>> ~/OpenFOAM/$USER-2.2.1/run

I tried to compile the solver,

>> ~/OpenFOAM/$USER-2.2.1/application/Allwmake-mstm

But I met some errors like this,

sofcFoam.C:36:34: fatal error: regionPropertiesSOFC.H: No such file or directory
compilation terminated.
make: *** [Make/linux64GccDPOpt/sofcFoam.o] Error 1


Then I tried to compile it in the application,


>> ~/OpenFOAM/$USER-1.6-ext/libs/Allwmake-mstm

But also resulted some errors like this,

In file included from components/solidComponent/solidComponent.H:40:0,
from components/solidComponent/solidComponent.C:27:
lnInclude/component.H:44:35: fatal error: fixedFluxFvPatchField.H: No such file or directory
compilation terminated.
In file included from lnInclude/fluidComponent.H:39:0,
from components/channel/channel.H:39,
from components/channel/channel.C:27:
lnInclude/component.H:44:35: fatal error: fixedFluxFvPatchField.H: No such file or directory
compilation terminated.
In file included from components/fluidComponent/fluidComponent.H:39:0,
from components/fluidComponent/fluidComponent.C:27:
lnInclude/component.H:44:35: fatal error: fixedFluxFvPatchField.H: No such file or directory
compilation terminated.
In file included from components/component/component.C:27:0:
components/component/component.H:44:35: fatal error: fixedFluxFvPatchField.H: No such file or directory
compilation terminated.
make: *** [Make/linux64GccDPOpt/solidComponent.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [Make/linux64GccDPOpt/fluidComponent.o] Error 1
make: *** [Make/linux64GccDPOpt/channel.o] Error 1
make: *** [Make/linux64GccDPOpt/component.o] Error 1



Who can tell me what is the problem on my ubuntu ? The paper you said the OpenFOAM version is 1.6-ext, but mine is 2.2.1, so is this the reason I could not compile the solver on my ubuntu ? or i need to pre-install some packages on my computer ?

I am looking forward to your reply. Thank you.

Best wishes,

Jiatang Wang
jiatangwang is offline   Reply With Quote

Old   January 23, 2014, 18:58
Default
  #63
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 7,947
Blog Entries: 34
Rep Power: 79
wyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the roughwyldckat is a jewel in the rough
Greetings Jiatang Wang and welcome to the forum!

Quote:
Originally Posted by jiatangwang View Post
The paper you said the OpenFOAM version is 1.6-ext, but mine is 2.2.1, so is this the reason I could not compile the solver on my ubuntu ? or i need to pre-install some packages on my computer ?
1.6-ext is a variant of OpenFOAM and is mostly compatible with OpenFOAM 1.6.x and 1.7.x. Therefore, OpenFOAM 2.2.1 is far too different for that source code to work as intended.

You can find installation instructions for 1.6-ext for Ubuntu here: http://openfoamwiki.net/index.php/In...1.6-ext/Ubuntu

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   January 26, 2014, 19:33
Thumbs up
  #64
New Member
 
jiatangwang
Join Date: Jan 2014
Posts: 7
Rep Power: 3
jiatangwang is on a distinguished road
Hi ,Thanks for your kind help, I should modify the 1.6-ext case code that can be used in OpenFOAM 2.2.1, right ?
jiatangwang is offline   Reply With Quote

Old   January 28, 2014, 05:56
Default
  #65
Senior Member
 
Elvis
Join Date: Mar 2009
Location: Sindelfingen, Germany
Posts: 557
Blog Entries: 5
Rep Power: 13
elvis is on a distinguished road
Hi,
it is far easier to install OpenFOAM-1.6-ext and
modify your ./bashrc
to switch between both installations (alias -command is the key here)
once you have successfully compiled with 1.6-ext
you might try to modify the code to compile on OF 2.2.1 but this does not always go straight!
elvis is offline   Reply With Quote

Old   January 28, 2014, 10:53
Thumbs up
  #66
New Member
 
jiatangwang
Join Date: Jan 2014
Posts: 7
Rep Power: 3
jiatangwang is on a distinguished road
Quote:
Originally Posted by elvis View Post
Hi,
it is far easier to install OpenFOAM-1.6-ext and
modify your ./bashrc
to switch between both installations (alias -command is the key here)
once you have successfully compiled with 1.6-ext
you might try to modify the code to compile on OF 2.2.1 but this does not always go straight!
OK. I see , I am a new learner on OpenFOAM. Sometimes I am feeling it is difficult to understand the different between the version of OpenFOAM 1.6-ext and OpenFOAM 2.2.1.Thanks for your tips.
jiatangwang is offline   Reply With Quote

Old   October 27, 2014, 21:18
Default
  #67
Member
 
carowjp's Avatar
 
Jim Carow
Join Date: Apr 2010
Location: Michigan, USA
Posts: 40
Rep Power: 6
carowjp is on a distinguished road
Hello,

I have been working on a 2.3.x version of the multispecies mass transport library using the 2.1.x version as a starting point. Has anyone done this already?

I am looking to compare or, better yet, find someone who is willing to review what I have done and check it.

If it is correct I will share it with the community. If I am not mistaken this code for 2.3.x should also be backwards compatible to 2.2.1.

regards,

Jim
carowjp is online now   Reply With Quote

Old   November 4, 2014, 22:05
Default
  #68
Member
 
Shawn
Join Date: May 2014
Posts: 98
Rep Power: 2
wenxu is on a distinguished road
Quote:
Originally Posted by ldeng View Post
Hi everyone,

as a conclusion to my previous diffusion flux problem:

The diffusion flux at inlet is a common issue. To avoid that we have two options:

1. specify the total flux( diffusion + convection) equals to a fixed value. it is a kind of mixture boundary condition, but difficult(my opinion) to implement into OpenFOAM.

2. close the diffusion flux(set neumann bc to zeroGradient at inlet), this is not elegant but the easiest.

because i also simulated a 1-D burner stabilized flame in Cantera. In order to obtain a better results specially near the inlet, I specified a fixed value to all species as an initial condition based on the simulated results. After the combustion proceeded, i change the BC of intermediate species back to zero. Anyway, by such approach, i got a nearly perfect results (see attachment) compared to Cantera.

regards,

lei

Dear,LeiDeng,
IF coal and air as the inlet, then how to set the specie bc. ?
thank you !!!
regards,
wen
wenxu is offline   Reply With Quote

Old   November 29, 2014, 08:51
Default
  #69
New Member
 
Athanassios
Join Date: Nov 2014
Posts: 4
Rep Power: 2
Athanassios is on a distinguished road
Quote:
Originally Posted by carowjp View Post
Hello,

I have been working on a 2.3.x version of the multispecies mass transport library using the 2.1.x version as a starting point. Has anyone done this already?

I am looking to compare or, better yet, find someone who is willing to review what I have done and check it.

If it is correct I will share it with the community. If I am not mistaken this code for 2.3.x should also be backwards compatible to 2.2.1.

regards,

Jim

Hi,

I'm a complete beginner to OpenFOAM but I'm steeply increasing my knowledge since October... Soon, I should be able to transfer the Multispecies Library from 2.1.x to 2.3.x. Since you seem to be already working on this, I'd appreciate to get in touch with you. I might not be able to help you that much in the beginning, but probably a little bit later I will be able to contribute some part to this task.

I would like to give you my e-mail so that you can contact me. Is that ok for you?

Best regards
Athanassios is offline   Reply With Quote

Old   December 1, 2014, 22:11
Default Multispecies Library from 2.1.x to 2.3.x.
  #70
Member
 
carowjp's Avatar
 
Jim Carow
Join Date: Apr 2010
Location: Michigan, USA
Posts: 40
Rep Power: 6
carowjp is on a distinguished road
Quote:
Originally Posted by Athanassios View Post
Hi,

I'm a complete beginner to OpenFOAM but I'm steeply increasing my knowledge since October... Soon, I should be able to transfer the Multispecies Library from 2.1.x to 2.3.x. Since you seem to be already working on this, I'd appreciate to get in touch with you. I might not be able to help you that much in the beginning, but probably a little bit later I will be able to contribute some part to this task.

I would like to give you my e-mail so that you can contact me. Is that ok for you?

Best regards
Athanassios,

Sure. Go ahead and send me a private message on this forum and provide your email address.

cheers,

Jim
carowjp is online now   Reply With Quote

Old   January 20, 2015, 15:51
Default Question
  #71
New Member
 
Josh Dawson
Join Date: Oct 2014
Location: Justin, TX
Posts: 15
Rep Power: 2
JMDag2004 is on a distinguished road
I hope everyone is having a great day! Sorry to push an old thread. Currently I am using OF230 and I'm trying to simulate hydrogen/air detonation combustion within an ejector augmented PDR. Having some issues working with reactingFoam, cant seem to reproduce experimental data my university has accumulated with their test facility. Using NASA CEA, the peak temp of burnt gas should be north of 3800 and I can't seem to get the temp close to that. The simulation crashes due to the "dQ" term in the YEqn file. I feel like it may have something to do with the diffusion model. I'm not an advanced programmer, consequently I currently don't have the tools to really dig into source code to find the issue...although I am feverishly trying!

Questions:
1. Is this modifiedReactingFoam compatible with OF 230?
2. I noticed there weren't any options to include fvOptions. For example, I'm pathing in an energy source to initiate ignition using fvOptions. Do those options exist with the modified solver? This certainly could be an oversight on my part.
JMDag2004 is offline   Reply With Quote

Old   January 29, 2015, 08:25
Default It's done....
  #72
New Member
 
Athanassios
Join Date: Nov 2014
Posts: 4
Rep Power: 2
Athanassios is on a distinguished road
Hi

As far as I can say right now, I was able to modify the code of the MultispeciesTransform Lib and the ModifiedReactingFoam Solver so that it runs with OpenFOAM 2.3 now.

I already had one successful run with a random test-case, but I want to run another case for comparison with OpenFOAM 2.1 before I will make the complete modified code available to the community.

If there are any questions, you are welcome to answer to my post or contact me directly.

Best regards
Athanassios is offline   Reply With Quote

Old   January 30, 2015, 15:27
Default
  #73
New Member
 
Josh Dawson
Join Date: Oct 2014
Location: Justin, TX
Posts: 15
Rep Power: 2
JMDag2004 is on a distinguished road
Hello Athanassios, I hope your day is going well! I would be very interested in how you made the adjustments. I am still learning, consequently I don't have the skills necessary to add the library to OF230. I could acquire OF21x and use the existing modifiedreactingFoam but I would like to take this learning opportunity to rebuild the solver in OF230.
JMDag2004 is offline   Reply With Quote

Old   February 10, 2015, 17:11
Smile Kinetic energy question
  #74
New Member
 
Josh Dawson
Join Date: Oct 2014
Location: Justin, TX
Posts: 15
Rep Power: 2
JMDag2004 is on a distinguished road
Hello everyone, really sorry for posting to an old thread but I have a question about the formulation of the modifiedreactingFoam hsEqn. The mean kinetic energy seems to have been removed from the sensible enthalpy equation. I may have overlooked something no question. This term may have been implicitly absorbed by the sensible enthalpy term "hs". I tried tracking the term through the various function calls and I couldn't find anything that would tell me the kinetic energy is included. I don't have enough experience to know whether or not this has a significant impact on the solution. I also tried to reinstate the kinetic energy terms but the library wouldn't compile, this could be entirely due to my beginner programming skills. Would anyone be able to enlighten me on whether or not it is absorbed by another term or if it was intentionally removed the reasoning behind the omission? I would greatly appreciate it!
JMDag2004 is offline   Reply With Quote

Old   February 16, 2015, 11:08
Default MultispeciesMassTransportLibrary OF 2.3.x
  #75
New Member
 
Athanassios
Join Date: Nov 2014
Posts: 4
Rep Power: 2
Athanassios is on a distinguished road
Hi peeps,

as promissed, with this post, I'm uploading the modified MultispeciesMassTransport library now for OpenFOAM 2.3.x, ready to use (file attached). A smoothly running testcase has been included. The same testcase for 2.1.x has also been included for comparisons.

Sorry, that I was absent for a while, but since I had to move to a new apartment, I was quite busy the past days.

Please feel free to test the library yourself and let me know if you find bugs.

Thanks guys...
Attached Files
File Type: gz multiSpeciesMassTransportLibrary_2.3.x.tar.gz (92.7 KB, 19 views)
Athanassios is offline   Reply With Quote

Old   February 18, 2015, 12:34
Default
  #76
New Member
 
Athanassios
Join Date: Nov 2014
Posts: 4
Rep Power: 2
Athanassios is on a distinguished road
Hello guys,

I found out that for some reason entries in the files thermo.compressibleGas that you can find in both of our testcases for the original and modified MultispeciesMassTransportLibrary got messed up. Please check that files in my previous uploaded file (last post) or just download the corrected testcases for 2.1.x and 2.3.x (attached).

Thanks!
Attached Files
File Type: gz modifiedReactingFoam_2_1_x.tar.gz (6.8 KB, 5 views)
File Type: gz modifiedReactingFoam_2_3_x.tar.gz (6.7 KB, 18 views)
Athanassios 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
Questions for a species transport problems (snapshots attached) aleisia FLUENT 2 October 9, 2011 04:40
UDF for Species Mass Fraction Gradient *IN SPECIFIC ZONE * -- e.g. along axis of sym. ksiegs2 Fluent UDF and Scheme Programming 0 February 27, 2011 13:55
PB: Saving mass fraction of species on two points with an udf biget.a FLUENT 2 July 23, 2009 03:06
species transport in water lyn FLUENT 1 December 12, 2007 19:15
buoyancy and species transport riccardo FLUENT 1 September 15, 2006 07:14


All times are GMT -4. The time now is 19:56.