Skip to content

Commit 80a8fab

Browse files
committed
Allow the same value types for 'spatialDistribution' as for 'delay'
1 parent 5d81bc0 commit 80a8fab

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

chapters/operatorsandexpressions.tex

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,9 @@ \subsubsection{spatialDistribution}\label{spatialdistribution}
782782
initialPoints = {0.0, 1.0},
783783
initialValues = {0.0, 0.0});
784784
\end{lstlisting}
785-
where \lstinline!in0!, \lstinline!in1!, \lstinline!out0!, \lstinline!out1!, and \lstinline!x! are all subtypes of \lstinline!Real!, \lstinline!positiveVelocity! is a \lstinline!Boolean!, and \lstinline!initialPoints! and \lstinline!initialValues! are arrays of subtypes of \lstinline!Real!.
785+
The expressions \lstinline!in0!, \lstinline!in1!, \lstinline!out0!, and \lstinline!out1! shall all be subtypes of a common type $T$, where $T$ is either \lstinline!Real!, \lstinline!Integer!, \lstinline!Boolean!, or an enumeration type.
786+
Further, \lstinline!x! shall be a subtype of \lstinline!Real!, \lstinline!positiveVelocity! is a \lstinline!Boolean!, and \lstinline!initialPoints! and \lstinline!initialValues! are arrays of subtypes of $T$ and \lstinline!Real!, respectively.
787+
786788
The position \lstinline!x! is the integral of the transport velocity $v$, where the constant of integration does not matter.
787789
The arrays \lstinline!initialPoints! and \lstinline!initialValues! shall be parameter expressions of equal size, containing the $\xi$ coordinates and the $z$ values of a finite set of points describing the initial distribution of $z(\xi, t_{0})$.
788790
The \lstinline!out0! and \lstinline!out1! are given by the solutions at $z(0, t)$ and $z(1, t)$; and \lstinline!in0! and \lstinline!in1! are the boundary conditions at $z(0, t)$ and $z(1, t)$ (at each point in time only one of \lstinline!in0! and \lstinline!in1! is used).
@@ -800,7 +802,7 @@ \subsubsection{spatialDistribution}\label{spatialdistribution}
800802
Further, when a \lstinline!spatialDistribution!-expression is non-discrete-time and event generation is enabled (not appearing inside \lstinline!noEvent!), discontinuities in \lstinline!in0! and \lstinline!in1! may preserved in the distribution $z$, and trigger events when appearing in any of the operator outputs.
801803
It is a quality of implementation to avoid excessive generation of events by only preserving significant discontinuities.
802804

803-
Disregarding the event-triggering handling of discontinuities, \lstinline!spatialDistribution! can be described in terms of the pseudo-code given as a block:
805+
Disregarding the event-triggering handling of discontinuities, \lstinline!spatialDistribution! for $T$ being \lstinline!Real! can be described in terms of the pseudo-code given as a block:
804806
\begin{lstlisting}[language=modelica]
805807
block spatialDistribution
806808
input Real in0;

0 commit comments

Comments
 (0)