Skip to content

JSON data structure

The model as the engine stores it: the structure.json inside a .x2d file (see File Formats) and a plain .json export are this same object. You can write one by hand, or from any program, and open it in the application; it is also what the engine's save() and load() use (see Scripting with the engine).

save() writes a single JSON object and load() reads it. Absent keys take their defaults, so a file stays readable as the format grows (for example, domain absent means plane).

Top level

The list below is written from the engine (what save() writes), so it has every list the file can hold and every field of its entries. A list is [ {fields} ], one object per entry, and a map is { id: {fields} }. A name followed by ? is written only when it has a value; … is a value that is not a flat record.

{
  "domain": "plane" | "plate",
  "project_info": { … },
  "propagate_edge_supports": …,
  "propagate_edge_springs": …,
  "nodes": [ {"id", "x", "y"} ],
  "materials": [ {"name", "elastic_modulus", "unit_weight", "alpha", "unit_mass", "material_type", "poisson", "design"} ],
  "sections": [ {"name", "material_name", "b", "h", "area_override", "inertia_override", "inertia_minor_override",
                 "torsion_override", "wel_y_override", "wpl_y_override", "wel_z_override", "wpl_z_override",
                 "av_y_override", "av_z_override", "warping_override", "wt_override", "curve_y_override",
                 "curve_z_override", "profile_name", "angle", "shape", "tw", "tf", "rc_cover", "rc_alpha_s",
                 "rc_bar_phi", "rc_shear_min", "rc_torsion_distribution", "is_column", "rc_phi_ef", "rc_n_bars",
                 "rc_n_bars_y", "rc_n_bars_z", "rc_second_order_method", "timber_service_class", "beam_overrides"} ],
  "bar_elements": [ {"id", "node_i", "node_j", "section_name", "hinge_i", "hinge_j", "rc_design", "rc_cover",
                     "rc_cotg_theta", "rc_alpha_s", "sd_ky", "sd_kz", "sd_klt", "sd_ltb", "is_column", "beam", "stage"} ],
  "tri_sections": [ {"name", "material_name", "thickness", "plane_strain", "formulation", "rc_cover", "rc_alpha_s",
                     "rc_bar_phi", "rc_shear_min", "rc_cover_top_x", "rc_cover_top_y", "rc_cover_bot_x",
                     "rc_cover_bot_y"} ],
  "tri_elements": [ {"id", "node_i", "node_j", "node_k", "section_name", "stage"} ],
  "quad_sections": [ {"name", "material_name", "thickness", "plane_strain", "formulation", "rc_cover", "rc_alpha_s",
                      "rc_bar_phi", "rc_shear_min", "rc_cover_top_x", "rc_cover_top_y", "rc_cover_bot_x",
                      "rc_cover_bot_y"} ],
  "quad_elements": [ {"id", "node_i", "node_j", "node_k", "node_l", "section_name", "stage"} ],
  "tri_edge_loads": [ {"id", "tri_id", "node_a", "node_b", "load_case_id", "fx", "fy", "coord_sys", "pn", "pt"} ],
  "quad_edge_loads": [ {"id", "quad_id", "node_a", "node_b", "load_case_id", "fx", "fy", "coord_sys", "pn", "pt"} ],
  "surface_edge_loads": [ {"id", "object_id", "node_a", "node_b", "load_case_id", "fx", "fy", "coord_sys", "pn", "pt"} ],
  "tri_area_loads": [ {"tri_id", "load_case_id", "pz"} ],
  "quad_area_loads": [ {"quad_id", "load_case_id", "pz"} ],
  "surface_area_loads": [ {"object_id", "load_case_id", "pz"} ],
  "tri_area_springs": [ {"tri_id", "kz"} ],
  "quad_area_springs": [ {"quad_id", "kz"} ],
  "surface_area_springs": [ {"object_id", "kz"} ],
  "punch_columns": [ {"id", "node_id", "shape", "bx", "by", "position", "force", "dx", "dy", "beta_min"} ],
  "fields": [ {"name", "expression"} ],
  "geometry_objects": [ {…} ],
  "beams": { id: {"name", "overrides", "timber"?} },
  "beam_detail"?: …,
  "supports": [ {"name", "ux", "uy", "tz"} ],
  "support_assignments": [ {"node_id", "support_name"} ],
  "node_springs": [ {"node_id", "kx", "ky", "kt", "mode_x", "mode_y"} ],
  "element_springs": [ {"element_id", "kx", "ky", "coord_sys", "mode_x", "mode_y"} ],
  "constraints": [ {"id", "kind", "terms", "value", "master", "slaves", "nodes", "components", "enabled"} ],
  "load_cases": [ {"id", "self_weight_factor", "action_type", "load_duration"?, "category"?, "psi0"?, "psi1"?, "psi2"?} ],
  "point_loads": [ {"node_id", "load_case_id", "fx", "fy", "mz"} ],
  "distributed_loads": [ {"element_id", "load_case_id", "fxe", "fxd", "fye", "fyd", "coord_sys"} ],
  "element_point_loads": [ {"element_id", "load_case_id", "a", "fx", "fy", "mz", "coord_sys"} ],
  "load_combinations": [ {"id", "combo_type", "coefficients", "analysis_coefficients"} ],
  "cuts": [ {"id", "name", "x1", "y1", "x2", "y2"} ],
  "support_settlements": [ {"node_id", "load_case_id", "ux", "uy", "tz"} ],
  "temperature_loads": [ {"element_id", "load_case_id", "delta_t_uniform", "delta_t_gradient"} ],
  "tri_temperature_loads": [ {"tri_id", "load_case_id", "dt_i", "dt_j", "dt_k", "dt_gradient"} ],
  "quad_temperature_loads": [ {"quad_id", "load_case_id", "dt_i", "dt_j", "dt_k", "dt_l", "dt_gradient"} ],
  "area_temperature_loads": [ {"object_id", "load_case_id", "dt_uniform", "field_name", "dt_gradient",
                               "grad_field_name"} ],
  "line_temperature_loads": [ {"object_id", "load_case_id", "dt_uniform", "dt_gradient", "field_name",
                               "grad_field_name"} ],
  "line_distributed_loads": [ {"object_id", "load_case_id", "fx", "fy", "fx_field", "fy_field", "coord_sys"} ],
  "line_element_springs": [ {"object_id", "kx", "ky", "kx_field", "ky_field", "coord_sys", "mode_x", "mode_y"} ],
  "spectral_functions": [ {"id", "description", "damping", "points"} ],
  "nodal_masses": [ {"node_id", "mass_case_id", "mx", "my", "mtz"} ],
  "analysis_cases": [ {"id", "analysis_type", "coefficients", "num_modes", "modal_case_id", "spectrum_id",
                       "combination_rule", "direction", "damping", "nl_method", "max_iterations", "tolerance",
                       "beam_stiffness_factor", "column_stiffness_factor", "stored_stiffness_id", "sequence_id",
                       "phase_id", "solved"} ],
  "concrete_materials": [ {"material_name", "concrete_class", "steel_class", "gamma_c", "gamma_s", "alpha_cc"} ],
  "support_sets": [ {"id", "description", "restraints", "assignments", "node_springs", "element_springs",
                     "edge_supports"} ],
  "variants": [ {"id", "description", "active_elements", "base_state"?, "inherit_actions"?, "model"?,
                 "synced_base_sig"?} ],
  "construction_sequences": [ {"id", "displacement_method", "phases"} ],
  "variant_combinations": { id: {"op", "terms"} }
}

