Skip to content

Commit

Permalink
Correct form and docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
KulaginVladimir committed Jul 9, 2024
1 parent 1add5fc commit d481a88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions festim/boundary_conditions/fluxes/surface_kinetics.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class SurfaceKinetics(FluxBC):
.. math::
-D \nabla c_\mathrm{m} \cdot \mathbf{n} = -\lambda_{\mathrm{IS}} \dfrac{\partial c_{\mathrm{m}}}{\partial t}
- J_{\mathrm{bs}} + J_{\mathrm{sb}},
-D \nabla c_\mathrm{m} \cdot \mathbf{n} = \lambda_{\mathrm{IS}} \dfrac{\partial c_{\mathrm{m}}}{\partial t}
+ J_{\mathrm{bs}} - J_{\mathrm{sb}},
where :math:`c_{\mathrm{m}}` is the concentration of mobile hydrogen (:math:`\mathrm{H \ m}^{-3}`),
:math:`c_{\mathrm{s}}` is the surface concentration of adsorbed hydrogen (:math:`\mathrm{H \ m}^{-2}`),
Expand Down Expand Up @@ -163,7 +163,7 @@ def create_form(self, solute, solute_prev, solute_test_function, T, ds, dt):
)
# Flux to solute species
self.form += (
-lambda_IS
lambda_IS
* (solute - solute_prev)
/ dt.value
* solute_test_function
Expand Down
2 changes: 1 addition & 1 deletion test/unit/test_boundary_conditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ def J_vs(cs, T, prm1, prm2):
(adsorbed - adsorbed_prev) / dt.value * adsorbed_test_function * ds(1)
)
expected_form += (
-lambda_IS * (solute - solute_prev) / dt.value * solute_test_function * ds(1)
lambda_IS * (solute - solute_prev) / dt.value * solute_test_function * ds(1)
)
expected_form += -(j_vs + J_bs - J_sb) * adsorbed_test_function * ds(1)
expected_form += (J_bs - J_sb) * solute_test_function * ds(1)
Expand Down

0 comments on commit d481a88

Please sign in to comment.