Руководство пользователя модуля РАТЕГ, страница 26

 Signal_ON= "UIF<0",  Signal_OFF="UIF>0",

#----------------------------------------------------------

#            СЧЕТЧИК ОТКРЫТИЙ И ЗАКРЫТИЙ КЛАПАНА

#----------------------------------------------------------

&TRANSDUCER Name= "FL_Y", Comment= "Флажки_открытого_клапана",

 Accumulation= 0, TimeDependence=0, ControlParameterType=4,

 Expression="CSA_VAL>1.e-6",

&TRANSDUCER Name= "FL_YP", Comment= "Флажки_открытого_клапана", Accumulation=-1,

 TimeDependence=0, ControlParameterType=4, Expression="CSA_VAL>1.e-6",

&TRANSDUCER Name= "TN_VAL_OPEN", Comment="Счетчик_числа_полных_открытий_клапана",

 TimeDependence=1, ControlParameterType=4,

 Expression="TN_VAL_OPEN+ORD((FL_YP.EOR.FL_Y).AND.FL_Y)",

&TRANSDUCER  Name= "TN_VAL_CLOSE", Comment="Счетчик_числа_полных_закрытий_клапана",

 TimeDependence=1, ControlParameterType=4,

 Expression="TN_VAL_CLOSE+ORD((FL_YP.EOR.FL_Y).AND.FL_YP)",

&END

Пример №2

#----------------------------------------------------------

# Test with Valve:

# Valve with TRIP_ONE

#----------------------------------------------------------

&GENERAL RestartFileNumber=0, FinishTime= 100.,

&STEP InitialStep=0.01, MinStep=1.e-6, MaxStep=0.01, ExactFinish=1,

&OUTPUT OutputFrequency=200, PrintGeneration=3,200.,0,0,

 WriteRestartFile= 3,200.,0,0, TimeBufferSize=100, TimeDepStep=0.1,

&COOLANT  P=70.e5, T_F=545., T_G=0., V_F=0., V_G=0., AL_G=0., Min_AL=1.e-6,

#----------------------------------------------------------

&BOUNDARY  Name="WALL", Type=0,

&BOUNDARY  Name="OUTPUT", Type=7, P=2.e5,

&CHANNEL  Name= "CHAN1", Multiplicity= 1, Connect1_Boundary= "WALL",

 Connect2_Boundary= "OUTPUT", NodeNumber=5, D=0.1, Length=10., SinInclination=0.,

 Scallops=1.e-5,

 &CHOKING_SECTION

  Distance= 10., Length= 0.05, D= 0.004, Inlet= 0,

 &VALVE

  Name="VAL", Distance=10., ValveType=2,

  A=2.545e-4, A_0=0.0, DirectResistance=5., InverseResistance=5.,

  TRIP_OPEN="VAL_OPEN", TRIP_CLOSE="VAL_CLOSE", dt_Open= 20., dt_Close= 10.,

#----------------------------------------------------------

&TRANSDUCER  Name="TIME", Comment="Время,с", InitialValue=0, ControlParameterType=3,

 ControlParameter="TIME",

&TRANSDUCER

 Name= "CSA_VAL", Comment= "Проходное_сечение_клапана,м2",

 TimeDependence=1, ControlParameterType=1, Channel="CHAN1", Distance=10.,

 ControlParameter="A",

&TRANSDUCER  Name="P_CHAN1", Comment="Давление_в_канале,Па",

 TimeDependence=1, ControlParameterType=1, Channel="CHAN1", Distance=9.,

ControlParameter="P",

#----------------------------------------------------------

#          УСЛОВИЯ ОТКРЫТИЯ И ЗАКРЫТИЯ КЛАПАНА

#----------------------------------------------------------

&TRIP_ONE  Name="VAL_OPEN", Comment="Условие_на_открытие_клапана",

 TimeDependence=0, Print=4, Stopped=0,

 Signal="((TIME>10.).AND.(P_CHAN1>52.e5)).OR.((P_CHAN1<30.e5).AND.(P_CHAN1>10.e5))",

&TRIP_ONE Name="VAL_CLOSE", Comment="Условие_на_закрытие_клапана", TimeDependence=0,

 Print=4, Stopped=0, Signal="(TIME>80.).AND.(.NOT.VAL_OPEN)",

&END



Пример №3

#----------------------------------------------------------

# Test with Valve:

# Cross Area as Function of Stock Position

#----------------------------------------------------------

&GENERAL  RestartFileNumber=0, FinishTime= 100.,

&STEP InitialStep=0.01, MinStep=1.e-6, MaxStep=0.01, ExactFinish=1,

&OUTPUT  OutputFrequency=200, PrintGeneration=3,200.,0,0,

 WriteRestartFile= 3,200.,0,0, TimeBufferSize=100, TimeDepStep=0.1,

&COOLANT P=70.e5, T_F=545., T_G=0., V_F=0., V_G=0., AL_G=0., Min_AL=1.e-6,

#----------------------------------------------------------

&BOUNDARY  Name="WALL", Type=0,

&BOUNDARY  Name="OUTPUT", Type=7, P=1.e5,

&CHANNEL  Name= "CHAN1", Multiplicity= 1,

 Connect1_Boundary= "WALL", Connect2_Boundary= "OUTPUT",

 NodeNumber=5, D=0.1, Length=10., SinInclination=0., Scallops=1.e-5,

 &CHOKING_SECTION

  Distance= 10., Length= 0.05, D= 0.004, Inlet= 0,

 &VALVE

  Name="VAL", Distance=10., ValveType=2,  PlungerTable="VAL_STOCK",

   Plunger_0=0.0, DirectResistance=5., InverseResistance=5.,

  TRIP_OPEN="VAL_OPEN", TRIP_CLOSE="VAL_CLOSE", dt_Open= 16., dt_Close= 16.,

# ArgMulty = 1./dt_Open, FuncMulty = Valve Cross Area [m2]

&TABLE

 Name="VAL_STOCK", ArgMulty=1./16., FuncMulty= 2.545e-4, Arg=0, TableFunction=

#  Time[s]  Area[Relative units]

     0.,     0.00,

     0.5,    0.00,

     2.75,   0.06,

     5.,     0.20,

    11.,     0.80,

    13.25,   0.94,

    15.5,    1.00,

    16.,     1.00,

#----------------------------------------------------------

&TRANSDUCER  Name="TIME", Comment="Время,с", InitialValue=0.1,

 ControlParameterType=3, ControlParameter="TIME",

&TRANSDUCER Name="CSA_VAL", Comment="Проходное_сечение_клапана,м2",

 TimeDependence=1, ControlParameterType=1, Channel="CHAN1", Distance=10.,

 ControlParameter="A",

&TRANSDUCER  Name="P_CHAN1", Comment="Давление_в_канале,Па",

 TimeDependence=1, ControlParameterType=1, Channel="CHAN1",

 Distance=9., ControlParameter="P",