Click any class or function to expand its documentation. Use the sidebar to navigate between modules. fastsim Connection (Connection) Class to handle input-output relations of blocks by connecting them (directed graph) Interface (fastsim.blocks._shim._ShimBlock) Bare-bone block that serves as a data interface for the 'Subsystem' class. Subsystem (fastsim.blocks._shim._ShimBlock) Subsystem class that holds its own blocks and connecions and Simulation Transient simulation that accepts fastsim *and* pathsim blocks alike. StopSimulation (StopSimulation) Raised by a block or model to signal that the simulation should stop adapt (cls: type, strict: bool = True, _memo: Optional[dict[type, type]] = None) random_uniform (key) random_normal (key) fastsim.adapter adapt (cls: type, strict: bool = True, _memo: Optional[dict[type, type]] = None) fastsim.blocks Scope (Block) Spectrum (Block) ADC (fastsim.blocks._shim._ShimBlock) Models an ideal Analog-to-Digital Converter (ADC). Abs (fastsim.blocks._shim._ShimBlock) Absolute value operator block. Adder (fastsim.blocks._shim._ShimBlock) Summs / adds up all input signals to a single output signal (MISO) Alias (fastsim.blocks._shim._ShimBlock) Signal alias / pass-through block. AllpassFilter (fastsim.blocks._shim._ShimBlock) Direct implementation of a first order allpass filter, or a cascade Amplifier (fastsim.blocks._shim._ShimBlock) Amplifies the input signal by multiplication with a constant gain term. AntiWindupPID (fastsim.blocks._shim._ShimBlock) Proportional-Integral-Differentiation (PID) controller with anti-windup mechanism (back-calculation). Atan (fastsim.blocks._shim._ShimBlock) Arctangent operator block. Atan2 (fastsim.blocks._shim._ShimBlock) Two-argument arctangent block. Backlash (fastsim.blocks._shim._ShimBlock) Backlash (mechanical play) element. ButterworthBandpassFilter (fastsim.blocks._shim._ShimBlock) Direct implementation of a bandpass butterworth filter block. ButterworthBandstopFilter (fastsim.blocks._shim._ShimBlock) Direct implementation of a bandstop butterworth filter block. ButterworthHighpassFilter (fastsim.blocks._shim._ShimBlock) Direct implementation of a high pass butterworth filter block. ButterworthLowpassFilter (fastsim.blocks._shim._ShimBlock) Direct implementation of a low pass butterworth filter block. ChirpPhaseNoiseSource (fastsim.blocks._shim._ShimBlock) Chirp source, sinusoid with frequency ramp up and ramp down, plus phase noise. ChirpSource (fastsim.blocks._shim._ShimBlock) Alias for ChirpPhaseNoiseSource. Clip (fastsim.blocks._shim._ShimBlock) Clipping/saturation operator block. Clock (fastsim.blocks._shim._ShimBlock) Alias for ClockSource. ClockSource (fastsim.blocks._shim._ShimBlock) Discrete time clock source block. CoSimulationFMU (fastsim.blocks._shim._ShimBlock) CoSimulationFMU block Comparator (fastsim.blocks._shim._ShimBlock) Comparator block that sets output depending on predefined thresholds for the input. Constant (fastsim.blocks._shim._ShimBlock) Produces a constant output signal (SISO). Cos (fastsim.blocks._shim._ShimBlock) Cosine operator block. Cosh (fastsim.blocks._shim._ShimBlock) Hyperbolic cosine operator block. Counter (fastsim.blocks._shim._ShimBlock) Counts the number of detected bidirectional threshold crossings. CounterDown (fastsim.blocks._shim._ShimBlock) Counts the number of detected unidirectional (hi->lo) threshold crossings. CounterUp (fastsim.blocks._shim._ShimBlock) Counts the number of detected unidirectional (lo->hi) threshold crossings. DAC (fastsim.blocks._shim._ShimBlock) Models an ideal Digital-to-Analog Converter (DAC). Deadband (fastsim.blocks._shim._ShimBlock) Deadband (dead zone) element. Delay (fastsim.blocks._shim._ShimBlock) Delays the input signal by a time constant 'tau' in seconds. Differentiator (fastsim.blocks._shim._ShimBlock) Differentiates the input signal. DiscreteDerivative (fastsim.blocks._shim._ShimBlock) Discrete-time backward-difference derivative. DiscreteIntegrator (fastsim.blocks._shim._ShimBlock) Discrete-time integrator (forward Euler). DiscreteStateSpace (fastsim.blocks._shim._ShimBlock) Discrete-time MIMO state space block. DiscreteTransferFunction (fastsim.blocks._shim._ShimBlock) Discrete-time SISO transfer function in numerator/denominator form. Divider (fastsim.blocks._shim._ShimBlock) Multiplies and divides input signals (MISO). DynamicalFunction (fastsim.blocks._shim._JitShimBlock) Arbitrary MIMO time and input dependent function block. DynamicalSystem (fastsim.blocks._shim._JitShimBlock) This block implements a nonlinear dynamical system / nonlinear state space model. Equal (fastsim.blocks._shim._ShimBlock) Equality comparison block. Exp (fastsim.blocks._shim._ShimBlock) Exponential operator block. FIR (fastsim.blocks._shim._ShimBlock) Discrete-time Finite-Impulse-Response (FIR) filter. FirstOrderHold (fastsim.blocks._shim._ShimBlock) First-order hold reconstructor. FullyImplicitDAE (fastsim.blocks._shim._JitShimBlock) Fully-implicit DAE block. Function (fastsim.blocks._shim._JitShimBlock) Arbitrary MIMO function block, defined by a function or `lambda` expression. GaussianPulseSource (fastsim.blocks._shim._ShimBlock) Source block that generates a gaussian pulse GreaterThan (fastsim.blocks._shim._ShimBlock) Greater-than comparison block. Integrator (fastsim.blocks._shim._ShimBlock) Integrates the input signal. LUT1D (fastsim.blocks._shim._ShimBlock) One-dimensional lookup table with linear interpolation functionality. LeadLag (fastsim.blocks._shim._ShimBlock) Lead-Lag compensator. LessThan (fastsim.blocks._shim._ShimBlock) Less-than comparison block. Log (fastsim.blocks._shim._ShimBlock) Natural logarithm operator block. Log10 (fastsim.blocks._shim._ShimBlock) Base-10 logarithm operator block. LogicAnd (fastsim.blocks._shim._ShimBlock) Logical AND block. LogicNot (fastsim.blocks._shim._ShimBlock) Logical NOT block. LogicOr (fastsim.blocks._shim._ShimBlock) Logical OR block. MassMatrixDAE (fastsim.blocks._shim._JitShimBlock) Mass-matrix DAE block. Matrix (fastsim.blocks._shim._ShimBlock) Linear matrix operation (matrix-vector product). Mod (fastsim.blocks._shim._ShimBlock) Modulo operator block. ModelExchangeFMU (fastsim.blocks._shim._ShimBlock) ModelExchangeFMU block Multiplier (fastsim.blocks._shim._ShimBlock) Multiplies all signals from all input ports (MISO). Norm (fastsim.blocks._shim._ShimBlock) Vector norm operator block. ODE (fastsim.blocks._shim._JitShimBlock) Ordinary differential equation (ODE) defined by its right hand side function. PID (fastsim.blocks._shim._ShimBlock) Proportional-Integral-Differentiation (PID) controller. PT1 (fastsim.blocks._shim._ShimBlock) First-order lag element (PT1). PT2 (fastsim.blocks._shim._ShimBlock) Second-order lag element (PT2). PinkNoise (fastsim.blocks._shim._ShimBlock) Pink noise (1/f noise) source using the Voss-McCartney algorithm. Polynomial (fastsim.blocks._shim._ShimBlock) Polynomial operator block. Pow (fastsim.blocks._shim._ShimBlock) Raise to power operator block. PowProd (fastsim.blocks._shim._ShimBlock) Power-Product operator block. Pulse (fastsim.blocks._shim._ShimBlock) Alias for PulseSource. PulseSource (fastsim.blocks._shim._ShimBlock) Generates a periodic pulse waveform with defined rise and fall times. RandomNumberGenerator (fastsim.blocks._shim._ShimBlock) Generates a random output value using `numpy.random.rand`. RateLimiter (fastsim.blocks._shim._ShimBlock) Rate limiter block that limits the rate of change of a signal. Relay (fastsim.blocks._shim._ShimBlock) Relay block with hysteresis (Schmitt trigger). Rescale (fastsim.blocks._shim._ShimBlock) Linear rescaling / mapping block. SampleHold (fastsim.blocks._shim._ShimBlock) Zero-order hold: samples the input periodically and holds it at the output. SemiExplicitDAE (fastsim.blocks._shim._JitShimBlock) Semi-explicit Index-1 DAE block. Sin (fastsim.blocks._shim._ShimBlock) Sine operator block. Sinh (fastsim.blocks._shim._ShimBlock) Hyperbolic sine operator block. SinusoidalPhaseNoiseSource (fastsim.blocks._shim._ShimBlock) Sinusoidal source with cumulative and white phase noise. SinusoidalSource (fastsim.blocks._shim._ShimBlock) Source block that generates a sinusoid wave Source (fastsim.blocks._shim._JitShimBlock) Source that produces an arbitrary time dependent output defined by `func` (callable). Sqrt (fastsim.blocks._shim._ShimBlock) Square root operator block. SquareWaveSource (fastsim.blocks._shim._ShimBlock) Discrete time square wave source. StateSpace (fastsim.blocks._shim._ShimBlock) Linear time invariant (LTI) multi input multi output (MIMO) state space model. Step (fastsim.blocks._shim._ShimBlock) Alias for StepSource. StepSource (fastsim.blocks._shim._ShimBlock) Discrete time unit step (or multi step) source block. Switch (fastsim.blocks._shim._ShimBlock) Switch block that selects between its inputs. Tan (fastsim.blocks._shim._ShimBlock) Tangent operator block. Tanh (fastsim.blocks._shim._ShimBlock) Hyperbolic tangent operator block. TappedDelay (fastsim.blocks._shim._ShimBlock) Tapped delay line. TransferFunction (fastsim.blocks._shim._ShimBlock) Alias for TransferFunctionPRC. TransferFunctionNumDen (fastsim.blocks._shim._ShimBlock) This block defines a LTI (SISO) transfer function. TransferFunctionPRC (fastsim.blocks._shim._ShimBlock) This block defines a LTI (MIMO for pole residue) transfer function. TransferFunctionZPG (fastsim.blocks._shim._ShimBlock) This block defines a LTI (SISO) transfer function. TriangleWaveSource (fastsim.blocks._shim._ShimBlock) Source block that generates an analog triangle wave WhiteNoise (fastsim.blocks._shim._ShimBlock) White noise source with Gaussian distribution. Wrapper (fastsim.blocks._shim._JitShimBlock) Wrapper block for discrete implementation and external code integration. ZeroOrderHold (fastsim.blocks._shim._ShimBlock) Zero-order hold: samples the input periodically and holds it at the output. fastsim.connection Connection (Connection) Class to handle input-output relations of blocks by connecting them (directed graph) fastsim.events ZeroCrossing (ZeroCrossing) Subclass of base 'Event' that triggers if the event function crosses zero. ZeroCrossingUp (ZeroCrossingUp) Modification of standard 'ZeroCrossing' event where events are only triggered ZeroCrossingDown (ZeroCrossingDown) Modification of standard 'ZeroCrossing' event where events are only triggered Schedule (Schedule) Subclass of base 'Event' that triggers dependent on the evaluation time. ScheduleList (ScheduleList) Subclass of base 'Schedule' that triggers dependent on the evaluation time. Condition (Condition) Subclass of base 'Event' that triggers if the event function evaluates to 'True', fastsim.exceptions StopSimulation (StopSimulation) Raised by a block or model to signal that the simulation should stop fastsim.ir Tagged A serde-tagged enum value: a ``kind`` plus its payload fields. Port Ports Param StateVar MemorySlot Region Regions Event Block PortRef Connection Interface DagGroup Scc Schedule Subsystem ExternDecl Module Top-level hierarchical IR of a model. fastsim.jit jit (func, n_x = None) jacobian (func, n_x = None) fastsim.port CaptureShim Stand-in for a pathsim ``Solver`` that captures the RHS, never integrates. port (obj) fastsim.random random_uniform (key) random_normal (key) fastsim.simulation Simulation Transient simulation that accepts fastsim *and* pathsim blocks alike. fastsim.solvers SSPRK22 (SSPRK22) Two-stage, 2nd order Strong Stability Preserving (SSP) Runge-Kutta method. SSPRK33 (SSPRK33) Three-stage, 3rd order optimal SSP Runge-Kutta method. SSPRK34 (SSPRK34) Four-stage, 3rd order SSP Runge-Kutta method with SSP coefficient 2. RK4 (RK4) Classical four-stage, 4th order explicit Runge-Kutta method. EUF (EUF) Explicit forward Euler method. First-order, single-stage. EUB (EUB) Implicit backward Euler method. First-order, A-stable and L-stable. RKF21 (RKF21) Three-stage, 2nd order Runge-Kutta-Fehlberg method with embedded 1st order error estimate. RKBS32 (RKBS32) Bogacki-Shampine 3(2) pair. Four-stage, 3rd order with FSAL property. RKF45 (RKF45) Runge-Kutta-Fehlberg 4(5) pair. Six stages, 4th order propagation with RKCK54 (RKCK54) Cash-Karp 5(4) pair. Six stages, 5th order with embedded 4th order RKDP54 (RKDP54) Dormand-Prince 5(4) pair (DOPRI5). Seven stages, 5th order with RKV65 (RKV65) Verner 6(5) "most robust" pair. Nine stages, 6th order with RKF78 (RKF78) Runge-Kutta-Fehlberg 7(8) pair. Thirteen stages, 7th order propagation RKDP87 (RKDP87) Dormand-Prince 8(7) pair (DOP853). Thirteen stages, 8th order with DIRK2 (DIRK2) Two-stage, 2nd order DIRK method. L-stable, SSP-optimal, symplectic. DIRK3 (DIRK3) Four-stage, 3rd order L-stable DIRK method. Stiffly accurate. ESDIRK4 (ESDIRK4) Six-stage, 4th order ESDIRK method. L-stable and stiffly accurate. ESDIRK32 (ESDIRK32) Four-stage, 3rd order ESDIRK method with embedded 2nd order error ESDIRK43 (ESDIRK43) Six-stage, 4th order ESDIRK method with embedded 3rd order error ESDIRK54 (ESDIRK54) Seven-stage, 5th order ESDIRK method with embedded 4th order error GEAR52A (GEAR52A) Variable-step, variable-order BDF (orders 2--5). Adapts both timestep SteadyState (SteadyState) Pseudo-solver for computing the DC operating point (steady state). fastsim.subsystem Interface (fastsim.blocks._shim._ShimBlock) Bare-bone block that serves as a data interface for the 'Subsystem' class. Subsystem (fastsim.blocks._shim._ShimBlock) Subsystem class that holds its own blocks and connecions and