standalone.foundation


The standalone.foundation namespace provides functions to manage sessions for foundation design.


standalone.foundation.start#

At the beginning of every API session, the session must be started. This function must be the first function in the array. This initiates a session and will return a session_id which can be used in subsequent calls made in the following 30 minutes to skip the verification process, thereby dramatically reducing the time to response.

important

The start function must always be the first function even if session_id is provided.

KeyTypeAcceptsDescriptionDefault
keep_openbooleantrue, falseIf the session should be kept on standby. If true, subsequent calls to the API using the session_id provided from the first call in lieu of key, will be 4-8x faster.false
Sample input for standalone.foundation.start
{
"function": "standalone.foundation.start",
"arguments": { "keep_open": true }
}

After authenticating using the API key, the response object will contain some useful information. The session_id key can be used to make further calls to the same session, skipping authentication. The session_expiry_time provides an approximate Unix time until the session expires. After this, the user must re-authenticate using their API key.

tip

The returned session_id can be provided in the auth object of subsequent calls to make the request faster.


standalone.foundation.check#

Simplified design checks can be performed without the need to run an analysis first. Note that standalone.foundation.start should be called prior to this function.

The below samples demonstrate design models for various design standards and footing types. Whilst the documentation is being built for this module, a JSON template can be created by building the model in SkyCiv's Foundation Designer and then Exporting the model as a JSON file.



Sample input for standalone.foundation.check
{
"functions": [
{
"function": "standalone.foundation.start",
"arguments": { "keep_open": true }
},
{
"function": "standalone.foundation.check",
"arguments": {
"1": {
"settings": {
"type": "isolated_foundation",
"code": "ACI_318_2014",
"units": "imperial",
"type_loads": "NA"
},
"loads": {
"1": {
"DL": {
"axial": 0,
"shear_x": 0,
"shear_z": 0,
"moment_x": 0,
"moment_z": 0
},
"LL": {
"axial": 0,
"shear_x": 0,
"shear_z": 0,
"moment_x": 0,
"moment_z": 0
},
"W": {
"axial": 0,
"shear_x": 0,
"shear_z": 0,
"moment_x": 0,
"moment_z": 0
},
"E": {
"axial": 0,
"shear_x": 0,
"shear_z": 0,
"moment_x": 0,
"moment_z": 0
},
"LR": {
"axial": 0,
"shear_x": 0,
"shear_z": 0,
"moment_x": 0,
"moment_z": 0
},
"RL": {
"axial": 0,
"shear_x": 0,
"shear_z": 0,
"moment_x": 0,
"moment_z": 0
},
"SL": {
"axial": 0,
"shear_x": 0,
"shear_z": 0,
"moment_x": 0,
"moment_z": 0
}
}
},
"corner_pressure": {
"service": {
"P1": 0,
"P2": 0,
"P3": 0,
"P4": 0
},
"factored": {
"P1": 0,
"P2": 0,
"P3": 0,
"P4": 0
}
},
"eccentricity": {
"service": {
"e": 0,
"ex": 0,
"ez": 0,
"type": "none"
},
"factored": {
"e": 0,
"ex": 0,
"ez": 0,
"type": "none"
}
},
"geometry": {
"foundation": {
"isolated_depth": 108,
"isolated_width": 108,
"isolated_thickness": 30
}
},
"column": {
"1": {
"column_width": 16,
"column_depth": 16,
"column_height": 16,
"column_type": "rectangular",
"column_diameter": 16,
"column_x_offset": 0,
"column_z_offset": 0
}
},
"material": {
"concrete": {
"concrete_strength": 4000,
"unit_weight": 150,
"concrete_weight_type": "normal_weight"
},
"steel": {
"steel_strength": 60000,
"unit_weight": 490
}
},
"soil": {
"soil_surcharge_load_value": 0,
"soil_thickness": 16,
"ground_water_height": 0,
"coefficient_of_friction_value": 0.45,
"soil_bearing_capacity_value": 5000,
"angle_of_friction_value": 16,
"unit_weight": 100,
"unit_soil_shear_modulus_valueweight": 0
},
"reinforcement": {
"top": {
"x": {
"rebar_size": "#5 (0.625in)",
"rebar_spacing": 4
},
"z": {
"rebar_size": "#5 (0.625in)",
"rebar_spacing": 4
}
},
"bottom": {
"x": {
"rebar_size": "#5 (0.625in)",
"rebar_spacing": 4
},
"z": {
"rebar_size": "#5 (0.625in)",
"rebar_spacing": 4
}
},
"column": {
"rebar_size": "#5 (0.625in)",
"secondary_size": "#5 (0.625in)",
"n_col": 4,
"fs_spacing": 4
}
},
"parameters": {
"tension_factor_value": 0.9,
"bearing_factor_value": 0.65,
"shear_factor_value": 0.75,
"ld_casting_position": 1,
"ld_coating_factor": 1,
"ld_bar_size_factor": 1,
"alpha_s": "interior",
"concrete_cover_top_value": 3,
"concrete_cover_bottom_value": 3,
"overtuning_moment_value": 2,
"sliding_factor_value": 1.5
},
"sw_factor": "1.00"
}
}
}
]
}