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.
The 'body' of an OpaqueBehavior and the 'constraint' of a ConstraintBlock can't share their maths directly in the SysML model
In the example, the formula qSen = m$da * (hda2 - hda1)
appears in two separate elements, which is "WET" and thus breaks the Single Source of Truth (SSOT) and Don't Repeat Yourself (DRY) policy.
TIP: You can use an Abstraction between the OpaqueBehavior and the corresponding ConstraintBlock (hopefully with exactly the same maths) for traceability
However, there is a solution. In Magic Model Analyst® (Cameo Simulation Toolkit®) you can use Mathematica as an external maths engine and then indeed share the maths via a custom function defined and auto-loaded in Mathematica: