Project 1
1. Developing a Double-acting actuator model using simscape Multibody and simscape
Cylinder Model

Designing the Mechanical system of the cylinder using simscape multibody library blocks

Cylinder assembly

Piston rod assembly

Designing the Hydraulic system by using the Simscape library physical components

Now adding the two systems with a Translational multibody Interface

NOTE:
Since i am using the Online MATLAB so i can't able to assign/edit the values for the blocks, Please consider my problem
Assumed values that need to change/edit/assign
Cylinder assembly:
Bottom cap (solid) :
Geometry - Radius -0.1m
Length - 0.05m
Inertia - Density - 8050 kg/m^3
Graphic - Visual properties - color - [0.6 0.6 0.6]
Frames - Frame1 - right
Barrel (Solid) :
Geometry- Cross section - [0.08, 0.5/2; 0.08,-0.5/2; 0.1, -0.5/2; 0.1, 0.5/2] m
Inertia - Density - 8050 kg/m^3
Graphic - Visual properties - color - [0.6 0.6 0.6]
Opacity - 0.3
Head cap(Solid):
Geometry- Cross section - [0.04, 0.05/2; 0.04, -0.05/2; 0.1, -0.05/2; 0.1, 0.05/2] m
Inertia - Density - 8050 kg/m^3
Graphic - Visual properties - color - [0.6 0.6 0.6]
Prismatic joint :
State target - Specify position target - Priority - low
Value - 0
Internal mechanics - Equilibrium position - 0 m
Spring stiffness - 10 N/m
Damping coefficient - 1e6 N/(m/s)
Limit - Specify lower limit - Spring stiffness - 1e9 N/m
Damping coefficient - 1500 N/(m/s)
Specify upper limit - Spring stiffness - 1e9 N/m
Damping coefficient - 1500 N/(m/s)
Piston assembly :
Piston (Solid):
Geometry - Radius -0.08m
Length - 0.05m
Inertia - Density - 8050 kg/m^3
Graphic - Visual properties - color - [0.8 0.0 1.0]
Rod(Solid):
Geometry - Radius -0.04m
Length - 0.5m
Inertia - Density - 8050 kg/m^3
Graphic - Visual properties - Diffuse color - [0.9 0.9 0.9]
Frames - Frame1 - left
Hydraulic System:
Bottom chamber- Interface cross sectional area- pi*0.08^2 m^2
Dead volume- 1e-4 m^3
Fluid dynamic compressibility- Off
Head chamber- Interface cross sectional area- pi*(0.08^2-0.04^2) m^2
Dead volume- 1e-4 m^3
Fluid dynamic compressibility- On
Initial liquid pressure- 4e6 Pa