simulation of a simple chemical reaction with finite elements method with Fenics library in python

Job ID: 33887449

Budget: €30 – €250 EUR

Please look at the image in the attachment.
Component A diffuse from the left side to the right.
Component A diffuse to the blue area and when the component touch the black area the reaction happened.
There is no convection, just diffusion. We have The diffusion coefficient.
The formula for the consumption of component A is known.
The equation that should be solved is also known.

∇(D)*∇(XA)=SA

D= diffusion coefficient of A
XA= mole fraction of A
SA = 100* concentration A on the surface of black material * exp(100/R*T) = the consumption rate of Component A

Finally, I want to calculate the whole SA.

-Please note that this formula should be converted to the weak formulation.
-The mesh file is already converted to the XML file and the physical group for every curve and surface is already defined.
-please note that to make things simple, this reaction has just component A and no other component.
Related categories: Python Finite Element Analysis