Boundary Conditions
The boundary conditions need to set through
echemfem.EchemSolver.set_boundary_markers(), which sets a dictionary
containing boundary condition names and their corresponding boundary id.
In the equations below, we have:
\(c_k\), the concentration of species \(k\)
\(\Phi_2\), ionic potential
\(\Phi_1\), electronic potential
\(\mathbf N_k\), the flux of species \(k\)
\(c_{k,\mathrm{bulk}}\), the bulk concentration of species \(k\)
\(\mathbf n\), the unit outward normal vector
\(\mathbf u\), the velocity
Here are the different options for boundary_markers keys:
"inlet": Inlet boundary condition defined as
"outlet": Outlet boundary condition defined as
"bulk dirichlet": Dirichlet boundary condition for concentrations using the value"bulk"provided in Concentration Parameters such that
"bulk": Robin boundary condition for concentrations, where \(K_{k,MT}\) is the value"mass transfer coefficient"if provided in Concentration Parameters for species \(k\). Also homogeneous Dirichlet boundary condition of the ionic potential, as follows
"neumann": Neumann boundary condition defined through the methodechemfem.EchemSolver.neumann()."gas": Dirichlet boundary condition for concentrations using the value"gas"if provided in Concentration Parameters for species \(k\)."applied": Dirichlet boundary condition for ionic potential, if this is a non-porous case, and for the electronic potential, if this is a porous case. It uses the value"U_app"given in Physical Parameters."liquid applied": Dirichlet boundary condition for ionic potential using the value"U_app"given in Physical Parameters. This is the same as"applied"in the non-porous case."robin": Robin boundary condition for the ionic potential when using the Poisson equation, typically used for GMPNP. We pass \(U - U^\mathrm{PZC}\) together as"U_app"in Physical Parameters, as well as"gap capacitance"for \(C_\mathrm{gap}\).
"poisson neumann": Neumann boundary condition for the ionic potential when using the Poisson equation, where \(\sigma\) is the value"surface charge density"in Physical Parameters.
Charge-transfer reactions: a custom
strcan be passed to name the electrodes used in surface charge-transfer reactions defined using Electrochemical Parameters.