splinepy.io.gismo.AdditionalBlocks.add_function#
- AdditionalBlocks.add_function(dim, block_id, function_string, comment=None)[source]#
Create Python dictionary of custom function’s block to be used in gismo export function.
- Parameters:
dim (int) – Physical dimension of the problem
id (int) – ID of function block
function_string (str or tuple<str,str>) – Function as string. If tuple is given, function will be vector-valued.
comment (str) – Comment above function block