This MATLAB code implements the Central Difference Method to simulate the dynamic response of a system subjected to a harmonic force. It calculates the displacement at each time step, providing a table of results and a plot for visualization.
This MATLAB code simulates the dynamic response of a system subjected to a harmonic force using the Central Difference Method. It calculates the displacement at each time step, providing a table of results and a plot for visualization.
This repository contains MATLAB code that utilizes the Central Difference Method to simulate the dynamic behavior of a system under the influence of a harmonic force. The simulation focuses on calculating the displacement at various time steps.
- Central Difference Method: Numerical integration technique for dynamic systems.
- Harmonic Force Simulation: Simulate displacement over time in response to a harmonic force.
- Results Visualization: Table summarizing key results and a plot for better insights.
The simulation considers the following system parameters:
- Eigen-frequency (
wn) - Damping ratio (
eta) - Mass (
M) - Stiffness (
K) - Damping (
C) - Time step (
dt) - Harmonic force amplitude (
F0) - Pulsation of the harmonic force (
w)
-
Clone the repository:
git clone https://github.com/sandslamsal/Central-Difference-Method-Dynamics.git