コード例 #1
0
ファイル: M_BSTRES.CPP プロジェクト: ChrisMoreton/Test3
MN_BstRes::MN_BstRes(pTagObjClass pClass_, pchar TagIn, pTaggedObject pAttach, TagObjAttachment eAttach) :
    MdlNode(pClass_, TagIn, pAttach, eAttach),
    m_VLE(this, VLEF_QPFlash),
    m_EHX(this, EHXF_Inline),
    m_FEP(NULL, FBOpt_HasSimpleRes, 1.0),
    m_FTB(this, &m_FEP),
    m_LeakI(eDIO_Leak, this, true, false, "Inlet_Leak", IOId_2IOLeakI, IOId_AreaLeakI),
    m_LeakO(eDIO_Leak, this, true, false, "Outlet_Leak", IOId_2IOLeakO, IOId_AreaLeakO)
{

    bOnLine=1;
    bIsentropic=0;
    iPressMethod=BRPM_None;
    //dTempDrop=dNAN;
    dPressBoost_Rqd=0.0;
    dPout_Rqd=dNAN;
    dTout_Rqd=dNAN;
    dDuty_Rqd=0.0;

    dTout=Std_T; //actual
    dPout=Std_P; //actual
    dDuty=0.0; //actual

    AttachClassInfo(nc_MBst, NULL, &NullFlwGroup);

    InitAssocGrfShowPB(eAGS_Hide, eAGS_Hide, eAGS_Hide, eAGS_Show, eAGS_Show, eAGS_Show);
    InitAssocGrfShowDyn(eAGS_ShowEverUsed, eAGS_ShowEverUsed, eAGS_ShowEverUsed, eAGS_Show, eAGS_Show, eAGS_Show);

    m_FEP.SetFlowModeSrc(this, false);
}
コード例 #2
0
ファイル: BELTCNV.CPP プロジェクト: ChrisMoreton/Test3
BeltCnv::BeltCnv(pTagObjClass pClass_, pchar TagIn, pTaggedObject pAttach, TagObjAttachment eAttach) :
  MdlNode(pClass_, TagIn, pAttach, eAttach),
  m_Pwr("Supply", this, TOA_Embedded),
  m_BeltSB("PL_FwdRv", this, &m_Pwr),
  m_WtMtrPos(*(new CWtMtrPosArray)),
  m_Spill(eDIO_Spill, this, false, true, SpillIOTag, IOId_Spill2Area, IOId_AreaSpillI),
  m_Vent(eDIO_Vent, this, false, true, VentIOTag, IOId_Vent2Area, IOId_AreaVentI),
  m_AccIn(eDIO_Accum, this, false, true, AccumIOTag),
  m_AccOut(eDIO_Deplete, this, false, true, DepleteIOTag),
  m_AccCalc(this, m_AccIn, m_AccOut),
  m_Q("Belt", this, TOA_Embedded, &m_Spill, &m_Vent, &m_AccIn, &m_AccOut)
  {
  m_Pwr.Initialise("525v_A/C");
  AttachClassInfo(nc_Process, NULL);
  AttachIOAreas(BeltCnvIOAreaList);

  InitAssocGrfShowPB(eAGS_Hide, eAGS_Hide, eAGS_Hide, eAGS_Hide, eAGS_Hide);
  InitAssocGrfShowDyn(eAGS_ShowEverUsed, eAGS_ShowEverUsed, eAGS_Hide, eAGS_Show, eAGS_Show);

  m_MaxVelocity=1.0;
  m_MaxSpillLoading=100.0;
  m_MaxStallLoading=1000.0;
  m_MaxTurnDown=20;
  m_ProfPts=10;
  m_ProfDispType=QPT_MinSections;
  m_fShowProfile=False;
  m_MinLoading=0.001;
  m_fStartIfStalled=True;
  m_fWasRunning=False;

  m_NLPower=1.0;
  m_FLPower=10.0;
  m_Power=0.0;

  };
コード例 #3
0
ファイル: M_XFER.CPP プロジェクト: abcweizhuo/Test3
MN_Xfer::MN_Xfer(pTagObjClass pClass_, pchar TagIn, pTaggedObject pAttach, TagObjAttachment eAttach) :
  MdlNode(pClass_, TagIn, pAttach, eAttach),
  m_QFeed("QFeed", this),
  m_QProd("QProd", this),
  //m_Accumulator("Accumulator", this),
  m_RB(this, false),
  m_PCtrl0(PC_MinFd, Std_P, true),
  m_FTM(this),
  m_Leak(eDIO_Leak, this, true, false, "Leak", IOId_XferLeak, IOId_AreaLeakI),
  m_VLE(this, VLEF_QPFlash),
  m_EHX(this, EHXF_Node),
  m_Evap(this, false),
  m_BlkEval(this, BEO_WithMakeups|BEO_WithBleeds, &m_RB, NULL, &m_EHX, &m_VLE, &m_Evap)
  {
  AttachClassInfo(nc_MXfer,NULL);

  InitAssocGrfShowPB(eAGS_Hide, eAGS_Hide, eAGS_Hide, eAGS_Show, eAGS_Show, eAGS_Show);
  InitAssocGrfShowDyn(eAGS_Hide, eAGS_Hide, eAGS_Hide, eAGS_Show, eAGS_Show, eAGS_Show);

  m_QFeed().SetAccumsInUse(true);
  m_QProd().SetAccumsInUse(true);

  Joins.SetSize(1);
  m_NetworkIsolator=false;
  m_Accumulator=NULL;
  m_AccIn=NULL;
  m_AccOut=NULL;
  m_AccCalc=NULL;
  SetAllowedModes(false, NM_All|SM_Direct|SM_Inline|HM_All);
  //SetInlineIntegral(true);
  
  m_Leak.FEP.SetFlowModeSrc(this, false);
  };