misc

Functions

add_continuity_equations(block, d, i, loc)

Adds continuity equations in the case that the polynomial basis function does not have a root at the finite element boundary

add_discretization_equations(block, d)

Adds the discretization equations for DerivativeVar d to the Block block.

block_fully_discretized(b)

Checks to see if all ContinuousSets in a block have been discretized

create_access_function(var)

This method returns a function that returns a component by calling it rather than indexing it

create_partial_expression(scheme, expr, ind, loc)

This method returns a function which applies a discretization scheme to an expression along a particular indexing set.

expand_components(block)

Loop over block components and try expanding them.

generate_colloc_points(ds, tau)

This function adds collocation points between the finite elements in the differential set

generate_finite_elements(ds, nfe)

This function first checks to see if the number of finite elements in the differential set is equal to nfe.

get_index_information(var, ds)

This method will find the index location of the set ds in the var, return a list of the non_ds indices and return a function that can be used to access specific indices in var indexed by a ContinuousSet by specifying the finite element and collocation point.

update_contset_indexed_component(comp, ...)

Update any model components which are indexed by a ContinuousSet that has changed