comp.lang.ada
 help / color / mirror / Atom feed
From: joechan@poboxes.com (Joe Chan - �� �~ ��)
Subject: [Q] How to do simulation in ADA?
Date: 1997/02/26
Date: 1997-02-26T00:00:00+00:00	[thread overview]
Message-ID: <5f1dls$gvk@hkpu01.polyu.edu.hk> (raw)


Hi,
        I need to write a ADA program to simulate the operation of a
control system which controls the RPM(revolutions per minute) of
the turbine in a nuclear power plant. The RPM depends on the
pressure(X) and the flow rate of cooling liquid(U).

        Their relationship can be described by the following equation:

        RPM = 100(1-10U/X)(1-U/100)

        There is a optimal operation point(i.e. a fixed value for RPM,
X, U) that all the deviations must converage.
                                        -at
        The correction by U is D = 1 - e   ,
        where a = U          , D = RPM          , t = time
                   difference         difference
        
                                        -bt
        The correction by X is F = 1 - e   ,
        where b = X          , F = RPM          , t = time
                   difference         difference

        If both U and X change at the same time, the closer point
(absolute value) to the optimal operation point is the new reference
point of operation.

        The initial operation point is X=13, U=0.8

        My questions:

        1. How to program 3 tasks to sample the RPM, U and X?
        2. Generate a random number to decide whether a sampling
should start? (Is there any random number geneartor in VAX ADA?)
                               -ct
        3. How to program 1 - e   ? (Is there any exp function?)

        4. Could you tell me which book describes the similar software
system?

	I am a beginner in ADA programming! Any suggestions are welcome!

	Thank you very much!

	Joe

P.S. Could you also mail your response to me, joechan@poboxes.com







                 reply	other threads:[~1997-02-26  0:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox