Skip to main content
JSON Manual Created Edited

Define General Spring Type

Input URI

{base url} + db/GSTP



Active Methods

POST, GET, PUT, DELETE



JSON Schema

Details

{
    "GSTP": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "type": "object",
        "properties": {
            "NAME": {
                "description": "NameofSpring",
                "type": "string"
            },
            "SPRING": {
                "description": "Spring(SDz)",
                "type": "array",
                "items": {
                    "type": "number"
                }
            },
            "MASS": {
                "description": "Mass(MDx)",
                "type": "array",
                "items": {
                    "type": "number"
                }
            },
            "DAMPING": {
                "description": "Damping(DDx)",
                "type": "array",
                "items": {
                    "type": "number"
                }
            },
            "OPT_STIFFNESS": {
                "description": "UseStiffnessMatrixOption",
                "type": "boolean"
            },
            "OPT_MASS": {
                "description": "UseMassMatrixOption",
                "type": "boolean"
            },
            "OPT_DAMPING": {
                "description": "UseDampingMatrixOption",
                "type": "boolean"
            }
        }
    }
}


Examples

Define General Spring Type

{
    "Assign": {
        "3": {
            "NAME": "GS_Damping",
            "SPRING": [
                1,
                7,
                12,
                16,
                19,
                21,
                2,
                3,
                4,
                5,
                6,
                8,
                9,
                10,
                11,
                13,
                14,
                15,
                17,
                18,
                20
            ],
            "MASS": [
                1,
                7,
                12,
                16,
                19,
                21,
                2,
                3,
                4,
                5,
                6,
                8,
                9,
                10,
                11,
                13,
                14,
                15,
                17,
                18,
                20
            ],
            "DAMPING": [
                1,
                7,
                12,
                16,
                19,
                21,
                2,
                3,
                4,
                5,
                6,
                8,
                9,
                10,
                11,
                13,
                14,
                15,
                17,
                18,
                20
            ],
            "OPT_STIFFNESS": true,
            "OPT_MASS": true,
            "OPT_DAMPING": true
        }
    }
}


Specifications

No. Description Key Value Type Default Required

1

General Spring Name

"NAME"

String

-

Required

2

Stiffness Matrix Option

 • True

"OPT_STIFFNESS"

Boolean

false

Optional

3

Stiffness Matrix ¹⁾

"SPRING"

Array
[Number, 21]

0

Optional

4

Mass Matrix Option

"OPT_MASS"

Boolean

false

Optional

5

Mass Matrix¹⁾

"MASS"

Array
[Number, 21]

0

Optional

6

Damping Matrix Option

"OPT_DAMPING"

Boolean

false

Optional

7

Damping Matrix¹⁾

"DAMPING"

Array
[Number, 21]

0

Optional



¹⁾ Matching of Matrices and Array Index

 • Index #: (Row, Column)

   ◦ 0: (1, 1)

   ◦ 1: (2, 2)

   ◦ 2: (3, 3)

   ◦ 3: (4, 4)

   ◦ 4: (5, 5)

   ◦ 5: (6, 6)

   ◦ 6: (1, 2)

   ◦ 7: (1, 3)

   ◦ 8: (1, 4)

   ◦ 9: (1, 5)

   ◦ 10: (1, 6)

   ◦ 11: (2, 3)

   ◦ 12: (2, 4)

   ◦ 13: (2, 5)

   ◦ 14: (2, 6)

   ◦ 15: (3, 4)

   ◦ 16: (3, 5)

   ◦ 17: (3, 6)

   ◦ 18: (4, 5)

   ◦ 19: (4, 6)

   ◦ 20: (5, 6)

0
Was this article helpful?