Class for boundary condition information. Allows more flexible usage.
One can specify boundary parts via model.bnd_rect_corner1 and model.bnd_rect_corner2. For boundary integrals one has to group the rectangles with numbers < -1 in model.bnd_rect_index. For each of these rectangles an integral kernel and coefficient functions can be given in model. Then, model.matrix_boundary_int_kernel{i} or model.rhs_boundary_int_kernel{i} is used on the boundary with index -(i+1). If a term is zero, there should be an empty cell entry.
Boundaries not assigned in this way are used for Dirichlet conditions by default. It is also possible to define Dirichlet constraints for chosen dimensions of the field variable in model.bnd_dimrange_index. Then the rectangles have to be given explicitly (after the rectangles for the integral terms).
The Fem assembly requires a field named bc_info in model_data, which is an object of this class.
Public Member Functions | |
BcInfo (model,gridbase grid, df_info) | |
bi = BcInfo(model, grid, df_info) Constructor preparing all necessary boundary condition information for the Fem assembly. More... | |
Public Attributes | |
grid | |
df_info | |
nbint_parts | |
elinds | |
edgeinds | |
has_dirichlet_values | |
dirichlet_gids | |
dirichlet_dof_vector_components | |
Fem.BcInfo.BcInfo | ( | model, | |
gridbase | grid, | ||
df_info | |||
) |
bi = BcInfo(model, grid, df_info) Constructor preparing all necessary boundary condition information for the Fem assembly.
model | model |
grid | an object |
df_info | df info |
NBI —
NBI ECX —
ECX(i,j) =
\(x\)-coordinate of midpoint of edge from el i
to NB j
ECY —
ECY(i,j) =
\(y\)-coordinate of midpoint of edge from el i
to NB j
nneigh —
number of neighbours of each elementhas_dirichlet_values —
has dirichlet values bnd_rect_corner1 —
bnd rect corner1 bnd_rect_index —
bnd rect index bnd_dimrange_index —
bnd dimrange index bnd_rect_corner2 —
bnd rect corner2 decomp_mode —
flag indicating the operation mode of the function:mu_names
.mu_names
.dof_ids_local —
dof ids local dofs_edges_llcoord —
dofs edges llcoord