~ubuntu-branches/ubuntu/hoary/scilab/hoary

« back to all changes in this revision

Viewing changes to macros/scicos_blocks/Hydraulics/Puits.mo

  • Committer: Bazaar Package Importer
  • Author(s): Torsten Werner
  • Date: 2005-01-09 22:58:21 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050109225821-473xr8vhgugxxx5j
Tags: 3.0-12
changed configure.in to build scilab's own malloc.o, closes: #255869

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
class Puits
 
2
  parameter Real P0=100000 "Pression du puits";
 
3
  parameter Real T0=290"Temp�rature du puits";
 
4
  parameter Real H0=100000 "Enthalpie sp�cifique du puits";
 
5
  parameter Real option_temperature=1 "1:temp�rature fix�e - 2:enthalpie fix�e";
 
6
 
 
7
  Real Pm "Pression moyenne";
 
8
  Real Q "D�bit";
 
9
  Real Tm "Temp�rature moyenne";
 
10
  Real Hm "Enthalpie sp�cifique moyenne";
 
11
 
 
12
public 
 
13
  PortPHQ1 C ;
 
14
equation 
 
15
  
 
16
  C.P = Pm;
 
17
  C.Q = Q;
 
18
  C.Hm = Hm;
 
19
 
 
20
  Pm = P0;
 
21
  Hm= H0;
 
22
 
 
23
  
 
24
  Tm = if (option_temperature <= 1) then T0 else Hm/4187 + 273.15;
 
25
 
 
26
end Puits;