rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
List of all members | Public Member Functions | Public Attributes
Fem.BcInfo Class Reference

Detailed Description

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.

Definition at line 18 of file BcInfo.m.

Inheritance diagram for Fem.BcInfo:
Inheritance graph
[legend]
Collaboration diagram for Fem.BcInfo:
Collaboration graph
[legend]

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
 

Constructor & Destructor Documentation

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.

Parameters
modelmodel
gridan object
df_infodf info
Required fields of grid:
  • 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 element
Required fields of model:
  • has_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:
    • 0 (complete) : no affine parameter dependence or decomposition is performed.
    • 1 (components) : for each output argument a cell array of output matrices is returned representing the \(q\)-th component independent of the parameters given in mu_names.
    • 2 (coefficients) : returns a vector where each coordinate represents the \(q\)-the coefficient \(\sigma_{\cdot}^{q}(\mu)\) dependent on the parameters given in mu_names.
Required fields of df_info:
  • dof_ids_local —  dof ids local
  • dofs_edges_llcoord —  dofs edges llcoord

Definition at line 68 of file BcInfo.m.


The documentation for this class was generated from the following file: