splinepy.io.gismo.AdditionalBlocks.add_boundary_conditions#

AdditionalBlocks.add_boundary_conditions(block_id, dim, function_list, bc_list, cv_list=None, unknown_id=0, multipatch_id=0, comment=None)[source]#

Create Python dictionary of boundary function’s block to be used in gismo export function.

Parameters:
  • block_id (int) – ID number of boundaryConditions-block

  • dim (int) – Dimension of physical space

  • function_list (list<str/tuple<str,str,...>>) – List of functions where entries are strings of the function of the BC. If tuple is given, it will be interpreted as component-wise functions (e.g. for vector valued functions)

  • bc_list (list<tuple<str, str, int>>) – List of which boundary attains which type of boundary condition. First entry is the boundary name, second the type of condition (e.g. “Dirichlet”), third is on which variable/unknown it should be applied

  • cv_list (list<tuple<str, str, str, str>>) – List of which corner values of each patch should have a boundary condition. First entry is the variable/unknown, second the patch number, third is on which corner it should be applied and fourth is the function or value

  • unknown_id (int (0)) – ID of the unknown/variable on which this boundaryConditions block should be applied

  • multipatch_id (int (0)) – ID of the multipatch

  • comment (str) – Comment above boundaryFunctions-block