Skip to content
This repository has been archived by the owner on Feb 13, 2024. It is now read-only.

v0.9.3

Compare
Choose a tag to compare
@spacether spacether released this 24 Dec 18:04
· 172 commits to master since this release

pycalculix is a Python 3 library to automate and build finite element analysis (FEA) models in Calculix.
Meshing uses Calculix or GMSH.
Website: http://justinablack.com/pycalculix/
Source Code: https://github.com/spacether/pycalculix
This file includes binaries (programs): Gmsh (meshing), and Calculix (FEA solver).
It works on Linux and Windows.

Windows Installation:
This release is a python installation file.
One must have python 3+ installed, and the pip library.
To install it, in your console, type:
pip install pycalculix
or manually download this file and type:
pip install Drive:/folder/pycalculix-0.9.3.zip [you insert the location that you downloaded the zip file to]

Linux Linux:
Calculix binaries removed from pycalculix.
See installation instructions at: https://github.com/spacether/pycalculix
Calculix must be installed separately.

pycalculix Features:
-Static structural models can be made and analyzed
-Triangular or quadratic first or second order elements
-Plane stress, plane strain, and axisymmetric elements
-Loads: pressure, forces, water pressure, rotational speed, gravity
-Constraints: displacement constraints
-All results can be plotted and queried from python
-CAD import from dxf files
-Single or multiple parts with contact

Single parts can be analyzed or
Multiple parts with contact between them
See example files: pipe-crush-elastic.py, pinned-plate.py

0.9.3
ADDED: Import CAD geometry from dxf file
See pycalculix.CadImporter
ADDED: multiple parts with contacts
See example files: pipe-crush-elastic.py, pinned-plate.py
ADDED: Element results plotting added
Element results plotting: pycalculix.Problem.rfile.eplot()
Nodal results plotting: pycalculix.Problem.rfile.nplot()
Number Formatting:
Strain results now use scientific formatting
Others use nearest 10**3 suffixes
Max and min values now listed above the colorbar
ADDED: method to draw an arc by swept angle in degrees
part.draw_arc_angle(degrees_ccw, center_x, center_y)
ADDED: min_val and max_val can now be passed to eplot and nplot
This lets the user set the results range that they want to see:
min_val <= colored results <= max_val
Values under and over are greyed out, darker under, lighter over
ADDED: internal holes in parts
One can make circular holes, or draw complicated holes.
See example 7
ADDED: Added set_ediv method to FeaModel class.
This method sets the number of elements on a line.
line.set_ediv still works.
ADDED: Robust selection object: feamodel.view
This object is feamodel.view Most important methods are:
view.select_all, view.select, view.allsel_under
All plotting now uses the current selection set
SYNTAX: updated how parts, materials, problems are made
Make part:
pycalculix.FeaModel.make_part or pycalculix.Part
Make material:
pycalculix.FeaModel.make_matl or pycalculix.Material
Make problem (previously called model):
pycalculix.FeaModel.make_problem or pycalculix.Problem
Make Results File:
pycalculix.Problem.rfile or pycalculix.ResultsFile(problem)