Skip to content

Changes

Summary

  1. Add special rule for time. (details)
  2. Using smooth shouldn't require a solver-method; and especially not in combination with noEvent. (details)
  3. Further explain events. (details)
  4. Add that sample(1,1) in a clocked partition is a mess, and why it is still allowed. (details)
  5. Apply suggestions from code review (details)
  6. Update chapters/synchronous.tex (details)
  7. Update chapters/synchronous.tex (details)
  8. Update chapters/synchronous.tex (details)
  9. Update chapters/synchronous.tex (details)
  10. ReUseFormulation (details)
  11. RemoveSampleNow (details)
  12. Add special text for sample in clocked systems. (#3099) (details)
  13. Generalize calling functions through instances (#3097) (details)
  14. Add missing closing '!' in preferredView specification (details)
  15. AvoidSeveralPlaces (details)
Commit 970284c74b68c83bcfad56cdf124214cf499a693 by Hans.Olsson
Add special rule for time.
Note that it isn't clearly stated as an 'exception', since time is an input and arguable not 'unknown'.

However, 'unknown' is explained as not parameter or constant; and clearly time is neither.
In general it makes sense that inputs should be included in the analysis - but I view that as a separate topic;
as it wouldn't influence how time is treated.

If time was treated as a normal unknown there could only be one partition directly using it, meaning that the goals of having any model in clocked systems would be completely broken.

If time would be ignored for the analysis then use of 'sample(time)' in 16.3 and in Modelica.Clocked.RealSignals.TimeBasedSources.Ramp would be redundant.
That would also remove the 'safety' aspect of normal synchronous models; and wasn't part of the original design.

The new formulation forces time to be in the Continuous-Time or a Clocked Discretized Continuous-Time partition.
The file was modified chapters/synchronous.tex (diff)
Commit e675164123ae14bb8609a6f2efaaf8f0d8804f6f by Hans.Olsson
Using smooth shouldn't require a solver-method; and especially not in combination with noEvent.
The file was modified chapters/synchronous.tex (diff)
Commit 24389ca30397ef358f4eec1859b595ab671caf2f by Hans.Olsson
Further explain events.
The underlying problem is that the chapter had only considered clocking purely continuous-time models.

This tries to have somewhat well-defined behaviour in other cases.
The file was modified chapters/synchronous.tex (diff)
Commit 79cd60466788cab74ccf865cf02dd1e1259574d0 by Hans.Olsson
Add that sample(1,1) in a clocked partition is a mess, and why it is still allowed.
The file was modified chapters/synchronous.tex (diff)
Commit b42b22ccbb463f14204c8f28e9893a7e4d5b000d by noreply
Apply suggestions from code review

Co-authored-by: Henrik Tidefelt <henrikt@wolfram.com>
The file was modified chapters/synchronous.tex (diff)
Commit 63dba9102f3327eaa02e17809b78b3b9373b1733 by noreply
Update chapters/synchronous.tex

Co-authored-by: Elena Shmoylova <eshmoylova@users.noreply.github.com>
The file was modified chapters/synchronous.tex (diff)
Commit cefbe0010696ee6971451860a1aae1c70d4f80fa by noreply
Update chapters/synchronous.tex

Co-authored-by: Elena Shmoylova <eshmoylova@users.noreply.github.com>
The file was modified chapters/synchronous.tex (diff)
Commit cc5c5a6cdc4ebe165a3589a68cdf95683f87e2fd by noreply
Update chapters/synchronous.tex

Co-authored-by: Henrik Tidefelt <henrikt@wolfram.com>
The file was modified chapters/synchronous.tex (diff)
Commit 61b81d699c75927da98e72be1f8fbdf1779c6ae1 by noreply
Update chapters/synchronous.tex

Co-authored-by: Henrik Tidefelt <henrikt@wolfram.com>
The file was modified chapters/synchronous.tex (diff)
The file was modified chapters/synchronous.tex (diff)
The file was modified chapters/synchronous.tex (diff)
Commit b4729b3abce30b96f2fd67f7c09734e6c0446541 by noreply
Add special text for sample in clocked systems. (#3099)

* Add special text for sample in clocked systems.
Revert "RemoveSampleNow"

This reverts commit 32770c0893ab7c7d26b2d3a977a8140b698ab0c5.

Co-authored-by: Henrik Tidefelt <henrikt@wolfram.com>
The file was modified chapters/synchronous.tex (diff)
Commit b31f4fd0a8378bb8db197c43ca9b29ec9d448bd7 by noreply
Generalize calling functions through instances (#3097)

* Generalize

* Update chapters/scoping.tex

Co-authored-by: Henrik Tidefelt <henrikt@wolfram.com>
The file was modified chapters/scoping.tex (diff)
Commit f6c6f75b46bec4790d19edbc0b364c1f7e446707 by Tidefelt Henrik
Add missing closing '!' in preferredView specification
The file was modified chapters/annotations.tex (diff)
The file was modified chapters/lexicalstructure.tex (diff)

Summary

  1. Add special rule for time. (details)
  2. Using smooth shouldn't require a solver-method; and especially not in combination with noEvent. (details)
  3. Further explain events. (details)
  4. Add that sample(1,1) in a clocked partition is a mess, and why it is still allowed. (details)
  5. Apply suggestions from code review (details)
  6. Update chapters/synchronous.tex (details)
  7. Update chapters/synchronous.tex (details)
  8. Update chapters/synchronous.tex (details)
  9. Update chapters/synchronous.tex (details)
  10. ReUseFormulation (details)
  11. RemoveSampleNow (details)
  12. Add special text for sample in clocked systems. (#3099) (details)
  13. Generalize calling functions through instances (#3097) (details)
  14. Add missing closing '!' in preferredView specification (details)
  15. AvoidSeveralPlaces (details)
Commit 970284c74b68c83bcfad56cdf124214cf499a693 by Hans.Olsson
Add special rule for time.
Note that it isn't clearly stated as an 'exception', since time is an input and arguable not 'unknown'.

However, 'unknown' is explained as not parameter or constant; and clearly time is neither.
In general it makes sense that inputs should be included in the analysis - but I view that as a separate topic;
as it wouldn't influence how time is treated.

If time was treated as a normal unknown there could only be one partition directly using it, meaning that the goals of having any model in clocked systems would be completely broken.

If time would be ignored for the analysis then use of 'sample(time)' in 16.3 and in Modelica.Clocked.RealSignals.TimeBasedSources.Ramp would be redundant.
That would also remove the 'safety' aspect of normal synchronous models; and wasn't part of the original design.

The new formulation forces time to be in the Continuous-Time or a Clocked Discretized Continuous-Time partition.
The file was modified chapters/synchronous.tex (diff)
Commit e675164123ae14bb8609a6f2efaaf8f0d8804f6f by Hans.Olsson
Using smooth shouldn't require a solver-method; and especially not in combination with noEvent.
The file was modified chapters/synchronous.tex (diff)
Commit 24389ca30397ef358f4eec1859b595ab671caf2f by Hans.Olsson
Further explain events.
The underlying problem is that the chapter had only considered clocking purely continuous-time models.

This tries to have somewhat well-defined behaviour in other cases.
The file was modified chapters/synchronous.tex (diff)
Commit 79cd60466788cab74ccf865cf02dd1e1259574d0 by Hans.Olsson
Add that sample(1,1) in a clocked partition is a mess, and why it is still allowed.
The file was modified chapters/synchronous.tex (diff)
Commit b42b22ccbb463f14204c8f28e9893a7e4d5b000d by noreply
Apply suggestions from code review

Co-authored-by: Henrik Tidefelt <henrikt@wolfram.com>
The file was modified chapters/synchronous.tex (diff)
Commit 63dba9102f3327eaa02e17809b78b3b9373b1733 by noreply
Update chapters/synchronous.tex

Co-authored-by: Elena Shmoylova <eshmoylova@users.noreply.github.com>
The file was modified chapters/synchronous.tex (diff)
Commit cefbe0010696ee6971451860a1aae1c70d4f80fa by noreply
Update chapters/synchronous.tex

Co-authored-by: Elena Shmoylova <eshmoylova@users.noreply.github.com>
The file was modified chapters/synchronous.tex (diff)
Commit cc5c5a6cdc4ebe165a3589a68cdf95683f87e2fd by noreply
Update chapters/synchronous.tex

Co-authored-by: Henrik Tidefelt <henrikt@wolfram.com>
The file was modified chapters/synchronous.tex (diff)
Commit 61b81d699c75927da98e72be1f8fbdf1779c6ae1 by noreply
Update chapters/synchronous.tex

Co-authored-by: Henrik Tidefelt <henrikt@wolfram.com>
The file was modified chapters/synchronous.tex (diff)
The file was modified chapters/synchronous.tex (diff)
The file was modified chapters/synchronous.tex (diff)
Commit b4729b3abce30b96f2fd67f7c09734e6c0446541 by noreply
Add special text for sample in clocked systems. (#3099)

* Add special text for sample in clocked systems.
Revert "RemoveSampleNow"

This reverts commit 32770c0893ab7c7d26b2d3a977a8140b698ab0c5.

Co-authored-by: Henrik Tidefelt <henrikt@wolfram.com>
The file was modified chapters/synchronous.tex (diff)
Commit b31f4fd0a8378bb8db197c43ca9b29ec9d448bd7 by noreply
Generalize calling functions through instances (#3097)

* Generalize

* Update chapters/scoping.tex

Co-authored-by: Henrik Tidefelt <henrikt@wolfram.com>
The file was modified chapters/scoping.tex (diff)
Commit f6c6f75b46bec4790d19edbc0b364c1f7e446707 by Tidefelt Henrik
Add missing closing '!' in preferredView specification
The file was modified chapters/annotations.tex (diff)
The file was modified chapters/lexicalstructure.tex (diff)