Skip to content

Engineering Scenario Cases ​

The four cases cover multidisciplinary modeling, closed-loop control validation, simulation repair, and legacy-model migration. Model structures, settings, and results match the accompanying images.

Four engineering scenarios on the Mogick home screen

Scenario overview ​

ScenarioCaseExpected resultModel status
Requirements to multidisciplinary modelSingle-cylinder piston engineGeometry and Modelica dynamics are generated, with continuous reciprocating motionCompleted
Control algorithm to closed-loop validationSingle-tank PID level controlA closed-loop tank model completes level-tracking simulationCompleted
Automatic simulation-error diagnosisCrank-slider equation-redundancy repairThe planar cut joint removes redundancy and restores correct simulation and animationCompleted
Smart legacy-model migrationSimulink DC motor migrated to SysblockSysblock contains a structurally complete DC motor modelCompleted

Single-cylinder piston engine ​

Objective ​

Build the geometry and dynamics of a single-cylinder piston engine so the crankshaft, connecting rod, and piston form a continuous crank-slider motion that can be viewed in a 3D animation.

Input (full prompt) ​

Build realistic single-cylinder piston-engine geometry in SysCAD, including the crankshaft, connecting rod, piston, and cylinder. In Sysplorer, use the Tongyuan TYMultibody library to build a crank-slider dynamic model with inner World, Revolute, Prismatic, a RevolutePlanarCut joint for the closed loop, and a constant-speed drive. Use the mass and inertia values from SysCAD, and disable animation for the revolute and prismatic joints. The model must pass check, translate, and simulate, and crank revolutions must match piston stroke exactly.

Expected result ​

SysCAD generates the crankshaft, connecting rod, piston, and cylinder geometry, while Sysplorer generates the corresponding Modelica crank-slider dynamic model. The model passes checking, translation, and simulation, and continuously converts crank rotation into reciprocating piston motion.

Model composition ​

  • Constant angular-speed command and rotational drive;
  • crank bearing, crank, and crank pin;
  • connecting rod, piston pin, and piston;
  • piston guide, world frame, and fixed constraints;
  • planar cut joint for the closed kinematic loop.

Key settings ​

  • The dynamic mechanism uses TYMultibody components.
  • A constant angular-speed signal drives the crank; the displayed drive value is 62.831853….
  • Joint animations are disabled so the 3D view shows only the engine geometry.
  • The piston guide constrains axial motion, while the planar cut joint closes the crank-rod-piston loop without redundant constraints.

Model status ​

Completed. The crank-slider components, drive, and constraints are connected as a runnable dynamic model.

Single-cylinder piston-engine model layout

Actual output ​

  • Primary output: reciprocating piston motion along the guide axis.
  • The 3D view shows continuous crank rotation, connecting-rod oscillation, and linear piston motion.
  • This case presents mechanism motion in the 3D view; no separate displacement or velocity plot is configured.

Result ​

Crank rotation is converted by the connecting rod into linear piston motion. The 3D animation shows the crank, rod, piston, and cylinder in their working positions, with the piston remaining on its guide axis.

Single-cylinder piston-engine 3D motion


Single-tank PID level control ​

Objective ​

Build a closed-loop tank-level system in which a PID controller adjusts the inlet valve to track a step setpoint, while tank mass, pressure, and volume are monitored.

Input (full prompt) ​

Build a single-tank PID level-control model in Sysplorer using the basic thermal-fluid model library. Include a tank, inlet valve, outlet, and level sensor. Run a level-tracking simulation and analyze settling time, overshoot, and steady-state error.

Expected result ​

Sysplorer generates a closed-loop model containing the tank, inlet valve, outlet, level sensor, and PID controller. The model runs normally and produces a level-response curve suitable for evaluating settling time, overshoot, and steady-state error.

Model composition ​

  • Level setpoint and PID controller;
  • supply-pressure boundary and inlet control valve;
  • tank and level sensor;
  • outlet valve, outlet-opening command, and drain-pressure boundary.

Key settings ​

  • The level-sensor feedback enters the PID controller, whose output drives the inlet valve.
  • The outlet-opening command is set to 0.3.
  • The level setpoint steps from 0.5 m to 0.7 m.
  • The result view includes level, fluid mass, tank pressure, and volume.

Model status ​

Completed. The tank, valves, pressure boundaries, sensor, and PID loop are fully connected, and the level-tracking simulation has run.

Single-tank PID model layout

