Code Monkey home page Code Monkey logo

ancolli / rotatingelectrodesfoam Goto Github PK

View Code? Open in Web Editor NEW
3.0 4.0 1.0 50 KB

It is described how to simulate current distribution in electrochemical reactors with rotating electrodes under mass-transfer controlled conditions, by the developed solver: concentrationPimpleFoam. It is shown how to pre-process, run and post-process a basic case involving a 2D axisimetric domain

License: GNU General Public License v3.0

C 42.46% C++ 56.56% Shell 0.98%

rotatingelectrodesfoam's Introduction

v1.0.0

Cite as: International Journal of Heat and Mass Transfer 137 (2019) 835-846 (https://www.sciencedirect.com/science/article/pii/S0017931019304508) doi: 10.1016/j.ijheatmasstransfer.2019.03.152

rotatingElectrodesFoam

It is described how to simulate current distribution in electrochemical reactors with rotating electrodes under mass-transfer controlled conditions, by the developed solver: concentrationPimpleFoam. It is shown how to pre-process, run and post-process a basic case involving a 2D axisimetric domain. The proposed strategy allows to compute the wall share stress and flux of a single specie towards electrodes.

Disclaimer

This offering is not approved or endorsed by OpeFOAM Foundation, producer and distributor of the OpenFOAM software via www.openfoam.org.

Usage

In applications (A) you will find the scripts to compile the solver, turbulence model and post-processing utility in order to obtain the wall share stress and mass-transfer profile. In tutorials (B) you will find two examples for an axisymmetric rotating cylinder electrode (RCE) and an axisymmetric rotating disc electrode (RDE). In more information (C) you will find a brief description of the proposed tool

# A) Applications

1.
A) Paste applications/utilities/Solvers/concentrationPimpleFoam inside OpenFOAM user directory (Applications/Utilities/Solvers).
B) Open a terminal inside concentrationPimpleFoam.
C) Run wmake.
2.
A) Paste applications/utilities/turbulenceModels/kOmegaSSTCC and SpalartAllmarasRCC inside OpenFOAM user directory (Applications/Utilities/turbulenceModels).
B) Open a terminal inside kOmegaSSTCC and SpalartAllmarasRCC.
C) Run wmake.
3.
A) Paste applications/utilities/postProcessing/wallFlux and /wallSS inside OpenFOAM user directory (Applications/Utilities/postProcessing).
B) Open a terminal inside wallFlux and wallSS.
C) Run wmake.

# B) Tutorials

1- Paste tutorials inside OpenFOAM user directory (Run/Tutorials).
2- Enter to RDE or RCE and open a Terminal.
3- Modify properties (diffusion coefficient, turbulent Schmith number and kinematic viscosity) inside constant/transportProperties.
4- Modify turbulence properties (laminar or turbulent fluid flow with the corresponding turbulence model) inside constant/turbulenceProperties. 5- Run ./Allrun.

# C) More information

Geometry and Mesh
The geometry is defined and then meshed using the OpenFOAM blockMesh tool, after running the blockMesh utility.

Files setup by the user

0 directory: Boundary ans initial conditions.

constant directory: As is any standard OpenFOAM case, the constant folder must contain a standard polymesh directory, generated by the standard blockMeshDict-file, which defines the full domain and its mesh and is located in the system directory. Also, must contain transport properties and the desirable turbulence model.

system directory: In the system directory, there is information about the discretization procedure, and control variables of the numerical scheme.

Post-processing
By the command lines >> postProcess -func flux and >> concentrationPimpleFoam -postProcess -func shearStress it is possible to obtain by means of the post processing utility wallFlux and wallSS (supplied here) the total flux and wall shear stress per electrode.

Running the case
After following each step as defined in the above tutorial. The case can be executed by using the command in the terminal ./Allrun. An Allrun can be explained as a script file which contains all the commands used to execute the case.

Monitoring flux (mol/m^2/s) vs. iteration
By runnung the command "gnuplot scripts/plot_res" in a new terminal it is possible to monitor the flux over the working electrode vs. time (iteration).

rotatingelectrodesfoam's People

Contributors

ancolli avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

uniqu123

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.