Modeling Photocatalytic Oxidation in CS
Posted: Mon Jun 25, 2018 1:32 pm
Dear friends,
I'm facing the problem of modeling a 3D photocatalytic reactor, hoping someone have the time for replying or make suggestions on the topic. I’m using Code Saturne 5.0.7 on a workstation running Ubuntu 16.04.
Basically the fluid flows into a channel where because of the coating on the wetted surfaces the transported pollutant molecules get oxidized according to a reaction rate which depends on both local pollutant concentration and local irradiance field (radiated from a source light within the fluid domain). The problem is implementing a model able to predict the lowering in pollutant concentration at the walls. Following some current literature the idea for solving the problem would be as follows:
1- solving for the irradiance field in the same geometry using an external tool and save it on given data files (the fluid is transparent to radiation)
2- mimic the oxidation process creating a (negative) volumetric source term for the transported variable (i.e. pollutant concentration) on the cell layers adjacent to the coated walls
3- to modeling the source via a reaction rate function which varies with both the local cell concentration and the imported irradiance values
Till now I was been able of implementing a simple steady laminar test case with one chemical active surface. The test is pretty rough especially because no heat release is considered nor new species formation and transport are modeled, but a simple non-linear source term is introduced at the bottom wall cells using cs_user_source_terms.f90 subroutine(if needed the complete case is attached below).
Now I’m facing the next step, i.e., adding the functional dependence from the irradiance field. What would be the right way for mapping the irradiation fields saved in external files onto the interested cells making such a new local parameter available to mathematically enter the source term expression? Note that meshes for the irradiance field aren’t the same of those in the fluid domain boundaries.
In the forum I' ve found something about data interpolation from external files (viewtopic.php?f=2&t=1872&hilit=import&start=10) but for standard code variables, hence any suggestion is welcomed.
Thank you all in advance, especially to EDF and for CS developers for letting the software open-source.
Alessandro
I'm facing the problem of modeling a 3D photocatalytic reactor, hoping someone have the time for replying or make suggestions on the topic. I’m using Code Saturne 5.0.7 on a workstation running Ubuntu 16.04.
Basically the fluid flows into a channel where because of the coating on the wetted surfaces the transported pollutant molecules get oxidized according to a reaction rate which depends on both local pollutant concentration and local irradiance field (radiated from a source light within the fluid domain). The problem is implementing a model able to predict the lowering in pollutant concentration at the walls. Following some current literature the idea for solving the problem would be as follows:
1- solving for the irradiance field in the same geometry using an external tool and save it on given data files (the fluid is transparent to radiation)
2- mimic the oxidation process creating a (negative) volumetric source term for the transported variable (i.e. pollutant concentration) on the cell layers adjacent to the coated walls
3- to modeling the source via a reaction rate function which varies with both the local cell concentration and the imported irradiance values
Till now I was been able of implementing a simple steady laminar test case with one chemical active surface. The test is pretty rough especially because no heat release is considered nor new species formation and transport are modeled, but a simple non-linear source term is introduced at the bottom wall cells using cs_user_source_terms.f90 subroutine(if needed the complete case is attached below).
Now I’m facing the next step, i.e., adding the functional dependence from the irradiance field. What would be the right way for mapping the irradiation fields saved in external files onto the interested cells making such a new local parameter available to mathematically enter the source term expression? Note that meshes for the irradiance field aren’t the same of those in the fluid domain boundaries.
In the forum I' ve found something about data interpolation from external files (viewtopic.php?f=2&t=1872&hilit=import&start=10) but for standard code variables, hence any suggestion is welcomed.
Thank you all in advance, especially to EDF and for CS developers for letting the software open-source.
Alessandro