Exemplo n.º 1
0
        public Bed()
        {
            chamberType = ChamberType.Bed;

            deltaR = Parameters.deltaR_bed;
            deltaZ = Parameters.deltaZ_bed;

            numOfRNodes_fluid      = Parameters.numOfRNodes_bedFluid;
            numOfRNodes_tubeWall   = Parameters.numOfRNodes_bedTubeWall;
            numOfRNodes_adsorbent  = Parameters.numOfRNodes_adsorbent;
            numOfRNodes_void       = Parameters.numOfRNodes_bedVoid;
            numOfZNodes_excessTube = Parameters.numOfZNodes_bedExcessTube;
            numOfZNodes_fin        = Parameters.numOfZNodes_fin;
            numOfZNodes_adsorbent  = Parameters.numOfZNodes_adsorbent;
            numOfTubeSection       = Parameters.numOfTubeSection;

            numOfRNodes = numOfRNodes_fluid + numOfRNodes_tubeWall + numOfRNodes_adsorbent + numOfRNodes_void;
            numOfZNodes = (numOfZNodes_fin + numOfZNodes_adsorbent) * numOfTubeSection + numOfZNodes_fin + 2 * numOfZNodes_excessTube;

            fluid       = Parameters.bedFluid;
            tube        = Parameters.bedTube;
            adsorbent   = Parameters.adsorbent;
            adsorbate   = Parameters.adsorbate;
            workingPair = Parameters.workingPair;

            T   = new TNodes[numOfRNodes, numOfZNodes];
            Rho = new RhoNodes[numOfRNodes, numOfZNodes];
            for (int r = 0; r < numOfRNodes; r++)
            {
                for (int z = 0; z < numOfZNodes; z++)
                {
                    T[r, z]   = new TNodes();
                    Rho[r, z] = new RhoNodes();
                }
            }

            averagePressure = Parameters.P0_bed;
            fluidVelocity   = Parameters.fluidVelocity_bed;
            assignMaterials(this);
            calculateRadius();
            calculateVolume();
            calculateVoidVolume();
            calculateExcessTubeOuterSurfaceArea(this);
            calculateVoidOuterSurfaceArea();
            calculateAdsorbentMass();

            bedTemperaturePDE = new BedTemperaturePDE(this);
            bedDensityPDE     = new BedDensityPDE(this);
        }
Exemplo n.º 2
0
        public Evaporator()
        {
            chamberType = ChamberType.Evaporator;

            deltaR = Parameters.deltaR_eva;
            deltaZ = Parameters.deltaZ_eva;

            numOfRNodes_fluid    = Parameters.numOfRNodes_evaFluid;
            numOfRNodes_tubeWall = Parameters.numOfRNodes_evaTubeWall;
            numOfRNodes_void     = Parameters.numOfRNodes_evaVoid;

            numOfRNodes = numOfRNodes_fluid + numOfRNodes_tubeWall + numOfRNodes_void;
            numOfZNodes = Parameters.numOfZNodes_eva;

            fluid     = Parameters.evaFluid;
            tube      = Parameters.evaTube;
            adsorbate = Parameters.adsorbate;

            T   = new TNodes[numOfRNodes, numOfZNodes];
            Rho = new RhoNodes[numOfRNodes, numOfZNodes];
            for (int r = 0; r < numOfRNodes; r++)
            {
                for (int z = 0; z < numOfZNodes; z++)
                {
                    T[r, z]   = new TNodes();
                    Rho[r, z] = new RhoNodes();
                }
            }

            averagePressure = Parameters.P0_eva;
            fluidVelocity   = Parameters.fluidVelocity_eva;
            assignMaterials();
            calculateRadius();
            calculateVolume();
            calculateVoidVolume();
            calculateTubeOuterSurfaceArea();
            calculateVoidOuterSurfaceArea();

            evaTemperaturePDE = new EvaTemperaturePDE(this);
            evaDensityPDE     = new EvaDensityPDE(this);
        }