Skip to content

Commit

Permalink
Updating doc of some Modelica builtins (#11696)
Browse files Browse the repository at this point in the history
- spatialDistribution operator
- homotopy operator
  • Loading branch information
AnHeuermann committed Mar 1, 2024
1 parent 2eae847 commit 8084da5
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
12 changes: 7 additions & 5 deletions OMCompiler/Compiler/FrontEnd/ModelicaBuiltin.mo
Expand Up @@ -273,13 +273,13 @@ annotation(Documentation(info="<html>
</html>"));
end log10;

function homotopy
function homotopy "Homotopy operator actual*lambda + simplified*(1-lambda)"
input Real actual;
input Real simplified;
output Real outValue;
external "builtin";
annotation(version="Modelica 3.2",Documentation(info="<html>
See <a href=\"modelica://ModelicaReference.Operators.'homotopy()'\">homotopy()</a> (experimental implementation)
annotation(__OpenModelica_builtin=true, version="Modelica 3.2",Documentation(info="<html>
See <a href=\"https://specification.modelica.org/maint/3.6/operators-and-expressions.html#homotopy\">homotopy()</a>
</html>"));
end homotopy;

Expand Down Expand Up @@ -742,7 +742,7 @@ If no class was being simulated, the last simulated class or a default will be u
"),version="Modelica 3.3");
end getInstanceName;

function spatialDistribution "Not yet implemented"
function spatialDistribution "Approximation of variable-speed transport of properties"
input Real in0;
input Real in1;
input Real x;
Expand All @@ -752,7 +752,9 @@ function spatialDistribution "Not yet implemented"
output Real out0;
output Real out1;
external "builtin";
annotation(version="Modelica 3.3");
annotation(Documentation(info="<html>
spatialDistribution allows approximation of variable-speed transport of properties. For further details, see the Modelica Language Specification <a href=\"https://specification.modelica.org/maint/3.6/operators-and-expressions.html#spatialdistribution\">spatialdistribution()</a>.
</html>"), version="Modelica 3.3");
end spatialDistribution;

function previous<T> "Access previous value of a clocked variable"
Expand Down
10 changes: 6 additions & 4 deletions OMCompiler/Compiler/NFFrontEnd/NFModelicaBuiltin.mo
Expand Up @@ -288,13 +288,13 @@ annotation(__OpenModelica_builtin=true, Documentation(info="<html>
</html>"));
end log10;

impure function homotopy
impure function homotopy "Homotopy operator actual*lambda + simplified*(1-lambda)"
input Real actual;
input Real simplified;
output Real outValue;
external "builtin";
annotation(__OpenModelica_builtin=true, version="Modelica 3.2",Documentation(info="<html>
See <a href=\"modelica://ModelicaReference.Operators.'homotopy()'\">homotopy()</a> (experimental implementation)
See <a href=\"https://specification.modelica.org/maint/3.6/operators-and-expressions.html#homotopy\">homotopy()</a>
</html>"));
end homotopy;

Expand Down Expand Up @@ -854,7 +854,7 @@ If no class was being simulated, the last simulated class or a default will be u
"),version="Modelica 3.3");
end getInstanceName;

function spatialDistribution "Not yet implemented"
function spatialDistribution "Approximation of variable-speed transport of properties"
input Real in0;
input Real in1;
input Real x;
Expand All @@ -864,7 +864,9 @@ function spatialDistribution "Not yet implemented"
output Real out0;
output Real out1;
external "builtin";
annotation(__OpenModelica_builtin=true, version="Modelica 3.3");
annotation(Documentation(info="<html>
spatialDistribution allows approximation of variable-speed transport of properties. For further details, see the Modelica Language Specification <a href=\"https://specification.modelica.org/maint/3.6/operators-and-expressions.html#spatialdistribution\">spatialdistribution()</a>.
</html>"), version="Modelica 3.3");
end spatialDistribution;

function previous<__ComponentExpression> "Access previous value of a clocked variable"
Expand Down

0 comments on commit 8084da5

Please sign in to comment.