Triangles, quads and objects have each their own lists. A load or a spring on an area element is kept in the list of the kind of element it acts on: tri_* for a triangle (keyed by tri_id), quad_* for a quad (keyed by quad_id) and surface_* for a meshed surface object (keyed by object_id). So tri_area_loads, quad_area_loads and surface_area_loads hold the same kind of entry (a pressure pz on a tri_id, a quad_id or an object_id), and likewise the edge loads, the temperature loads and the area springs. Bars and line objects have distributed_loads and line_distributed_loads, and so on.

Entries inside other entries

// one phase of a construction sequence (an entry of `phases`)
{"id", "operations", "active_elements", "applied_cases", "case_factors", "support_set_ids", "inherits_from", "reapply_self_weight", "release_supports", "time", "initial_state"}
// one operation of a phase (an entry of `operations`)
{"id", "action", "target", "group_kind", "ids", "factor", "note"}
// one support set (an entry of `support_sets`)
{"id", "description", "restraints", "assignments", "node_springs", "element_springs", "edge_supports"}

In a .x2d file the list is split. structure.json has everything above except support_sets, variants, variant_combinations and construction_sequences, which are in variants.json and sequences.json, and the decisions of the beam-bars detailing, which are in beam_detail.json (see File Formats). A plain .json export has them all in one object.

Notes on the slots

  • The three per-node components are positional: they are written with the canonical (plane) names ux/uy/tz, fx/fy/mz, kx/ky/kt in both domains. In a plate model read them as w/θx/θy, fz/mx/my, kz/kθx/kθy. Readers also accept the plate aliases on input.
  • geometry_objects[].kind is one of segment, arc, multisegment, rectangle, polygon (the old spellings line, polyline, surface are still read). The objects are node-driven: they carry node_ids and their parameters, and the geometry is in the nodes.
    • A curve (segment, arc, multisegment) has id, section_name, divisions, max_chord, loads, intersect_crossings, is_column, sd_ky, sd_kz, sd_klt, sd_ltb, beam and node_ids. A multisegment also has closed, and span_divisions when it was set.
    • A surface (rectangle, polygon) has id, tri_section_name (a triangle or a quad section), target_size, prefer_quad, edge_support_mode, edge_spring_mode and node_ids, and edge_supports (one support name or "free" per edge, in perimeter order) when it was set.
  • tri_sections[].formulation is CST, Allman or ES-FEM (panel / membrane) in the plane domain, or a plate-bending element in the plate domain: MITC3 (shear-deformable, the default — valid for thin and thick slabs) or DKT (thin-plate / Kirchhoff).