Structural Transformation
The functions documented on this page are internal implementation details of ModelingToolkit. They are not part of the public API and may change or be removed without notice in non-breaking releases. This documentation is provided to help contributors understand the codebase.
These functions are used for structural analysis and transformation of equation systems, including index reduction, tearing, and other algebraic manipulations used in the simplification process.
Tearing and Algebraic Simplification
ModelingToolkit.StructuralTransformations.tearing — Function
tearing(sys)Tear the nonlinear equations in system. When simplify=true, we simplify the new residual equations after tearing. End users are encouraged to call mtkcompile instead, which calls this function internally.
Missing docstring for tearing_reassemble. Check Documenter's build log for details.
Missing docstring for tearing_substitution. Check Documenter's build log for details.
Missing docstring for torn_system_jacobian_sparsity. Check Documenter's build log for details.
Missing docstring for linear_subsys_adjmat!. Check Documenter's build log for details.
Index Reduction
ModelingToolkit.StructuralTransformations.dae_index_lowering — Function
dae_index_lowering(sys::System; kwargs...) -> SystemPerform the Pantelides algorithm to transform a higher index DAE to an index 1 DAE. kwargs are forwarded to pantelides!. End users are encouraged to call mtkcompile instead, which calls this function internally.
Missing docstring for pantelides_reassemble. Check Documenter's build log for details.
ModelingToolkit.StructuralTransformations.dummy_derivative — Function
dummy_derivative(sys)Perform index reduction and use the dummy derivative technique to ensure that the system is balanced.
Consistency Checking
Missing docstring for check_consistency. Check Documenter's build log for details.
Incidence Matrix Operations
ModelingToolkit.StructuralTransformations.sorted_incidence_matrix — Function
sorted_incidence_matrix(
sys::ModelingToolkitBase.AbstractSystem
) -> Any
Obtain the incidence matrix of the system sorted by the SCCs. Requires that the system is simplified and has a schedule.
Missing docstring for but_ordered_incidence. Check Documenter's build log for details.
Variable Ordering and Masks
Missing docstring for lowest_order_variable_mask. Check Documenter's build log for details.
Missing docstring for highest_order_variable_mask. Check Documenter's build log for details.
Missing docstring for computed_highest_diff_variables. Check Documenter's build log for details.
Shift Operations
These functions handle shift operations in discrete-time systems.
Missing docstring for lower_shift_varname. Check Documenter's build log for details.
System Structure Types and Functions
Missing docstring for TransformationState. Check Documenter's build log for details.
Graph Types
Missing docstring for InducedCondensationGraph. Check Documenter's build log for details.