S3D.results


The S3D.results namespace provides post-processing functions to read and interpret analysis results produced by S3D.model.solve.


S3D.results.get#

Used to get the analysis results.

KeyTypeAcceptsDescriptionDefault
formatstringjson, csv, summary, s3dExport results in particular file format.json
lc_filter[string]envelope, load_case, load_group, load_combo, envelope_abs_maxOnly return specific data in the response. You can also provide names you have applied to load combination. E.g. LC1.All cases
result_filter[string]reactions, member_displacements, member_forces, member_stresses, member_lengths, member_stations, member_discontinuities, member_minimums, member_maximums, member_peak_results, plate_displacements, plate_forces, plate_stresses, plate_element_forces, plate_element_stresses, plate_minimums, plate_maximums, plate_peak_results, buckling, dynamic_frequencyOnly return specific data in the response.All results
include_nodal_displacementsbooleantrue or falseInclude nodal_displacements in the results set for each load combinationfalse
Sample input for S3D.results.get
{
"function": "S3D.results.get",
"result_filter": ["member_peak_results", "member_discontinuities"],
"lc_filter": ["envelope", "envelope_abs_max"]
}

The analysis results will return an object of all load combination results in the following format.

Sample response for S3D.results.get
{
"1": {
"name": "LC1",
"type": "user_defined",
"reactions": {},
"member_displacements": {},
"member_forces": {},
"member_stresses": {},
"member_lengths": {},
"member_stations": {},
"member_discontinuities": {},
"member_minimums": {},
"member_maximums": {},
"member_peak_results": {},
"plate_displacements": {},
"plate_forces": {},
"plate_stresses": {},
"plate_minimums": {},
"plate_maximums": {},
"plate_peak_results": {}
},
"2": {} // etc
}

Analysis results object reference#

Every key in the response ("1", "2", ...) is a load combination id โ€” not necessarily sequential, and not necessarily starting at 1 (IDs can skip, e.g. 1, 2, 8, 9, 10..., matching the load_combinations/load_cases/load_groups ids defined on the model). Each load combination entry has this shape:

KeyTypeDescription
namestringDisplay name โ€” for envelope type entries this is the only way to tell Envelope Min / Envelope Max / Envelope Absolute Max apart (see type below).
typestringuser_defined (a combination from load_combinations), load_case (a single load case), load_group (a single load group, e.g. self-weight SW1), or envelope (min/max/abs-max across all combinations).
reactionsobjectSupport reactions โ€” see below.
member_displacements / member_forces / member_stressesobjectRaw per-station results along every member โ€” see below.
member_lengths / member_stations / member_discontinuitiesobjectSupporting per-member data โ€” see below.
member_minimums / member_maximums / member_peak_resultsobjectMin/max summaries derived from the raw per-station data โ€” see below.
plate_displacements / plate_forces / plate_stressesobjectRaw per corner-node results for every plate โ€” see below.
plate_element_forces / plate_element_stressesobjectSame as above, but per meshed element instead of per corner node. Empty ({}) unless the plate has been meshed via S3D.model.mesh.
plate_minimums / plate_maximums / plate_peak_resultsobjectMin/max summaries derived from the raw plate data โ€” see below.
bucklingstring or object"disabled" unless S3D.model.solve was run with analysis_type: "buckling".
tip

Dynamic/response-spectrum results (modes, frequencies, mass participation) are not part of this per-load-combination object โ€” call the dedicated S3D.results.getDynamicFreq accessor instead.

All numeric values follow the units set on the model (s3d_model.settings.units) โ€” forces/moments in the model's force/moment unit, displacements in its translation unit, stresses in its stress unit. Results never carry their own unit metadata; read S3D.model.get().settings.units (API) or S3D.units.getSystemName() (S3D App) to know what a number means.

reactions#

Keyed by supported node id (nodes with no support are simply absent โ€” this is not a full list of every node in the model):

