S3D.solve


This namespace provides methods to interact with the S3D solver.


S3D.generalSolve#

Description: Run a solve.

Operation Type: Asynchronous

Params: S3D.generalSolve(structure, callback)

KeyTypeDescription
structureObjectThe structure object to solve.
callbackFunctionA callback function that receives a results object.

Sample:

solveStructure.js
const structure = S3D.structure.get();
// Set non linear solve
structure.settings.non_linear_static = true;
S3D.generalSolve(structure, (res) => {
console.info('Solve finished.');
// Set the results
S3D.results.setAll(res.response.load_combinations);
});

S3D.analysisReport#

Description: Generate an analysis report, based on the above solve.

Operation Type: Asynchronous

Params: S3D.analysisReport(settings, callback)

KeyTypeDescription
settingsObjectSettings of your report to be generated.
callbackFunctionA callback function that receives links to the final PDF report.

Sample:


var report_settings = {
"use_preview": false,
"report_name": "My Report",
"job_name": "Beam-" + date,
"software_version": "SkyCiv Beam Mobile App",
"file_type": "pdf", // "pdf" or "txt"
"number_format": "fixed", // "fixed" or "exponential"
"number_precision": 3, // 0-6
"highlight_min_max": "local", // "local", "global", or "none"
"load_combinations": [0], // enter 0 if none
"sections": {
"title_page": true,
"job_setup": true,
"bom": false,
"user_screenshots": false,
"SMR": false,
"nodal_results": true,
"nodal_reactions": true,
"nodal_forces": true,
"nodal_displacements": true,
"member_results": true,
"member_forces": true,
"member_displacements": true,
"member_span_displacements": true,
"member_stresses": true,
"buckling": false,
"plate_results": 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,
"dynamic_frequency_results": false,
"dynamic_frequency_modes": false,
},
};
S3D.analysisReport(report_settings, function(report_res, openPreview) {
console.log('Done report');
console.log(report_res);
})