Scicos Block
fr - eng


Thermohydraulic drain (well)

\epsfig{file=PuitsP.eps,width=90.00pt}

Contents

Description

This thermohydraulic component represents a thermo-hydraulic constant pressure drain (well). This block is specified with its pressure and temperature. Conventionally, the flow direction is positive when fluid flows into the block.

Dialog box

Paramètres du puit  
Pression de la source : P0 (Pa) 100000
Temperature de la source : T0 (K) 290
Enthalpie spécifique de la source : H0 (J/kg) 100000
1:température fixée - 2:enthalpie fixée : option_temperature 1

Default properties

Interfacing function

PuitsP.sci

Modelica model


class Puits
  parameter Real P0=100000 "Pression du puits";
  parameter Real T0=290"Température du puits";
  parameter Real H0=100000 "Enthalpie spécifique du puits";
  parameter Real option_temperature=1 "1:température fixée - 2:enthalpie fixée";

  Real Pm "Pression moyenne";
  Real Q "Débit";
  Real Tm "Température moyenne";
  Real Hm "Enthalpie spécifique moyenne";

public 
  PortPHQ1 C ;
equation 
  
  C.P = Pm;
  C.Q = Q;
  C.Hm = Hm;

  Pm = P0;
  Hm= H0;

  
  Tm = if (option_temperature <= 1) then T0 else Hm/4187 + 273.15;

end Puits;