Karamba3D to Alpaca4D β
Turns an assembled Karamba3D 3.1 model into the parts of an Alpaca model: its elements, supports, point masses and one load pattern per load case. Plug them into Assemble with elements, loads or constraints of your own, or with a dynamic excitation in place of Karamba's loads, and analyse the model in OpenSees.
π§ Grasshopper component β
Karamba3DToAlpaca4D β Alpaca4d βΈ 06_Assemble, nickname K3D_A4D

LoadCasesThe load cases to convert, by name.
AllowPartialWhen something cannot be converted, nothing is output, so a model that differs from Karamba's is never analysed by accident.
true outputs the rest anyway.ElementsBeams and shells, for Assemble's Elements, with any of your own.
LoadPatternsOne branch per load case, each holding that case's load pattern, self-weight included.
MassesKaramba's point masses, as Mass Point gives them, for a dynamic analysis: plug them into Assemble's LoadPatterns beside your excitation.
ToleranceA node tolerance that keeps Karamba's nodes apart, in m.
ReportEverything the conversion left out or changed, errors first.
Karamba3D 3.1 must be installed and loaded. Alpaca4d ships none of its files.
π When to use it β
Use it when
- A model built in Karamba3D needs an analysis Karamba does not do: a time history, a pushover, a footfall check, or a material that yields.
- You want to check Karamba's results against a second solver.
Do not use it when
- The model is easier to build again in Alpaca4d than to convert: one with springs, joints or eccentricities, which are not converted yet (see below).
πΊοΈ What becomes what β
The Karamba model must be in metres and kilonewtons, the units Alpaca4d works in. Masses come out in kilograms.
| Karamba3D | Alpaca4d |
|---|---|
| Beam | ForceBeamColumn, local y along the depth of the section as Alpaca has it |
| Truss | A beam with hinges, released in bending at both ends and in torsion at one, so it carries axial force only |
| Rectangle, box, I or circle cross-section | Alpaca's own Rectangular, Rectangular Hollow, I or Circular section, when its area and second moments are within 1% of Karamba's and its torsion constant within 5% |
| Any other cross-section, or one outside those limits | A Generic Section with Karamba's properties |
| Shell | ASD Shell triangles: a quadrilateral face is split into two |
| Shell material | Isotropic, from |
| Support | Support. A support with turned axes is held by a very stiff spring on an extra node. |
| Point load, uniform line load over a whole beam | The same loads, in the load pattern of their load case |
| Mesh load | The point loads on nodes and line loads on beams Karamba spreads it into |
| Gravity | Self-weight as loads of its own: a line load along each beam, and a share of each shell triangle's weight at its corners |
| Point mass | A mass on the node, acting in all three directions |
The load patterns carry their load case's name. Assemble applies every pattern of a branch at once, so flatten the branches that should act together. For load combinations, flatten them all into one model and add a Load Combination, naming the load cases.
β οΈ Not converted yet β
These turn the component red, and nothing is output unless AllowPartial is true:
- springs, membranes, line joints between shells;
- beams with joints (hinges or springs at their ends) or an eccentricity; shells with an eccentricity;
- layered and orthotropic shell cross-sections;
- spring supports and prescribed displacements;
- concentrated forces and moments on beams, distributed moments, temperature and initial strain loads, imperfections and gaps; line loads that vary along a beam or cover part of it.
Karamba's load-case combinations are not converted either: a warning says so, and combining them is up to you. A nonlinear Karamba material keeps its elastic modulus only, and the initial normal force Karamba uses in second-order analysis is not carried over.
Note
The Report gives the total load of each load case, in kN. Compare it with the sum of Karamba's reactions, and with the reactions Alpaca4d finds, to check that nothing went missing.
