Load Sets and Load Cases as a JSON File

The Load Case Manager allows you to export your load sets and load cases to a plain-text JavaScript object notation (JSON) file. This file describes the objects to be created in the current analysis case and step.

This page discusses:

See Also
About Load Sets and Load Cases

General Rules

Rule Description
Encoding UTF-8 or ASCII
Error handling The app aborts on the first error detected and returns a specific error code. When applicable, the error message contains the offending key.

The top-level keys organize the data into five categories.

Top-Level Key What it holds...
supports Support references (groups or publications).
prototypes Load and boundary condition prototypes.
features Feature specifications using a prototype and one or more supports.
loadsets Load set specifications of pairs of feature or nested load set and scale factors.
loadcases Load case specification of pairs of feature or load set and scale factors.

Supports

A key object pair references a CAD model support. The CAD model support can be one or more publications or groups.

Table 1. Publication
Field Type Required Description
Type String Must be a publication.
Name String 3DEXPERIENCE name of the publication.
Path Array of strings Sequence of product instance names, providing the path relative to the model root for the publication.

In the CAD model root, publications must omit the path.

The example below demonstrates the JSON format for Publication.

"supports": {
     "Wing Tip Fore": {
          "type": "Publication",
          "name": "Fore Vertex",
          "path": ["Wing Assembly", "Winglet", "Fore Surface"]
     }
}

Table 2. Group
Field Type Required Description
Type String Must be a group.
Name String 3DEXPERIENCE name of the group.
Path Array of strings Sequence of product instance names, providing the path relative to the model root for the group.

In the finite element model (FEM) root, groups must omit the path. A group must be in a contributing FEM at path.

The example below demonstrates the JSON format for Group.

"supports": {
     "Aux Nodes": {
          "type": "Group",
          "name": "Geometric Group.1",
          "path": ["Wing Assembly", "Winglet", "Frame"]
     }
}

Features

Field Type Required Description
proto String Name of a prototype.
key Array of strings List of support references.

The example below demonstrates the JSON format for features.

"features": {
     "Tip X Force": {
          "proto": "xforce",
          "support": ["Wing Tip Fore", "Wing Tip Aft"]
     }
}

Load Sets and Load Cases

Both load sets and load cases share the exact same shape, and they have no keys.

The example below demonstrates the JSON format for loadsets and loadcase.

{
     "loadsets": {
          "Load Set.1": {
               "Tip X Force": 1.0,
               "Tip Y Force": 2.0
          }
     },
     "loadcases": {
          "Linear Load Case.1": {
               "Load Set.1": 1.0,
               "Load Set.2": 2.0
          }
     }
}

The inner object is simply a map of the feature or load set, and its scale factor.

Prototypes

Every prototype must contain a type field. Depending on that type, additional fields are required.

Type Required Extra Fields Description
SimBodyForce mag (array 3 double) Body force vector
SimGravity mag (array 3 double) Gravity vector
SimPressure mag (double) Uniform pressure
SimConcentratedLoad
  • dofs (array N int)
  • mag (array N double)
  • follower (bool)
Point load with optional follower flag
SimDistributedLoad
  • dofs (array N int)
  • mag (array N double)
  • follower (bool)
Distributed load on given degrees of freedom
SimRemoteLoad
  • dofs (array N int)
  • mag (array N double)
  • follower (bool)
  • refpoint (object)
Remote load with a reference point
SimClamp None Simple clamp
SimDisplacementRestraint dofs (array N int) Restraint on specific degrees of freedom
SimAppliedDisplacement
  • dofs (array N int)
  • mag (array N double)
Prescribed displacement

Only a SimRemoteLoad can reference a refpointobject, which is described in the table below.

Table 3. refpoint object
Field Type Required
definition integer: 0 (automatic) or 1 (cooridnates)
coord Array 3 double (if coordinates)

The example below demonstrates the JSON format for a SimRemoteLoad.

{
     "prototypes": {
          "Proto6": {
               "type": "SimRemoteLoad",
               "dof": [1, 2, 3],
               "mag": [0.0, 1.0, 2.0],
               "follower": true,
               "refpoint": {
                    "definition": 1,
                    "coord": [10.0, 11.0, 12.0]
               }
          }
     }
}

Example File

The small, self-contained example below demonstrates the JSON format.

{
     "supports": {
          "Wing Tip Fore": { "type": "Publication", "name": "Fore Vertex", "path": ["Wing Assembly", "Winglet", "Fore Surface"] },
          "Wing Tip Aft": { "type": "Publication", "name": "Aft Vertex", "path": ["Wing Assembly", "Winglet", "Aft Surface"] },
          "Aux Nodes": { "type": "Group", "name": "Geometric Group.1", "path": ["Wing Assembly", "Winglet", "Frame"] },
          "Primary Nodes": { "type": "Group", "name": "Geometric Group.2", "path": ["Wing Assembly", "Winglet", "Frame"] }
     },
     "prototypes": {
          "xforce": {"type": "SimConcentratedLoad", "dofs": [1], "mag": [1,0], "follower": false },
          "yforce": {"type": "SimConcentratedLoad", "dofs": [2], "mag": [1,0], "follower": false },
          "zforce": {"type": "SimConcentratedLoad", "dofs": [3], "mag": [1,0], "follower": false },
     },
     "features": {
          "Tip X Force": { "proto": "xforce", "support": ["Wing Tip Fore", "Wing Tip Aft"] },
          "Tip Y Force": { "proto": "yforce", "support": ["Wing Tip Fore", "Wing Tip Aft"] },
          "Tip Z Force": { "proto": "zforce", "support": ["Wing Tip Fore", "Wing Tip Aft"] },
          "Frame X Force": { "proto": "xforce", "support": ["Aux Nodes", "Primary Nodes"] },
          "Frame Y Force": { "proto": "yforce", "support": ["Aux Nodes", "Primary Nodes"] },
          "Frame Z Force": { "proto": "zforce", "support": ["Aux Nodes", "Primary Nodes"] },
     },
     "loadsets": {
          "Tip set": { "Tip X Force": 50.0, "Tip Y Force": 10.0, "Tip Z Force": 150.0 },
          "Frame set": { "Frame X Force": 10.0, "Frame Y Force": 10.0, "Frame Z Force": 200.0 }
     },
     "loadcases": {
          "Tip Loading": { "Tip set": 1.0, "Frame set": 1.75 }
     }
}