reactions[\"1\"]
{
"Fx": 0.006,
"Fy": 0.484,
"Fz": 0.001,
"Mx": -0.005,
"My": 0,
"Mz": 0
}

Member results โ€” three tiers of detail#

1. Raw per-station (member_displacements, member_forces, member_stresses) โ€” keyed by result key โ†’ member id โ†’ station position (a string, the member's length as a 0โ€“100% position rounded to 1 decimal place) โ†’ value. The number of stations matches settings.evaluation_points on the model (25 by default):

member_forces.axial_force[\"1\"] (truncated)
{
"0.0": -0.001,
"4.2": -0.0009,
"8.3": -0.0008,
"...": "... one entry per station, up to ...",
"100.0": 0.427625
}
ObjectKeys
member_displacementsdisplacement_x/y/z, displacement_sum, displacement_local_x/y/z, displacement_local_sum, rotation_x/y/z, rotation_local_x/y/z
member_forcesaxial_force, shear_force_y, shear_force_z, bending_moment_y, bending_moment_z, torsion
member_stressesaxial_stress, top_bending_stress_z/y, btm_bending_stress_z/y, shear_stress_z/y, shear_stress_total, torsion_stress, max_combined_normal_stress, min_combined_normal_stress

2. Per-member min/max (member_minimums, member_maximums) โ€” keyed by result key โ†’ member id โ†’ a single scalar (the min/max of that quantity found anywhere along that one member). Includes a few extra serviceability-oriented keys not present in the raw per-station objects: displacement_relative, displacement_relative_local_x/y/z, displacement_relative_2, displacement_relative_local_x/y/z_2, displacement_span_ratio, displacement_span_ratio_2 (relative-to-chord deflection and span/deflection ratio, e.g. for span/250 checks).

member_minimums.axial_force[\"1\"]
-0.00139328

3. Global min/max (member_peak_results) โ€” keyed by result key โ†’ { "min": ..., "max": ... } across every member in the load combination (no member id or station โ€” just the two extreme values):

member_peak_results.axial_force
{ "min": -0.00267385, "max": 0.427625 }

Supporting per-member data:

KeyShapeDescription
member_lengthsmember id โ†’ floatThe member's length.
member_stationsmember id โ†’ [float]The station positions (0โ€“100%) the raw per-station results are evaluated at โ€” same count as settings.evaluation_points.
member_discontinuitiesmember id โ†’ integerCount of internal discontinuity points detected along the member (e.g. from point loads applied mid-span) โ€” not itself a results array.

Plate results โ€” the same three tiers#

1. Raw per corner-node (plate_displacements, plate_forces, plate_stresses) โ€” keyed by result key โ†’ plate id โ†’ an array of values, one per corner node in the plate's nodes order (3 entries for a triangular plate, 4 for a quad):

plate_stresses.stress_von_mises_top[\"1\"]
[0.357414, 0.363112, 0.790236, 0.482214]
ObjectKeys
plate_displacementsdisplacement_x/y/z, displacement_sum
plate_forcesforce_x/y/xy/xz/yz, moment_x/y/xy
plate_stressesstress_xx/yy/xy and stress_major_principal/stress_minor_principal/stress_von_mises/stress_max_shear โ€” each suffixed _top and _btm

plate_element_forces / plate_element_stresses mirror plate_forces / plate_stresses but are keyed per meshed element (from S3D.model.mesh) instead of per corner node โ€” empty ({}) on an unmeshed model.

2. Per-plate min/max (plate_minimums, plate_maximums) โ€” keyed by result key โ†’ plate id โ†’ a single scalar:

plate_minimums.stress_von_mises_top[\"1\"]
0.357414

3. Global min/max (plate_peak_results) โ€” keyed by result key โ†’ { "min": ..., "max": ... } across every plate:

plate_peak_results.displacement_x
{ "min": -0.00747437, "max": -0.00738231 }


S3D.results.set#

Sets the results data for further processing.

tip

Analysis results from any source can be used. Simply provide the data in the same format that is returned from S3D.results.get.md.

KeyTypeDescription
analysis_resultsobjectResults of a structural analysis (from S3D.results.get)
Sample input for S3D.results.set
{
"function": "S3D.results.set",
"arguments": {
"analysis_results": {
"1": {
"name": "LC1",
"type": "user_defined",
"reactions": {},
"member_displacements": {},
"member_forces": {},
"member_stresses": {},
"member_lengths": {},
"member_stations": {},
"member_discontinuities": {},
"member_minimums": {},
"member_maximums": {},
"member_peak_results": {},
"plate_displacements": {},
"plate_forces": {},
"plate_stresses": {},
"plate_minimums": {},
"plate_maximums": {},
"plate_peak_results": {}
},
"2": {} // etc
}
}
}

The response will confirm whether or not the model was successfully set.

Sample response for S3D.results.set
{
"msg": "Results were successfully set.",
"status": 0,
"data": ""
}
Try S3D.results.set


S3D.results.fetchMemberResult#

Fetches results data for a particular member.

KeyTypeAcceptsDescriptionDefault
member_idintegerAn integerFetch the results of the member with this ID. A value of null will return all.
LC[integer]An array of integersLoad combinations to include. An empty array will return all load combinations.
res_keystringbmd_z, bmd_y, axial, sfd_y, sfd_z,
top_bending_stress_z, top_bending_stress_y,
btm_bending_stress_z, btm_bending_stress_y,
shear_stress_z, shear_stress_y,
displacement, displacement_x,
displacement_y, displacement_z
The type of results to be returned.
typestringarray, x,y, imageFormat of results.
  • array - array of results (no x location information)
  • x,y - object of results with x location and result
  • image - an image of the results.
Sample input for S3D.results.fetchMemberResult
{
"function": "S3D.results.fetchMemberResult",
"arguments": {
"member_id": 3,
"LC": [1],
"res_key": "bmd_z",
"type": "x,y"
}
}
Sample response for S3D.results.fetchMemberResult
{
"data": [
[
-0.19113528489304113,
-0.15415709542934292,
-0.11717890596564516,
-0.08020071650194674,
-0.04322252703824829,
-0.006244337574548954,
0.0307338518891493,
0.06771204135284795,
0.10469023081654624
]
],
"status": 0,
"msg": ""
}

If "type": "image" is provided, then an image will be returned in base64 format.



S3D.results.getAnalysisReport#

Generates a structural analysis report and returns a download link to retrieve the report.

important

S3D.model.set and S3D.model.solve must be executed earlier in the session for the Analysis Report to be generated.

Variables#

KeyTypeAcceptsDescriptionDefault
job_namestringAny string.The name of your project. This will be used as the analysis report name.
file_typestringpdf, txtThe report format to be returned.
load_combinations[integer]An array of integers or stringsAn array of load combination IDs or load combination names to report on. Users can also use shortcuts like load_combination = "all" or load_combination = "envelope" to only filter these.
sectionsobjectKey-value pairsThe different type of analysis results to include in your report (see below).
timezonenumberAny numberUTC offset of the timezone used for the time on the title page. For example Sydney, Australia would be 10 as it is GMT+10.
Sample input for S3D.results.getAnalysisReport
{
"function": "S3D.results.getAnalysisReport",
"arguments": {
"job_name": "Example Job Name",
"file_type": "pdf",
"load_combinations": [1, 2, 3, "Envelope Absolute Max"], // or "all", "envelope"
"sections": {
"title_page": true,
"job_setup": true,
"bom": true, // Bill of Materials
"nodal_reactions": true,
"nodal_forces": false,
"nodal_displacements": true,
"member_forces": false,
"member_displacements": true,
"member_stresses": false,
"buckling": false,
"plate_nodal_forces": false,
"plate_element_forces": false,
"plate_nodal_moments": false,
"plate_element_moments": false,
"plate_displacements": false,
"plate_nodal_stresses": false,
"plate_element_stresses": false,
"plate_nodal_equiv_stresses": false,
"plate_element_equiv_stresses": false
}
}
}

The function will return links to download and preview your analysis report in the format specified by the file_type property.

Sample response for S3D.results.getAnalysisReport
{
"status": 0,
"msg": "Analysis report successfully generated.",
"data": {
"view_link": "https://solver.skyciv.com/temp/view_report_9rxLAlPHg0VXxrei.php",
"download_link": "https://solver.skyciv.com/temp/download_report_9rxLAlPHg0VXxrei.php",
"html_download_link": "https://solver.skyciv.com/temp/download_html_report_9rxLAlPHg0VXxrei.php",
"file_type": "pdf"
}
}


S3D.results.getDynamicFreq#

Returns dynamic frequency analysis results, including modes, frequencies, periods, modal masses, and mass particpation percentages.

Note: A dynamic frequency or seismic analysis needs to be run using S3D.model.solve, before calling this function.

KeyTypeAcceptsDescriptionDefault
result_filter[string]modes, nodal_masses_from_static_loads, nodal_masses_all, effective_modal_mass, total_effective_modal_mass, total_structure_mass, mass_participation_percentageOnly return specific data in the response.All results

Unfiltered results

Sample input unfiltered
{
"function": "S3D.results.getDynamicFreq",
"arguments": { }
}
Sample response unfiltered
"data": {
"modes": {
"1": {
"frequency": 1.218436039866671,
"period": 0.8207242459024984,
"frequency_rad": 7.6556594234283475,
"node_shapes": {..detailed node shapes},
"member_shapes": {..detailed member shapes}
},
"2": {
"frequency": 1.64328431691,
"period": 0.783297390342,
"frequency_rad": 5.7432847625,
"node_shapes": {..detailed node shapes},
"member_shapes": {..detailed member shapes}
},
etc...
},
"nodal_masses_from_static_loads": { ... modal masses from loads},
"nodal_masses_all": { ... all nodal masses},
"effective_modal_mass": { ...effective modal masses },
"total_effective_modal_mass": {
"tx": 1325.6121419613362,
"ty": 1020.1733617219716,
"tz": 354.6243748683751
},
"total_structure_mass": {
"tx": 1596.4794357950404,
"ty": 1596.4794357950404,
"tz": 1596.4794357950404
},
"mass_participation_percentage": {
"tx": 83.03346176840581,
"ty": 63.90144081085074,
"tz": 22.212899641377064
}
},

Filtered results

{
"function": "S3D.results.getDynamicFreq",
"arguments": {
"result_filter": [
"mass_participation_percentage"
]
}
}
"data": {
"mass_participation_percentage": {
"tx": 99.99963344795431,
"ty": 99.99875482691012,
"tz": 53.83495279301855,
"rx": 27.711720108484123,
"ry": 53.82280171349964,
"rz": 99.97818642004258
}
},