A toolset for orphan mesh creation and manipulation in FreeCAD, with the secondary goal of creating include file generation procedures for mystran/nastran.
Assistance in making gui elements would be very greatly appreciated.
Macros should be listed in order of descending usefulness in this authors opinion.
- Exports selcted FemMeshObject(s) and/or FemMeshObjectPython(s) to a nastran bulk data file. The only way to actually export multiple parts in a single analysis, to this authors knowledge.
- Exports selected nodesets and uses the nodeset labels to create appropriate include files for single point constraints and forces.
- The two formats for labels current supported are
- SPC: "NAME: SPC1_SID_C"
- Force: "NAME: FORCE_SID_Scale_Vx_Vy_Vz"
- flips the normals of a shell mesh entity by reversing the node order
- Collapses two FemMeshObjects together into a single one by replacing nodes within a small tolerance with the nearest one in the other body, and globally renumbering the nodes and elements.
- Goal is to replace this with something that can maintain the original meshes and only renumber the nodes to be common, such that a secondary pass of removing duplicate GRID lines in the bdf will be able to effectively crush the two together. Work on that is stalled until I can figure out who in their right mind would EVER think that wanton disregard for IDs, and arbitrary renumbering of nodes and elements was a good idea; and then how I can stop their terrible ideas from destroying my meshes.
- makes a ruled shell mesh as a ruled mesh between two curves
- thickens a shell mesh along element normal vectors
Element | Element Type ID |
---|---|
CBAR | 1 |
CBUSH | 2 |
CELAS1 | 3 |
CELAS2 | 4 |
CELAS3 | 5 |
CELAS4 | 6 |
CHEXA | 7 |
CMASS1 | 8 |
CMASS2 | 9 |
CMASS3 | 10 |
CMASS4 | 11 |
CONM2 | 12 |
CONROD | 13 |
CPENTA | 14 |
CQUAD4 | 15 |
CQUAD4K | 16 |
CROD | 17 |
CSHEAR | 18 |
CTETRA | 19 |
CTRIA3 | 20 |
CTRIA3K | 21 |
Property | Property Type ID |
---|---|
[default] | 0 |
PELAS | 1 |
PBUSH | 2 |
PBAR | 3 |
PBARL | 4 |
PROD | 5 |
PSHEAR | 6 |
PCOMP | 7 |
PCOMP1 | 8 |
PSOLID | 9 |
* By default:
- 1D elements will have a PBUSH property
- 2D elements will have a PSHELL property
- 3D elements will have a PSOLID property
* By default:
- 1D elements will have no material property
- 2D elements will have a MAT1 property
- 3D elements will have a MAT1 property
Material | Material Type ID |
---|---|
[default] | 0 |
MAT1 | 1 |
MAT2 | 2 |
MAT8 | 3 |
MAT9 | 4 |
PMASS | 5 |