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

Convection-Diffusion Modeling

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 17, 2017, 19:31
Post Convection-Diffusion Modeling
  #1
New Member
 
Ryan
Join Date: Jan 2017
Posts: 3
Rep Power: 9
minnesota123 is on a distinguished road
Hi All,

Overall model: I am modeling a flow (chemical A entering as a component with water as the solvent) over a porous media, where a chemical reaction (A->B) occurs within the porous media. I want to have only diffusion of the chemical species within the porous media. I have diffusion coefficients and an overall reaction rate.

My question: I believe I need to implement equations derived from the convection-diffusion equation within the porous media. This would cover the diffusion of the chemical species and the reaction as well. I want know how to input a differential equation (or how to convert the equation into a form valid for CFX to handle it) into CFX to handle these physics.

I have looked through the tutorials, and chapter 15 seems to be the only one that deals with chemical reactions, but mine is far from what is covered in that model. This is because for my reaction, I am holding it at neutral pH and the reaction is isothermal.

Any help would be greatly appreciated!

Last edited by minnesota123; January 17, 2017 at 20:43.
minnesota123 is offline   Reply With Quote

Old   January 18, 2017, 03:42
Default
  #2
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
If you want to implement a convection-diffusion equation, then in CFX you want to define an additional variable. Then define the variable to be a convection equation and give it a diffusion coefficient.

Just a thought: Would it be simpler to use the CFX built-in chemical reaction stuff, but use a momentum source term to define your own porous material model? Then you can put source terms in any equation you like. Not sure if this helps, but I thought I would mention it.
ghorrocks is offline   Reply With Quote

Old   January 18, 2017, 09:05
Post
  #3
New Member
 
Ryan
Join Date: Jan 2017
Posts: 3
Rep Power: 9
minnesota123 is on a distinguished road
The overall convection-diffusion is a differential equation and it is my understanding that I cannot input the differential equation, as simulations need numerical approximation forms of the equations. This is where I am stuck because I cannot find anything online on adding these types of equations to CFX.
minnesota123 is offline   Reply With Quote

Old   January 19, 2017, 00:33
Default
  #4
Super Moderator
 
Glenn Horrocks
Join Date: Mar 2009
Location: Sydney, Australia
Posts: 17,703
Rep Power: 143
ghorrocks is just really niceghorrocks is just really niceghorrocks is just really niceghorrocks is just really nice
As stated in my previous post, you implement this equation using the additional variables in CFX.

In CFX you cannot directly enter a differential equation (like you can in matlab or FREEFEM). You are limited to the built-in differential equations and fortunately the convection-diffusion equation is one which is built in.
ghorrocks is offline   Reply With Quote

Old   January 19, 2017, 09:36
Default
  #5
Senior Member
 
Join Date: Jun 2009
Posts: 1,804
Rep Power: 32
Opaque will become famous soon enough
If possible, can you post the equation you want to solve ? Then, some of us here can point out how it matches the built-in implementations in ANSYS CFX and advise you on the next steps if possible.

For porous media, you must account for volume porosity and interactions between solid and fluid region within the media. It would be good to see how the equation includes them in the model, and what is possible using the software.
Opaque is offline   Reply With Quote

Old   January 19, 2017, 09:44
Default
  #6
Senior Member
 
Join Date: Jun 2009
Posts: 1,804
Rep Power: 32
Opaque will become famous soon enough
removed duplicate

Last edited by Opaque; January 19, 2017 at 09:45. Reason: Duplicate
Opaque is offline   Reply With Quote

Old   January 19, 2017, 10:54
Default
  #7
New Member
 
Ryan
Join Date: Jan 2017
Posts: 3
Rep Power: 9
minnesota123 is on a distinguished road
The equation I would like to implement is:

dC/dt = ( Grad dotprod D*Grad(C) ) + k*C

Where Grad is the gradient, dotprod is the dot product, C is the concentration of a species, D is the diffusion coefficient, and k is the reaction rate.

Any help on inputting this into CFX would be greatly appreciated!
minnesota123 is offline   Reply With Quote

Old   January 19, 2017, 14:01
Default
  #8
Senior Member
 
Join Date: Jun 2009
Posts: 1,804
Rep Power: 32
Opaque will become famous soon enough
ANSYS CFX solves the following equation for an additional variable

d (density * AV_specific)/dt = div (density * D_kinematic * grad (AV_specific)) + S_av

If your material density is constant, you should have no problem. If it is variable density, there will be a minor difference in the diffusion term.

You can Insert an Additional Variable, named as needed, select Specific, Scalar and set the units required.

Edit your Domain panel, Fluid Models section, activate the AV listed, select Transport Equation, set the Kinematic Diffusivity (D_kinematic) in the equation above, press Apply

Set boundary conditions for your AV (notice they must be C / density).

For the source term, insert a subdomain, and add the source term to the AV.

Read the documentation for fine details of what you are setting to get familiar what it really means.

Hope the above helps,
Opaque is offline   Reply With Quote

Reply

Tags
chemical reactions, convection, diffusion equation, equations


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
Modeling both radiation and convection on surfaces - Ansys Transient Thermal R13 s.mishra ANSYS 0 March 31, 2012 04:12
Applying boundary conditions to 1D Steady Convection Diffusion using Power Law Scheme ConvDiff Main CFD Forum 1 January 7, 2012 16:40
Convection, diffusion and reaction Joao CFX 0 October 25, 2008 20:19
Modeling diffusion of cell (sphere) under flow Shel Main CFD Forum 0 August 22, 2005 15:26
initial setup question on diffusion modeling redum FLUENT 1 February 15, 2003 11:12


All times are GMT -4. The time now is 00:06.