Skip to content
PartialTwoSplines.md

PartialTwoSplines

Base component providing two independent spline instances.

This partial component serves as a base class that encapsulates two distinct instances of a Spline component, declared as spline_a and spline_b. It is intended to be extended by more complex components that require dual spline functionalities. PartialTwoSplines itself does not define any specific dynamic behavior, equations, or direct connections; its primary role is to provide these two spline subcomponents and their associated graphical placement information for a modeling environment.

Usage

PartialTwoSplines()

Connectors

Source

dyad
# Base component providing two independent spline instances.
#
# This partial component serves as a base class that encapsulates two distinct instances of a `Spline` component,
# declared as `spline_a` and `spline_b`. It is intended to be extended by more complex components that
# require dual spline functionalities. `PartialTwoSplines` itself does not define any specific dynamic behavior,
# equations, or direct connections; its primary role is to provide these two spline subcomponents and their
# associated graphical placement information for a modeling environment.
partial component PartialTwoSplines
  # First spline
  spline_a = Spline() [{"Dyad": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}}]
  # Second spline
  spline_b = Spline() [{"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}]
end
Flattened Source
dyad
# Base component providing two independent spline instances.
#
# This partial component serves as a base class that encapsulates two distinct instances of a `Spline` component,
# declared as `spline_a` and `spline_b`. It is intended to be extended by more complex components that
# require dual spline functionalities. `PartialTwoSplines` itself does not define any specific dynamic behavior,
# equations, or direct connections; its primary role is to provide these two spline subcomponents and their
# associated graphical placement information for a modeling environment.
partial component PartialTwoSplines
  # First spline
  spline_a = Spline() [{"Dyad": {"placement": {"icon": {"x1": -50, "y1": 450, "x2": 50, "y2": 550}}}}]
  # Second spline
  spline_b = Spline() [{"Dyad": {"placement": {"icon": {"x1": 950, "y1": 450, "x2": 1050, "y2": 550}}}}]
metadata {}
end


Test Cases

This is setup code, that must be run before each test case.

julia
using RotationalComponents
using ModelingToolkit, OrdinaryDiffEqDefault
using Plots
using CSV, DataFrames

snapshotsdir = joinpath(dirname(dirname(pathof(RotationalComponents))), "test", "snapshots")
"/home/actions-runner-10/.julia/packages/RotationalComponents/0VPxm/test/snapshots"
  • Examples

  • Experiments

  • Analyses