Method and system for control and co-simulation of physical systems
10296706 ยท 2019-05-21
Assignee
Inventors
Cpc classification
F02D2041/1437
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F02D41/1401
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F02D2250/14
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F02D2041/1432
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
F02D2041/288
MECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
International classification
Abstract
A method for control and co-simulation in a system having multiple subsystems, each representing a physical system, includes, in a first subsystem simulating a first physical system, providing a first time continuous output signal representing a property of the first physical system, and filtering the output signal using a continuous moving average (CMA) filter as an anti-aliasing filter to form a filtered time continuous signal. Filtering the output signal includes integrating the time continuous signal to form an integrated signal, sampling the integrated signal, for each sample, forming an average value from the current sample and a previous sample, and forming a filtered time continuous signal from the average values. The method also includes providing the filtered time continuous signal to a second subsystem simulating a second physical system. A system for performing the method is also provided.
Claims
1. A method performed by a processor for control and co-simulation in a system comprising a plurality of subsystems, each subsystem representing a physical system, the method comprising: in a first subsystem simulating a first physical system, providing a first time continuous output signal representing a property of the first physical system; filtering the output signal using a continuous moving average filter as an anti-aliasing filter to form a filtered time continuous signal, wherein filtering the output signal comprises; integrating the time continuous signal to form an integrated signal, sampling the integrated signal, for each sample, forming an average value from the current sample S.sub.0 and a previous sample S.sub.0n, where n>0, divided by total sample time h*n, where h is sample period, and forming a filtered time continuous signal from the average values; and providing the filtered time continuous signal to a second subsystem simulating a second physical system.
2. The method according to claim 1 wherein n=2.
3. The method according to claim 1 wherein the first time continuous output signal represents a flow of the first subsystem.
4. The method according to claim 1 wherein each of the plurality of subsystems is characterized by a flow and an effort.
5. The method according to claim 1 wherein the first subsystem represents a first physical system having a higher impedance than the second physical system.
6. The method according to claim 1 further comprising, in the second subsystem: receiving the filtered time continuous signal from the first subsystem; simulating a behavior of the second physical system based on the received signal; providing a second time continuous output signal representing a property of the second subsystem; filtering the second output signal using a continuous moving average filter as an anti-aliasing filter to form a second filtered time continuous signal; wherein filtering the output signal comprises: integrating the second time continuous signal to form an integrated signal; sampling the integrated signal; for each sample, forming an average value from the current sample S.sub.0 and a previous sample S.sub.0n, where n>0, divided by the total sample time h*n, where h is the sample period; forming a second filtered time continuous signal from the average values; and providing the second filtered time continuous signal to the first subsystem.
7. The method according to claim 6 wherein, if the first physical system has a higher impedance than the second physical system, the first output signal represents a flow and the second output signal represents an effort.
8. The method according to claim 6 wherein, if the first physical system has a lower impedance than the second physical system, the first output signal represents an effort and the second output signal represents a flow.
9. A method performed by a processor for control and co-simulation in a system comprising a plurality of subsystems, each subsystem representing a physical system, the method comprising: in a first subsystem simulating a first physical system, providing a first time discrete output signal representing a property of the first physical system, the first discrete output signal having a first sample rate; filtering the output signal using a continuous moving average filter as an anti-aliasing filter to form a filtered time continuous signal, wherein filtering the output signal comprises summing the time discrete signal to form a summed signal, sampling the summed signal using a second sample rate lower than the first sample rate, for each sample, forming an average value from the current sample S.sub.0 and previous samples S.sub.1 . . . S.sub.(n+1), where n>0, divided by total number of samples n, and forming a filtered time discrete signal from the average values; and providing the filtered time continuous signal to a second subsystem simulating a second physical system.
10. The method according to claim 9 wherein n is equal to the ratio between the first sample rate and the second sample rate.
11. The method according to claim 10 wherein the first sampling rate is a variable sampling rate.
12. A control and co-simulation system comprising a plurality of subsystems, each subsystem representing a physical system, the co-simulation system implemented in a processor and comprising: a first subsystem simulating a first physical system and configured to provide a time continuous output signal representing a velocity or a torque of the first physical system; an anti-aliasing filter connectable to an output of the first subsystem and configured to form a filtered time continuous signal, wherein the anti-aliasing filter comprises: an integrator configured to integrate the time continuous signal to form an integrated signal, a sampling module configured to continuously sample the integrated signal, and an averaging module configured to form an average value for each sample from the current sample S.sub.0 and a previous sample S.sub.0n, where n>0, divided by total sample time h*n, where h is sample period; an output module configured to form a time continuous output signal from the average values formed by the averaging module; and a second subsystem simulating a second physical system, the second subsystem connectable to the anti-aliasing filter to receive the filtered time continuous signal.
13. The system according to claim 12 wherein, if the first physical system has a higher impedance than the second physical system, the first output signal represents a flow and the second output signal represents an effort, and if the first physical system has a lower impedance than the second physical system, the first output signal represents an effort and the second output signal represents a flow.
14. The system according to claim 12 wherein, if the first physical system has a higher inertia than the second physical system, the first output signal represents a velocity and the second output signal represents a torque, and if the first physical system has a lower inertia than the second physical system, the first output signal represents a torque and the second output signal represents a velocity.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) These and other embodiments of the present disclosure will now be described in more detail, with reference to the appended drawings showing an example embodiment of the disclosure, wherein:
(2)
(3)
(4)
(5)
(6)
(7)
DETAILED DESCRIPTION
(8) As required, detailed embodiments are disclosed herein. However, it is to be understood that the disclosed embodiments are merely exemplary and that various alternative forms may be employed. The figures are not necessarily to scale. Some features may be exaggerated or minimized to show details of particular components. Therefore, specific structural and functional details disclosed herein are not to be interpreted as limiting, but merely as a representative basis for teaching one skilled in the art.
(9) In the present detailed description, various embodiments of the system and method according to the present disclosure will be described.
(10)
(11)
(12) The filter 106 for a time continuous input signal u can be mathematically described as
(13)
(14) where n is the integer number, which may also be referred to as the filter order, h is the sample time, t is time and y is the time continuous output signal.
(15) It should be noted that the system 100, first subsystem 102, second subsystem 110, and anti-aliasing filters 106 and 114, including integrator 120, sampling module 124, averaging module 126, output module 128, and any other system, subsystem, device or module described herein may individually, collectively, or in any combination comprise appropriate circuitry and/or one or more appropriately programmed processors (e.g., one or more microprocessors including central processing units (CPU)) and associated memory, which may include stored operating system software and/or application software executable by the processor(s) for controlling operation thereof and for performing the particular algorithms represented by the various functions and/or operations described herein, including interaction between and/or cooperation with each other. One or more of such processors, as well as other circuitry and/or hardware may be included in a single ASIC (Application-Specific Integrated Circuitry), or several processors and various circuitry and/or hardware may be distributed among several separate components, whether individually packaged or assembled into a SoC (System-on-a-Chip).
(16)
(17) The graphs of
(18) First, in step 502, a first time continuous signal 104 is provided by the first subsystem 102, here in the form of a sinusoidal signal as illustrated in
(19) The filtering function for n=2 can in principle be described as
(20)
(21) and in step 508 the average value for n=2 is formed from the current sample S.sub.0 and a previous sample S.sub.2 divided by the total sample time 2h, where h is the sample period.
(22)
(23) It should be noted that the signal 108 is referred to as time continuous even though the signal only changes value in a discrete manner at regular times, according to the sampling rate used. The signal 108 is referred to as time continuous since it is a signal in the time continuous domain to be used as an input signal to a subsystem requiring a time continuous signal as input signal, thus it can be seen as time continuous.
(24) According to one embodiment of the disclosure, the subsystem may provide a time discrete signal as output signal. This will be described in the following with reference to the graphs of
(25) A filter for a time discrete input signal can be mathematically described as
(26)
(27) where u is the time discrete input signal, n is an integer number, which may also be referred to as the filter order and y is the time discrete output signal. The use of the above filter can be seen as a case where a physical system or physical systems are modelled and simulated with a fixed step integrator.
(28) First, in step 602, a first time discrete signal having a first sampling rate, illustrated in
(29) In the following step 608 an averaged value is formed based on the down sampled signal by forming an average value from the current sample S.sub.0 and a previous sample S.sub.0-n, divided by the total number of samples h in the range S.sub.0 to S.sub.0-n. Subsequently, in step 610, an averaged signal is formed from the average values as illustrated in
(30) In the description above, the summed time discrete signal is first down-sampled and after that it is averaged. However, it should be noted that it is equally possible to first average the signal followed by down-sampling, and that this may be advantageous in some applications. For example, in specific implementations of the method it may be advantageous to perform the averaging step prior to the down-sampling step, although the two different sequenced are mathematically equivalent yielding the same end result.
(31) The graphs of
(32) Next, the time continuous signal, illustrated as 406 in
(33) Even though the disclosure has been described with reference to specific exemplifying embodiments thereof, many different alterations, modifications and the like will become apparent for those skilled in the art. Also, it should be noted that parts of the method and system may be omitted, interchanged or arranged in various ways, the system and method yet being able to perform the functionality of the present disclosure. In particular, it should be noted that the steps of the method may be performed in a different sequence compared to what is described above, while still providing the same resulting output signal.
(34) Additionally, variations to the disclosed embodiments can be understood and effected by the skilled person in practicing the claimed disclosure, from a study of the drawings, the disclosure, and the appended claims. In the claims, the word comprising does not exclude other elements or steps, and the indefinite article a or an does not exclude a plurality. The mere fact that certain measures are recited in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.
(35) While exemplary embodiments are described above, it is not intended that these embodiments describe all possible forms of the disclosure. Rather, the words used in the specification are words of description rather than limitation, and it is understood that various changes may be made without departing from the spirit and scope of the disclosure. Additionally, the features of various implementing embodiments may be combined to form further embodiments of the disclosure.