User Tools

Site Tools


bok:eng:mbse:sysml:para

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
bok:eng:mbse:sysml:para [2020/08/01 02:22]
anwlur [Keywords] added in-built functions
bok:eng:mbse:sysml:para [2020/08/01 02:25] (current)
anwlur [Customized Functions]
Line 52: Line 52:
  
 The below is largely based on Creating a Parametric Model: Simulation Functions by Sparx Enterprise Architect which can be found [[https://​www.sparxsystems.com/​enterprise_architect_user_guide/​15.1/​model_simulation/​create_paramet_model.html|here]]. The below is largely based on Creating a Parametric Model: Simulation Functions by Sparx Enterprise Architect which can be found [[https://​www.sparxsystems.com/​enterprise_architect_user_guide/​15.1/​model_simulation/​create_paramet_model.html|here]].
-  * Unfortunately SysML or Sparx EA doesn'​t have any mathematical functions, like '​min()'​ to return minimum value of a set, out of the box. That's where you come in.+  * Modelica supports a limited number of mathematical functions, like '​min()'​ to return minimum value of a set, out of the box. If you want to create a function, say range() then that's where you come in. Note the below created function is obsolete as min() already exists (at the time of writing this function I didn't know that...)
   * Insert a Constraint Block, call it '​Minimum'​ (it doesn'​t have to be the same name of your function).   * Insert a Constraint Block, call it '​Minimum'​ (it doesn'​t have to be the same name of your function).
   * Add an Operation (right click -> Features -> Operations...). Click 'New Operation...'​   * Add an Operation (right click -> Features -> Operations...). Click 'New Operation...'​
bok/eng/mbse/sysml/para.1596248544.txt.gz ยท Last modified: 2020/08/01 02:22 by anwlur