set_value_BC#
- TransientFickianDiffusion.set_value_BC(pores=None, values=[], mode='add')#
Applies constant value boundary conditons to the specified pores.
These are sometimes referred to as Dirichlet conditions.
- Parameters:
pores (array_like) – The pore indices where the condition should be applied
values (float or array_like) – The value to apply in each pore. If a scalar is supplied it is assigne to all locations, and if a vector is applied is must be the same size as the indices given in
pores
.mode (str, optional) – Controls how the boundary conditions are applied. The default value is ‘merge’. For definition of various modes, see the docstring for
set_BC
.