#
**1D Spring elements** finite element MATLAB code

This MATLAB code is for one-dimensional spring elements with one degree of freedom per node parallel to spring axis. This code plots the initial configuration and deformed configuration as well as the relative displacement of each element on them. Results are verified with examples of textbook; arbitrary input geometry, nodal loads, and material properties for each element can be defined by user.

Code gives you the reaction forces, internal forces of each element and nodal displacements.

## How can I get this code (matlab files or functions)?

You may have these codes for your research purposes. Email me at hosseinali.sut@gmail.com using your official/academic email address.## What other codes are available at matlab-fem.com?

1D Spring elements finite element MATLAB code1D Beam elements finite element MATLAB code

2D Truss elements finite element MATLAB code

2D Beam elements finite element MATLAB code

2D Solid elements finite element MATLAB code

2D Penalty and Lagrange Multiplier Contact finite element MATLAB code

2D Large deformations finite element MATLAB code

2D XFEM for Crack eXtended finite element MATLAB code

3D Truss elements finite element MATLAB code

3D Solid elements finite element MATLAB code

3D Large deformations finite element MATLAB code

## What is Finite Element Method?

The finite element method (FEM) is a numerical method for solving problems of engineering and mathematical physics. It is also referred to as finite element analysis (FEA). Typical problem areas of interest include structural analysis, heat transfer, fluid flow, mass transport, and electromagnetic potential. The analytical solution of these problems generally require the solution to boundary value problems for partial differential equations. Read more about Finite Element Methods## What is MATLAB?

MATLAB (matrix laboratory) is a multi-paradigm numerical computing environment. A proprietary programming language developed by MathWorks, MATLAB allows matrix manipulations, plotting of functions and data, implementation of algorithms, creation of user interfaces, and interfacing with programs written in other languages, including C, C++, C#, Java, Fortran and Python.## What reference books did I use for my codes?

Some of the main textbooks I used for codes are:General concepts and basic codes:

- Finite Element Procedures by K.J. Bathe
- The Finite Element Method (v.1 & v.2 & v.3) by Zienkiewicz & Taylor
- Fundamental finite element analysis and applications by M. Asghar Bhatti

- Computational Contact Mechanics by Peter Wriggers

- Finite Elements in Plasticity by D. R. J. Owen, E. Hinton
- Non-Linear Finite Element Analysis of Solids and Structures (vol. 1 & 2) by M. A. Crisfield