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

Material diffusion coefficient in OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By clapointe

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 13, 2018, 04:27
Unhappy Material diffusion coefficient in OpenFOAM
  #1
New Member
 
Kikuta Enoki
Join Date: Jun 2017
Posts: 9
Rep Power: 8
Kikuta.K is on a distinguished road
Hello Foamers.

I'm trying to add selective diffusion of hydrogen to reactingFoam, but I don't know where I can edit material diffusion coefficient.
Is diffusion coefficient calculated from Sutherland coefficient?
How can I edit and add selective diffusion?

I am sorry for not being excellent in OpenFOAM yet.

Hopefully anyone could help me to fix this problem?
My OpenFOAM is version 4.x.

Best regards.
Kikuta.K is offline   Reply With Quote

Old   July 13, 2018, 14:28
Default
  #2
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 14
clapointe is on a distinguished road
reactingFoam uses the effective viscosity for species diffusion -- if you use sutherland viscosity then yes, it'd be used for computing (bulk) species diffusivity in the laplacian term. If you want to add differential diffusion, you'll need to compute diffusion coefficients for each species. There are various threads on this -- here's one for example : Difficulties with premixed laminar methane flame in openFoam.

Caelan
clapointe is offline   Reply With Quote

Old   July 16, 2018, 07:43
Default
  #3
New Member
 
Kikuta Enoki
Join Date: Jun 2017
Posts: 9
Rep Power: 8
Kikuta.K is on a distinguished road
Hi clapointe.

Thank you for your quick reply. (and I'm sorry for my late reply)

I have read the thread which you indicated.
Thank you for providing me another thread.

I've tried to imitate the code which was indicated by Chris to be able to calculate species diffusion, but didn't work well because of the difference of the solver.

Do you know another similar thread in reactingFoam?
If it's possible, I want you to provide me any other informations.

Thank you!
Kikuta.K is offline   Reply With Quote

Old   July 16, 2018, 11:30
Default
  #4
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 14
clapointe is on a distinguished road
There really is not much difference between reactingFoam and fireFoam if fireFoam is used solely as a solver for reacting flow -- assuming a turbulent Prandtl number of 1 will pretty much make muEff = alphaEff, and the hEqn's are identical. This still assumed a unity Lewis No -- you can compute a bulk species diffusivity for non-unity Lewis No as done by FM global in their fireFoam repository : https://github.com/fireFoam-dev/fire...solver/YEEqn.H. Computing species-specific diffusion coefficients will be more involved -- see eg. : https://www3.nd.edu/~powers/ame.60636/transport.pdf.

In the thread I referenced, it looks like the Lewis No for each species is being taken into account.

Caelan
Gaozw likes this.
clapointe is offline   Reply With Quote

Old   July 29, 2018, 21:10
Default
  #5
New Member
 
Gao Zhengwei
Join Date: Jan 2017
Location: HangZhou, P.R.China
Posts: 10
Rep Power: 9
Gaozw is on a distinguished road
Hi, foamers,

I am also making efforts to add speice diffusivity models to reactingFoam. Another thread on this is Multi species mass transport library [update] . The code runs well. However, I have no idea how to validate it.
Gaozw is offline   Reply With Quote

Old   July 29, 2018, 21:20
Default
  #6
Senior Member
 
Join Date: Aug 2015
Posts: 494
Rep Power: 14
clapointe is on a distinguished road
One option could be finding DNS results (eg flame speed data) for which they compute species diffusivity and see how your implementation compares.

Caelan
clapointe is offline   Reply With Quote

Old   August 2, 2018, 20:00
Default
  #7
New Member
 
Kikuta Enoki
Join Date: Jun 2017
Posts: 9
Rep Power: 8
Kikuta.K is on a distinguished road
Quote:
Originally Posted by Gaozw View Post
Hi, foamers,

I am also making efforts to add speice diffusivity models to reactingFoam. Another thread on this is Multi species mass transport library [update] . The code runs well. However, I have no idea how to validate it.

Hi Gaozw

I have already tried to compile "modifiedReactingFoam" which is indicated in the URL you posted, but couldn't.
is it due to the difference in version of OpenFOAM?
My OpenFOAM is version 4.1.

Which version are you using?
Also, did you compile modifiedReactingFoam without editing anything?

Regards,

Kikuta
Kikuta.K is offline   Reply With Quote

Old   August 6, 2018, 23:32
Default
  #8
New Member
 
Gao Zhengwei
Join Date: Jan 2017
Location: HangZhou, P.R.China
Posts: 10
Rep Power: 9
Gaozw is on a distinguished road
Hi Kikuta,
I am using OpenFOAM-2.3.1, which matches the author's latest release version. I follow the installation guide and it works fine. It may be incompatible with version-4.1 since there are many differeces between the two versions.
Gaozw is offline   Reply With Quote

Old   August 7, 2018, 00:25
Default
  #9
New Member
 
Gao Zhengwei
Join Date: Jan 2017
Location: HangZhou, P.R.China
Posts: 10
Rep Power: 9
Gaozw is on a distinguished road
Hi clapointe,

Comparing with DNS results is always a good choice. However, it is difficult for me because the diffusivity data in the combustion process can be barely found. I have to compromise and compare the combustion characteristic properties (i.e. flame thickness, flame speed, etc.). Is there a better way?

PS--sorry for the late reply.
Gaozw is offline   Reply With Quote

Reply

Tags
material diffusion, openfoam


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
Frequently Asked Questions about Installing OpenFOAM wyldckat OpenFOAM Installation 3 November 14, 2023 11:58
Adding material to CFX material library marlon CFX 2 October 16, 2016 09:33
Compression stoke is giving higher pressure than calculated nickjuana CFX 62 May 19, 2015 13:32
diffusion coefficient mamalili CFX 8 February 24, 2015 16:51
question about how to define diffusion coefficient in CFX rystokes CFX 0 December 12, 2009 05:32


All times are GMT -4. The time now is 21:29.