Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate applying, associating, and inferencing for solverMethod. #3479

Merged
merged 3 commits into from Feb 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions chapters/synchronous.tex
Expand Up @@ -1170,7 +1170,7 @@ \subsection{Discrete-time and Discretized Sub-Partitions}\label{clocked-discrete

\subsection{Solver Methods}\label{solver-methods}

The integration method associated with a discretized sub-partition is defined with a string.
A sub-partition can have an integration method, directly associated (\cref{associating-a-solver-to-a-partition}) or inferred from other sub-partitions (\cref{inferencing-of-solvermethod}).
A predefined type \lstinline!ModelicaServices.Types.SolverMethod! defines the methods supported by the respective tool by using the \lstinline!choices! annotation.

\begin{nonnormative}
Expand Down Expand Up @@ -1227,7 +1227,7 @@ \subsection{Solver Methods}\label{solver-methods}
\item $y(t)$ is the continuous-time or discrete-time \lstinline!Real!/\lstinline!Integer!/\lstinline!Boolean!/\lstinline!String! vector of algebraic and/or output variables
\end{itemize}

A solver method is applied to a sub-partition.
A solver method is applied to a discretized sub-partition.
Such a partition has explicit inputs $u$ marked by \lstinline!sample($u$)!, \lstinline!subSample($u$)!, \lstinline!superSample($u$)!, \lstinline!shiftSample($u$)! and/or \lstinline!backSample($u$)!.
Furthermore, the outputs $y$ of such a partition are marked by \lstinline!hold($y$)!, \lstinline!subSample($y$)!, \lstinline!superSample($y$)!, \lstinline!shiftSample($y$)!, and/or \lstinline!backSample($y$)!.
The arguments of these operators are to be used as input signals $u$ and output signals $y$ in the conceptual ordinary differential equation above, and in the discretization formulae below, respectively.
Expand Down Expand Up @@ -1365,6 +1365,7 @@ \subsection{Inferencing of solverMethod}\label{inferencing-of-solvermethod}
\item Otherwise, the specified \lstinline!solverMethod! is used.
\end{itemize}
\item If the set does not contain continuous-time equations, there is no need for a \lstinline!solverMethod!.
However, inferencing between sub-partitions works the same regardless of whether there are continuous-time equations.
\end{itemize}

\begin{example}
Expand Down