|
[Sponsors] |
Creating surface concentration boundary condition |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 25, 2014, 00:17 |
Creating surface concentration boundary condition
|
#1 |
Member
Join Date: Aug 2011
Posts: 89
Rep Power: 15 |
Hello all. I am working an interesting problem that is similar to a membrane problem from what I can tell. I am trying to apply a custom boundary condition using a udf but am somewhat stuck.
We have adapted our problem to use Henry's law. Therefore I am able to say that on one side of a solid barrier the concentration of water (in kmoles per cubic meter) is proportional to the partial pressure on the other side However, I want to apply this as a boundary condition value. I was told that I could simply take this volume concentration, multiply by a cell volume and divide by the cell surface area, and then I would have kmoles per square meter, which I could then multiply by the face area at the boundary to get kmoles. However, this is giving me obviously incorrect answers. Does anyone have any clue about how I can convert this volume concentration to a surface concentration? Thanks in advance! |
|
February 25, 2014, 10:09 |
|
#2 |
Member
Join Date: Aug 2011
Posts: 89
Rep Power: 15 |
So we have discovered that the boundary condition can be applied if we simply
Multiply the volume of the cell by the volumetric concentration. This works but seems like it shouldn't be correct. Anyone have any ideas as to why this works? |
|
February 25, 2014, 10:49 |
|
#3 | ||
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Quote:
Quote:
|
|||
February 25, 2014, 15:50 |
|
#4 |
Member
Join Date: Aug 2011
Posts: 89
Rep Power: 15 |
Pakk
Thanks for engaging. I am using a user defines scalar to represent moles of water. Inside my solid region I am trying to place a boundary condition on the wall and then let diffusion take over. I believe therefore that my boundary condition needs to be miles of water (forgive me I am using k moles and moles interchangeably in this post). By Henry's law I can get miles per cubic meter for the first infinitesimally small layer, so therefore need to convert units. I am not a chemistry specialist but was therefore told that I could simply multiply by the volume of the cell and dived by the entire surface area to get a surface concentration in moles per square meter. Then multiply by the boundary face area and get the vales of moles on the wall that I can use as a bc. We found out this morning that simply multiplying by the cell volume gets us the predicted answer but I can't understand why this might work. Do you have any insight? |
|
February 26, 2014, 12:52 |
|
#5 |
Senior Member
A-A Azarafza
Join Date: Jan 2013
Posts: 226
Rep Power: 14 |
@ MachZero
Hi, What you calculated is actually the concentration integral ( sum (Ci *Vi)). If you want to prescribe it in B.C, the value must be in rate form (mol or Kmol/s). You can get it using: mass fraction of species i*density* velocity/molecular weight of species i the above definition has unit (kg/m^3 *m/s/Kg)/Kmol =Kmol/m2.s now, you can multiply this value by surface area (boundary thread) and receive Kmol/s. C_YI(c,t,i) and C_R(c,t) are the macros you need to get density and mass fraction of the species. I hope it helps.
__________________
Regard yours |
|
February 26, 2014, 15:37 |
|
#6 | ||||
Senior Member
Join Date: Nov 2013
Posts: 1,965
Rep Power: 27 |
Quote:
In the analogy of temperature: you want to store the temperature in each element, not the thermal energy in each element. The temperature is independent of element size, just as the molarity in moles per cubic meter. Quote:
This could be: molarity (in moles per cubic meter) at the interface. Or the amount of water going through the wall per surface area per time unit (in moles per square meter per second). In the analogy of temperature, you can specify temperature at the boundary, or heat flux at the boundary. Quote:
Quote:
You should really think about dimensions. Does your scalar represent amount of substance (moles) or molar concentration (moles per cubic meter)? Does Henry's law give you molar concentration (moles per cubic meter) or molar area concentration (moles per square meter)? What do you need to apply as a boundary condition, the local molar concentration (moles per cubic meter), the local molar area concentration (moles per square meter) or the amount of substance in the first layer of elements (moles)? I can simply tell you the answers, but that won't help you to understand the problem. If you understand the problem, the questions above will be much simpler. By the way: I am also not a chemical specialist, but if someone tells me that I can use a simple trick to do something, and that trick fails, I would take a little time to understand the problem, and not try to solve it by changing things in the code (such as multiplying by the volume) until the result is fine... |
|||||
Tags |
boundary condition, fluent - udf, membrane separation |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using Surface Solution Data as Boundary Condition | matari | OpenFOAM Pre-Processing | 0 | August 30, 2012 10:46 |
RIPPLE's free surface boundary condition | alongalong2 | Main CFD Forum | 4 | February 10, 2011 00:35 |
External Radiation Boundary Condition (Two sided wall), Grid Interface | CFD XUE | FLUENT | 0 | July 8, 2010 07:49 |
boundary condition at free surface | mike | Fidelity CFD | 3 | June 8, 2006 07:23 |
Convective Heat Transfer - Heat Exchanger | Mark | CFX | 6 | November 15, 2004 16:55 |