drlukeparry / pyccx Goto Github PK
View Code? Open in Web Editor NEWA library for creating and running 3D FEA simulations using the opensource Calculix FEA Package.
License: BSD 2-Clause "Simplified" License
A library for creating and running 3D FEA simulations using the opensource Calculix FEA Package.
License: BSD 2-Clause "Simplified" License
Hi,
I'm trying to develop CalculiX organization on the GitHub to unite all developers and tools in one place. As I can see, you're a member of the organization. So, please, could you move there your amazing library?
All your permissions will be kept, so do not afraid. Old URL will be kept also, new URL will be github.com/calculix/pyccx.
In your project Settings go to Options -> Danger Zone -> Transfer ownership. Click on ‘Transfer’ button, then type ‘calculix’ as user.
Thank you in advance!
The entire results file from Calculix is loaded entirely into memory and parsed which is an expensive procedure for large analyses. Individual timesteps and loadcases should be able to be loaded on demand to reduce memory consumption and the time taken to load.
Hello there!
When trying to import pyccx, the statement 'import pyccx' causes a crash. This is done similarly as the example python file.
Simply commenting out the WEDGE6 class in mesher.py appears to fix it for now for me, but this class is presumably needed somewhere and should probably be fixed.
Traceback (most recent call last):
File "/mnt/c/Users/CRGam/Documents/tandwielen/calculate.py", line 1, in <module>
import pyccx
File "/mnt/c/Users/CRGam/Documents/tandwielen/pyccx/pyccx/__init__.py", line 2, in <module>
from . import mesh
File "/mnt/c/Users/CRGam/Documents/tandwielen/pyccx/pyccx/mesh/__init__.py", line 1, in <module>
from .mesher import ElementType, Mesher, MeshingAlgorithm
File "/mnt/c/Users/CRGam/Documents/tandwielen/pyccx/pyccx/mesh/mesher.py", line 19, in <module>
class ElementType:
File "/mnt/c/Users/CRGam/Documents/tandwielen/pyccx/pyccx/mesh/mesher.py", line 79, in ElementType
class WEDGE6:
File "/mnt/c/Users/CRGam/Documents/tandwielen/pyccx/pyccx/mesh/mesher.py", line 84, in WEDGE6
faces = np.array([[1,2,3], [4,5,6], [1,2,5,4], [2,3,6,5], [3,1,4,6]])
ValueError: setting an array element with a sequence. The requested array has an inhomogeneous shape after 1 dimensions. The detected shape was (5,) + inhomogeneous part.
It appears that in the Simulation class (pyccx/analysis/analysis.py), the working directory that was set on object creation is not taken into account when trying to retrieve the results using the results() function. This causes a file not found error when trying to retrieve the results of an analysis when the working directory is not the same as the directory the python script was executed from.
Changing line 500 from: return ResultProcessor('input')
To: return ResultProcessor(os.path.join(self._workingDirectory, 'input'))
Appears to resolve this issue.
A paraview .vtk export option to view the results from Calculix would be useful to post-process the results and provide a better presentation of the results.
It is possible to visualise the results using Matplotlib, however, the performance is inadaquate for large mesh sizes
Update: The exported .frd files will be transformed within the ResultsProcessor and a separator exporter translator method will become available for conversion to Paraview .vtu format
Update 2: An additional function has been created to export the .pvd XML file that are used for exporting the complete timestep / increment history generated from Calculix.
Supported keywords and elements in documentation is necessary against unnecessary problems.
Axisymmetric Elements are available but implementation and testing within Calculix.
This will assume elements with a 2D cross-section projected by revolution around an axis.
Currently using GMSH to generate the mesh input file for Calculix, however, there is currently not an option to generate reduced order elements natively.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.