See the private API reference for comprehensive documentation of all available solvers.
Example Code
Key Attributes
Core Configuration
Must be “remote” - defines the widget type
The symbol for the remote widget rendered in KaTeX. Appears in equations where values returned by the solver are called
Indicates which solver the remote widget requests from the server. Solvers are written in Python and are specific in usage (e.g., portal frames, beams, concrete beams are individual solvers)
Unique reference ID of the remote widget. Can be called by Field Reference Function, but returns the resolved object from the solver requiring specific property calls
Equation Configuration
Behaves like equations with conditions, but the
"result" type is specific to solver communicationequation parameter expects a specific format:
The
"result" accepts a dictionary that is sent to the solver, where the solver recognizes the keys in the dictionary.Documentation Fields
Standardized reference to the building code and major version from which the field is sourced/based upon
Minor explanation providing context, definitions, or clarifying information to the user about the field
Internal development notes never displayed to users. For ClearCalcs developers to document implementation details, future updates, etc.
How It Works
- Data Preparation: The remote widget collects input parameters from the template
- Solver Communication: Sends a dictionary of parameters to the specified server solver
- Processing: The solver performs complex calculations (often FEA or advanced structural analysis)
- Result Return: The solver returns a complex object with calculated results
- Property Access: Template accesses specific properties from the returned object using field references
Available Solvers
Solvers are located in the./solver directory and include:
- Portal Frame Solver - For portal frame analysis
- Beam Solver - For beam calculations
- Concrete Beam Solver - For reinforced concrete beam design
- Frame Solver - For general frame analysis
- Cross-section Solver - For section property calculations
Each solver has specific input requirements and output formats. Refer to the solver documentation for detailed parameter specifications.
Field Reference Function
When calling a remote widget through field references, remember:- The widget returns the complete solver object
- Specific property calls are required to obtain individual values
- Use dot notation to access nested properties in the solver response
Best Practices
- Always specify the correct solver for your calculation needs
- Provide comprehensive input dictionaries with all required parameters
- Use meaningful symbols that clearly indicate the solver’s purpose
- Document solver inputs and expected outputs in
authorNotes - Test solver responses thoroughly during development