Skip to content

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

K3D_A4D component
Inputs
KarambaModelKaramba modelA model from Karamba3D's Assemble component, or an analysed one.
LoadCasesTextlist(empty)The load cases to convert, by name.
Left empty, every load case is converted.
AllowPartialBooleanfalseWhen 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.
Outputs
ElementsElementlistBeams and shells, for Assemble's Elements, with any of your own.
Each keeps its Karamba id as its ElementId.
SupportsSupportlistFor Assemble's Supports.
LoadPatternsLoadPatterntreeOne branch per load case, each holding that case's load pattern, self-weight included.
Plugged into Assemble as it is, it gives one model per load case.
LoadCaseTexttreeThe load case of each branch of LoadPatterns, in a tree of the same shape.
MassesLoadlistKaramba's point masses, as Mass Point gives them, for a dynamic analysis: plug them into Assemble's LoadPatterns beside your excitation.
A static analysis does not need them.
ToleranceNumberA node tolerance that keeps Karamba's nodes apart, in m.
Plug it into Assemble's Tolerance: its default can merge Karamba nodes that lie closer.
ReportTextlistEverything the conversion left out or changed, errors first.
The same messages show on the component.

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.

Karamba3DAlpaca4d
BeamForceBeamColumn, local y along the depth of the section as Alpaca has it
TrussA 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-sectionAlpaca'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 limitsA Generic Section with Karamba's properties
ShellASD Shell triangles: a quadrilateral face is split into two
Shell materialIsotropic, from E and Poisson's ratio: its G is E/2(1+Ξ½), not Karamba's
SupportSupport. A support with turned axes is held by a very stiff spring on an extra node.
Point load, uniform line load over a whole beamThe same loads, in the load pattern of their load case
Mesh loadThe point loads on nodes and line loads on beams Karamba spreads it into
GravitySelf-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 massA 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.