From d3aadcc8830aca3ab2ef232aa92a3c8a7e9dc386 Mon Sep 17 00:00:00 2001 From: Hans Olsson Date: Mon, 12 Oct 2020 10:57:01 +0200 Subject: [PATCH] Avoid 'allows to' (#2685) * Avoid 'allows to' Closes #2380 --- chapters/annotations.tex | 2 +- chapters/classes.tex | 4 ++-- chapters/dae.tex | 4 ++-- chapters/functions.tex | 2 +- chapters/operatorsandexpressions.tex | 4 ++-- chapters/revisions.tex | 10 +++++----- chapters/synchronous.tex | 4 ++-- 7 files changed, 15 insertions(+), 15 deletions(-) diff --git a/chapters/annotations.tex b/chapters/annotations.tex index 0d16bc385..c4d0e9aa4 100644 --- a/chapters/annotations.tex +++ b/chapters/annotations.tex @@ -1838,7 +1838,7 @@ \subsection{Version Date and Build Information}\label{version-date-and-build-inf \item \lstinline!revisionId! is a tool specific revision identifier possibly generated by a source code management system (e.g.\ Subversion - or CVS). This information allows to exactly identify the library + or CVS). This information exactly identifies the library source code in the source code management system. \end{itemize} diff --git a/chapters/classes.tex b/chapters/classes.tex index 915bf8a5c..bd366f8fa 100644 --- a/chapters/classes.tex +++ b/chapters/classes.tex @@ -429,8 +429,8 @@ \subsection{Component Variability Prefixes discrete, parameter, constant}\label{ constant variables. Additionally, the parameter prefix allows a convenient graphical user interface in an experiment environment, to support quick changes of the most important constants of a compiled -model. In combination with an if-clause, a parameter prefix allows to -remove parts of a model before the symbolic processing of a model takes +model. In combination with an if-clause, a parameter prefix allows +removing parts of a model before the symbolic processing of a model takes place in order to avoid variable causalities in the model (similar to \lstinline!#ifdef! in C). Class parameters can be sometimes used as an alternative. diff --git a/chapters/dae.tex b/chapters/dae.tex index 685f8d21d..8e7b212df 100644 --- a/chapters/dae.tex +++ b/chapters/dae.tex @@ -82,8 +82,8 @@ \chapter{Modelica DAE Representation}\label{modelica-dae-representation} the relations changes its value an event is triggered, i.e., the exact time instant of the change is determined and the integration is halted. As discussed in \cref{events-and-synchronization}, relations which depend only on - time are usually treated in a special way, because this allows to - determine the time instant of the next event in advance. + time are usually treated in a special way, because this allows + determining the time instant of the next event in advance. \item At an event instant, \eqref{eq:hydrid-dae} is a mixed set of algebraic equations which is solved for the Real, Boolean and Integer unknowns. diff --git a/chapters/functions.tex b/chapters/functions.tex index 1d9980896..fbed23b08 100644 --- a/chapters/functions.tex +++ b/chapters/functions.tex @@ -989,7 +989,7 @@ \section{Record Constructor Functions}\label{record-constructor-functions} is found in the global scope, and thus cannot be modified. \begin{nonnormative} -This allows to construct an instance of a record, with an +This allows constructing an instance of a record, with an optional modification, at all places where a function call is allowed. Examples: diff --git a/chapters/operatorsandexpressions.tex b/chapters/operatorsandexpressions.tex index 541a40e3a..b265a94ed 100644 --- a/chapters/operatorsandexpressions.tex +++ b/chapters/operatorsandexpressions.tex @@ -804,7 +804,7 @@ \subsubsection{spatialDistribution}\label{spatialdistribution} solver. \end{nonnormative} -\lstinline!spatialDistribution! allows to approximate efficiently the solution of the infinite-dimensional problem +\lstinline!spatialDistribution! allows the infinite-dimensional problem below to be solved efficiently with good accuracy \begin{align*} \frac{\partial z(y,t)}{\partial t}+v(t)\frac{\partial z(y,t)}{\partial y} &= 0.0\\ z(0.0, t) &= \mathrm{in}_0(t) \text{ if $v\ge 0$}\\ @@ -841,7 +841,7 @@ \subsubsection{spatialDistribution}\label{spatialdistribution} z(y+\int_{t}^{t+\beta} v(\alpha) \mathrm{d}\alpha, t+\beta) = z(y, t),\quad\text{for all $\beta$ as long as staying inside the domain} \end{equation*} -This allows to directly compute the solution based on interpolating the +This allows the direct computation of the solution based on interpolating the boundary conditions. \lstinline!spatialDistribution! can be described in terms of the pseudo-code given as a block: diff --git a/chapters/revisions.tex b/chapters/revisions.tex index bd24cd5d4..2cfc6ba86 100644 --- a/chapters/revisions.tex +++ b/chapters/revisions.tex @@ -1265,8 +1265,8 @@ \subsection{Contributors to the Modelica Language, Version 3.2}\label{contributo and demonstrated its use on a vehicle dynamics example. Utilizing the prototype implementation, Francesco Casella demonstrated with a model of a thermal power plant with 390 iteration variables of the initialization -problem, that an appropriate usage of the homotopy operator allows to -reliably initialize the system without providing guess values for the +problem, that an appropriate usage of the homotopy operator allows the +system to reliably initialized without providing guess values for the iteration variables. This was a strong indication that the homotopy operator will indeed improve initialization in Modelica significantly. @@ -1426,13 +1426,13 @@ \subsection{Main changes in Modelica 3.1}\label{main-changes-in-modelica-3-1} URIs can be used for links in html-documentation and for the Bitmap annotation (such as: \filename{modelica://Modelica.Mechanics/C.jpg} for image \filename{C.jpg} that is stored in the directory of package - \lstinline!Modelica.Mechanics!). This allows to store resources in a package on + \lstinline!Modelica.Mechanics!). This allows storing resources in a package on persistent storage and to reference resources via package and resource names. \item \emph{Annotation} \lstinline!connectorSizing! to automatically enlarge a vector of connectors and connect to a free element of this vector when - a connection line is drawn. This allows to improve the user + a connection line is drawn. This allows improving the user convenience, especially for state machine and fluid models. \item \emph{Annotation} \lstinline!inverse! to define inverses of functions. This @@ -1874,7 +1874,7 @@ \subsection{Main Changes in Modelica 3.0}\label{main-changes-in-modelica-3-0} New annotations for graphical annotations in \cref{annotations-for-graphical-objects}:\\ New attribute \lstinline!Smooth = enumeration(None, Bezier)! for graphical objects and connection lines (Bezier defines a Bezier spline).\\ - New attribute \lstinline!visible! in \lstinline!record Placement! allows to make a graphical + New attribute \lstinline!visible! in \lstinline!record Placement! allows making a graphical annotation invisible (e.g.\ after inheritance).\\ New attributes \lstinline!startAngle!, \lstinline!endAngle! in record ellipse to define part of an ellipse.\\ diff --git a/chapters/synchronous.tex b/chapters/synchronous.tex index 940bb8352..df44a34b4 100644 --- a/chapters/synchronous.tex +++ b/chapters/synchronous.tex @@ -66,7 +66,7 @@ \chapter{Synchronous Language Elements}\label{synchronous-language-elements} equations where this variable is used, with the exception of as argument to certain special operators, belong also to this clock, as well as all variables that are used in these equations. This property - is used for \emph{clock inference} and allows to define an associated + is used for \emph{clock inference} and allows defining an associated clock only at a few places (above only in the sampler, whereas in the discrete controller and the hold the sampling period is inferred). \item @@ -1054,7 +1054,7 @@ \section{Continuous-Time Equations in Clocked Partitions}\label{continuous-time- integration method between clock ticks. With this feature, it is for example possible to invert the nonlinear dynamic model of a plant, see (Thümmel et.al. 2005), and use it in a feedforward path of an advanced control system that is associated with a clock. -This feature also allows to define multi-rate systems: Different parts of the continuous-time model are associated to different clocks and are solved with different integration +This feature also allows defining multi-rate systems: Different parts of the continuous-time model are associated to different clocks and are solved with different integration methods between clock ticks, e.g., a very fast sub-system with an implicit solver with a small step-size and a slow sub-system with an explicit solver with a large step-size. \end{nonnormative}