Finite element collapse analysis based on the von Mises plasticity model for use with FreeCAD
fcVM is a finite element workbench and solver for performing collapse analysis of structures and soil bodies. It is based on the theory of elastoplasticity and gives insight in ductility and reserve strength beyond first yield. The theory underpinning fcVM can be found in the document included in this repository.
- FreeCAD >= v0.19
- Create a fcVM-workbench directory in the FreeCAD Mod directory, the location of which can be found by typing App.getUserAppDataDir() in the FreeCAD python console.
- Copy the entire fcVM-workbench repository into this new fcVM-workbench directory.
- Restart FreeCAD
- If all went well, the fcVM workbench should now be an option in the FreeCAD workbench dropdown menu
App.getUserAppDataDir()
├── Mod
│ ├── fcVM-workbench
│ │ ├── control files
│ │ │ ├── Block_Disp_Control_Example.inp
│ │ │ └── etc.
│ │ ├── documentation
│ │ │ └── Numerical Analysis of Soil Structure Interaction HvL.PDF
│ │ ├── freeCAD files
│ │ │ ├── Block_Disp_Control_Example.FCStd
│ │ │ └── etc.
│ │ ├── icons
│ │ │ └── fcFEM.svg
│ │ ├── output files
│ │ │ ├── Block_Disp_Control_Example.out
│ │ │ └── etc.
│ │ ├── pictures
│ │ │ ├── Embankment_with_Ditch_Example_Failure_Mechanism.png
│ │ │ └── etc.
│ │ ├── source code
│ │ │ ├── .gitignore
│ │ │ ├── fcVM.FCMacro
│ │ │ └── fcVM.py
│ │ ├── user_interface
│ │ │ └── fcVM.ui
│ │ ├── .gitignore
│ │ │
│ │ ├── Init.py
│ │ │
│ │ ├── InitGui.py
│ │ │
│ │ ├── README.md
│ │ │
│ │ └── dummy.py
│ │
fcVM imports (from) the following packages: numpy, scipy (version 1.11.3), numba, matplotlib, scikit-sparse, pyvista and meshio. On Linux and Mac-OS systems these can be installed with the usual package managers (e.g. conda or mamba). On Windows this requires more effort:
- download Miniforge3: Miniforge3
- run the installer: Miniforge3-Windows-x86_64.exe
- find and run Miniforge on your system - this opens a Miniforge Prompt: (base) C:"path">
- create a new virtual environment: (base) C:"path"> mamba create --name fcVM (or any other name of your choice)
- change into the new environment: (base) C:"path"> mamba activate fcVM (or the other name you chose)
- instal freeCAD and dependencies: (fcVM) C:"path"> mamba install freecad scipy=1.11.3 numba matplotlib scikit-sparse pyvista meshio (with spaces and no commas)
- check with python if the dependencies can be imported: (fcVM) C:"path"> python
- >>> import scipy.sparse
- >>> import sksparse.cholmod
- if no problems, quit python and start freecad: (fcVM) C:"path"> freecad
- if you encounter a "black screen" then follow the advice here, i.e. rename all opengl32sw.dll files on your system to opengl32.dll
Please refer to source code for in-line comments and to the FreeCAD forum (TBC)
fcVM only works with 2nd order volumetric meshes generated with GMSH or Netgen (10-noded tetrahedrals).
Copyright (c) 2024 - Harry van Langen [email protected]
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License (LGPL)
as published by the Free Software Foundation; either version 2 of
the License, or (at your option) any later version.
for detail see the LICENCE text file.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA