Webel: SysML4Mathematica: Does every bit of the Mathematica code need to be modelled in SysML? No. Typically just the main function parameters and their interdependencies, data structures, and main code logic. Except for special or educational purposes.

Webel IT Australia promotes the amazing Mathematica tool and the powerful Wolfram Language and offers professional Mathematica services for computational computing and data analysis. Our Mathematica tips, issue tracking, and wishlist is offered here most constructively to help improve the tool and language and support the Mathematica user community.
DISCLAIMER: Wolfram Research does not officially endorse analysis by Webel IT Australia.
Icon class
icon_class
far fa-sticky-note
icon_class_computed
far fa-sticky-note
Note kind
Policy level
Specification keywords
UML keywords
SysMLv1.x keywords
Keywords

In the Webel recipe for modelling Mathematica (Wolfram Language) code in Systems Modeling Language v1 (SysML®) it is not intended that every single little part of the Wolfram Language code be modelled in SysML, even if there are some examples of fine-grained modelling of code on this site (mostly for educational purposes):

A function can be captured in SysML as an OpaqueBehavior with a 'body' or a ConstraintBlock with a Constraint indeed capturing the code (and even in Wolfram Language), which can be invoked in Magic Model Analyst® (Cameo Simulation Toolkit®) with Mathematica as the external maths engine, and serves as an excellent record of the function signature. Both Behaviors (OpaqueBehaviors) and Activities can be shown on a Block Definition Diagrams (BDD) in SysMLv1, including their parameters and constraint parameters and relationships to other elements.

Or the actual function call signature can be used (works with parameters with simpler types), and can be invoked in Magic Model Analyst® (Cameo Simulation Toolkit®) with Mathematica as the external maths engine.

For more complex functions and code logic, an Activity may be used, whereby it is not always necessary to model the internals with a SysML Activity Diagram:

Relates to
Related notes
Related notes (backlinks)
Related snippets (extracts)
Visit also
Visit also (backlinks)