Actual output ​

  • Control output: inlet-valve opening command from the PID controller.
  • Result output: tank level tank.level, used to evaluate setpoint tracking.
  • The result view also outputs fluid mass tank.m, pressure tank.p, and volume tank.summary.V.

Result ​

The measured level rises from 0.5 m to 0.7 m and overlaps the setpoint after a short transition, with no visible steady-state offset. During the level change, fluid mass increases from approximately 100 kg to 140 kg, volume from about 0.10 m³ to 0.14 m³, and tank pressure rises to a stable value.

Tank level, mass, pressure, and volume curves


Crank-slider equation-redundancy repair ​

Objective ​

Remove redundant equations from the planar crank-slider loop so the mechanism can be checked, simulated, and animated again.

Input (full prompt) ​

Use the mechanical-modeling skills to repair the crank-slider mechanism. Replace the redundant closed-loop constraint with a planar cut joint and remove the redundant equations from the model.

Expected result ​

The standard rotational constraint in the closed loop is replaced with a planar cut joint, eliminating the redundant equations. The repaired crank-slider model passes checking and simulation, and its 3D animation shows correct crank, connecting-rod, and slider motion.

Model composition ​

  • Speed command, crank-speed drive, and rotational ground;
  • crank bearing, crank, and crank pin;
  • connecting rod, slider pin, and slider;
  • guide origin, linear guide, and world frame.

Key settings ​

  • A standard rotational constraint in the loop is replaced with a planar cut joint to remove redundant constraints.
  • Crank radius is 0.12 m.
  • Drive speed is 6.28319 rad/s, equivalent to one revolution per second.
  • The linear guide constrains the slider to horizontal motion.

Model status ​

Completed. The closed-loop constraint has been corrected, and the crank, rod, slider, and guide form a runnable model.

Repaired crank-slider model layout

Actual output ​

  • Primary outputs: slider displacement and velocity along the guide.
  • Observable variables include crank angle crankAngle, guide displacement sliderGuideDisplacement, guide velocity sliderGuideVelocity, and horizontal position sliderHorizontalPosition.
  • The 3D view outputs a continuous animation of the crank, connecting rod, and slider.

Result ​

The crank rotates at constant speed and the connecting rod drives the slider back and forth along the guide. The 3D animation runs continuously while the crank, rod, and slider remain correctly connected.

Crank-slider 3D animation


Objective ​

Migrate a DC motor block diagram from Simulink to Sysblock while preserving the armature circuit, electromechanical conversion, mechanical dynamics, and back-EMF feedback.

Input (full prompt) ​

Build a DC motor speed-control model in Sysplorer with Sysblock. Use Voltage as the input. Subtract the Ke back-EMF feedback and the R armature-resistance drop, then pass the result through the 1/L inductance stage and integrate it to obtain current i. Convert current to torque through Kt, subtract the b damping feedback, and pass the result through the 1/J inertia stage and an integrator to obtain the Speed output. Retain the parameter names Ke, Kt, R, L, J, and b without assigning values. Complete the connections, layout, and model check.

Expected result ​

Sysblock generates a complete DC motor model from Voltage to Speed, including Ke, R, 1/L, current integration, Kt, b, 1/J, and speed integration. Parameter names remain unchanged, connections and feedback directions are complete, and the model passes checking.

Model composition ​

  • Voltage input and electrical summing block;
  • resistance feedback R, inductance block 1/L, and current integrator;
  • torque constant Kt and mechanical summing block;
  • damping feedback b, inertia block 1/J, and speed integrator;
  • back-EMF feedback Ke and Speed output.

Key settings ​

  • Parameter names Ke, Kt, R, L, J, and b are retained for reuse with the original model data.
  • Armature current follows di/dt = (Voltage − Ke·Speed − R·i) / L, including both back EMF and resistive voltage drop.
  • Electromagnetic torque is calculated by Kt; after damping torque is subtracted, 1/J integration produces speed.
  • Signal directions, summing signs, and both feedback paths match the original Simulink diagram.

Model status ​

Completed. The DC motor diagram has been migrated to Sysblock with all components, connections, and feedback paths in place.

Migrated Sysblock DC motor model

Actual output ​

  • Output port: Speed, representing motor-shaft angular speed.
  • Current integrator int_i outputs armature current i, which is converted by Kt into electromagnetic torque.
  • Speed also enters the Ke and b feedback paths to produce back EMF and damping torque.

Result ​

The migrated model preserves the original electrical and mechanical equations: current produces electromagnetic torque, resistive voltage drop and back EMF enter the electrical feedback path, and damping torque enters the mechanical feedback path.

Original Simulink DC motor diagram