A matlab code for 2-dimensional finite elemnt method.
You can run main.m directly
Inp files:
- NLIST.DAT
- ELIST.DAT
- FixNode.dat
- NodeForce.dat
- press.dat
You can generate the inp files by ANSYS or Abaqus.
-------- for inp files------------
If you select Ansys, you can use the *.mac files to generate all the *.dat files automatically.
Provide all ANSYS secondary development files:
- uget.mac
- umesp.mac
- ugetfix.mac
- ugetforce.mac
- uexportPress.mac
- transPress.py (necessary to translate the press.txt)
You need to follow these steps to automatically generate the input file:
- Establish a FEM model in ansys and apply boundary conditions
- Place all *.mac files into the current folder
- Enter: uget,2 in the ANSYS command window
- Run transPress.py (you need to install python3.5+ in advance)