Skip to main content
JSON Manual Created Edited

Linear Constraints

Input URI

{base url} + db/MCON



Active Methods

POST, GET, PUT, DELETE



JSON Schema

Details

{
    "MCON": {
        "$schema": "http://json-schema.org/draft-07/schema#",
        "type": "object",
        "properties": {
            "ITEMS": {
                "description": "Items",
                "type": "array",
                "items": {
                    "type": "object",
                    "properties": {
                        "ID": {
                            "description": "ID",
                            "type": "integer"
                        },
                        "GROUP_NAME": {
                            "description": "BoundaryGroupName",
                            "type": "string"
                        },
                        "SLAVE_TYPE": {
                            "description": "SlaveType",
                            "type": "string"
                        },
                        "TYPE": {
                            "description": "ConstraintType",
                            "type": "string"
                        },
                        "SLAVES": {
                            "description": "Slave",
                            "type": "array",
                            "items": {
                                "type": "object",
                                "properties": {
                                    "NODE_KEY": {
                                        "description": "NodeKey",
                                        "type": "integer"
                                    },
                                    "COEFF": {
                                        "description": "Coeff.",
                                        "type": "number"
                                    },
                                    "WEIGHT": {
                                        "description": "Weight",
                                        "type": "number"
                                    },
                                    "DOF": {
                                        "description": "Node",
                                        "type": "integer"
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}


Examples

Explicit

{
    "Assign": {
        "21": {
            "ITEMS": [
                {
                    "ID": 1,
                    "GROUP_NAME": "Service",
                    "SLAVE_TYPE": "100000",
                    "TYPE": "EX",
                    "SLAVES": [
                        {
                            "NODE_KEY": 22,
                            "COEFF": 0.5,
                            "DOF": 0
                        },
                        {
                            "NODE_KEY": 23,
                            "COEFF": 0.5,
                            "DOF": 1
                        },
                        {
                            "NODE_KEY": 32,
                            "COEFF": 0.5,
                            "DOF": 2
                        },
                        {
                            "NODE_KEY": 33,
                            "COEFF": 0.5,
                            "DOF": 3
                        },
                        {
                            "NODE_KEY": 34,
                            "COEFF": 0.5,
                            "DOF": 4
                        },
                        {
                            "NODE_KEY": 35,
                            "COEFF": 0.5,
                            "DOF": 5
                        }
                    ]
                }
            ]
        }
    }
}

Weighted Displacement

{
    "Assign": {
        "24": {
            "ITEMS": [
                {
                    "ID": 1,
                    "GROUP_NAME": "Service",
                    "SLAVE_TYPE": "110001",
                    "TYPE": "WD",
                    "SLAVES": [
                        {
                            "NODE_KEY": 25,
                            "WEIGHT": 10
                        },
                        {
                            "NODE_KEY": 26,
                            "WEIGHT": 10
                        },
                        {
                            "NODE_KEY": 36,
                            "WEIGHT": 10
                        },
                        {
                            "NODE_KEY": 37,
                            "WEIGHT": 10
                        }
                    ]
                }
            ]
        }
    }
}


Specifications

No. Description Key Value Type Default Required

1

Linear Constraints

 • Insert the data as an object

"ITEMS"

Array
[Object]

-

Required

(1)

Serial Number

"ID"

Integer

0

Optional

(2)

Load Group Name

"GROUP_NAME"

String

Blank

Optional

(3)

DOF of Constraint Node

 • 6th decimal place: DX

 • 5th decimal place: DY

 • 4th decimal place: DZ

 • 3rd decimal place: RX

 • 2nd decimal place: RY

 • 1st decimal place: RZ

"SLAVE_TYPE"

String

-

Required

(4)

Constraint Type

 • Explicit: "EX"

 • Weighted Displacement: "WD"

"TYPE"

String

-

Required

Explicit

(5)

Independent Nodes

 • Insert the data as an object

"SLAVES"

Array
[Object]

-

Required

i. Node ID Number

"NODE_KEY"

Integer

-

Required

ii. Coefficient

"COEFF"

Number

-

Required

iii. Degree of Freedom

 • DX: 0

 • DY: 1

 • DZ: 2

 • RX: 3

 • RY: 4

 • RZ: 5

"DOF"

Integer

-

Required

Weighted Displacement

(5)

Independent Nodes

 • Insert the data as an object

"SLAVES"

Array
[Object]

-

Required

i. Node ID Number

"NODE_KEY"

Integer

-

Required

ii. Weight

"WEIGHT"

Number

-

Required



0
Was this article helpful?