Hello,
I’ve been using PrePoMax quite a bit lately for setting up CalculiX simulations - it is great! Since what I am doing involves a lot of parametric/procedural geometry generation, I have been using PrePoMax through its .NET API, which is also pretty straightforward to use and understand
Since I am working with orthotropic materials (wood) and I got tired of injecting material orientations and distributions into the resultant .inp
files, I went ahead an took a crack at adding these to the PrePoMax code as well as a new material property for Engineering Constants. It is pretty basic at the moment, but I have tried to follow the same gist of the code as the rest of the codebase.
The FeMesh
now has a dictionary of MaterialOrientation
objects which hold an element label and define the X- and Y-axes for the orientation. The FeMesh
class now also has a Distributions
property to bundle up material orientations that should be named differently, etc. The SolidSection
class now has an optional FeOrientation
property which defines the orientation (and relevant FeDistribution
) for that section.
I’ve extended the CalculixFileWriter
class to support these and added CalOrientation
, CalDistribution
, and CalEngineeringConstants
to the model definition.
From my recent testing, it seems to work well enough, albeit only programmatically - nothing is exposed in the UI, of course.
I’ve merged the latest changes from Gitlab today and my fork can be found here:
https://github.com/tsvilans/PrePoMax
I have no idea how to do pull requests between Github/Gitlab.
I hope it is interesting and useful for someone else too! If it looks OK, I’m happy to tweak it and improve it so that it maybe could eventually add orientation support to PrePoMax for real