flatten

一个用于“扁平化”块层次模型中组件的模块,针对常见的索引集

Functions

flatten_components_along_sets(m, sets, ctype)

此函数遍历块中包含的组件(递归地),并将它们的数据对象分区为仅由指定集合索引的组件。

flatten_dae_components(model, time, ctype[, ...])

将组件分区为ComponentData和仅由提供的集合索引的Components。

generate_sliced_components(b, index_stack, ...)

递归生成指定ctype沿指定集合的切片

get_slice_for_set(s)

获取集合的适当维度的切片。

slice_component_along_sets(component, sets)

此函数生成提供的组件沿提供的集合的所有可能切片。