FEMParameters.add_boundary
- FEMParameters.add_boundary(mesh_domain, btype, value=None, variable=None, mesh_domain_3D=0, ID=None)[source]
add new boundary or update if mesh_domain already exists
- Parameters:
mesh_domain (int) – Mesh ID of the boundary (should be 2D)
btype (str {"Dirichlet", "Neuman"}) – Type of boundary condition either “Dirichlet” to set the
value (float) – set the condition to the value
variable (str) – name of a python variable from which the boundary value should be taken. NB: variable should be place as kwarg in setup_sim see examples
mesh_domain_3D (int) – ID of the mesh of corresponding volume, by default 0 NB: Most of the time 0 except for LIFE electrode, must be set to the corresponding fascicle)
ID (int) – ID of the boundary condition