Package gov.nist.microanalysis.NISTMonte

Examples of gov.nist.microanalysis.NISTMonte.IMaterialScatterModel


            double[] point = Math2.ORIGIN_3D;

            Element layersElement = geometryElement.getChild("layers");

            int materialIndex;
            IMaterialScatterModel material;
            double thickness;
            int layerIndex = 0;
            for (Element layerElement : layersElement.getChildren()) {
                try {
                    materialIndex =
                            layerElement.getAttribute("material").getIntValue();
                    thickness =
                            layerElement.getAttribute("thickness")
                                    .getDoubleValue();
                } catch (DataConversionException e) {
                    throw new IOException(e);
                }
                material = materials.get(materialIndex);

                shape =
                        MultiPlaneShape
                                .createFilm(normal, point, thickness);
                new IndexedRegion(chamber, material, shape, ++layerIndex);

                // Calculate next point
                point =
                        Math2.minus(point,
                                Math2.multiply(thickness, Math2.Z_AXIS));
            }

            // Substrate
            Element substrateElement = geometryElement.getChild("substrate");
            if (substrateElement != null) {
                int substrateMaterialIndex;
                try {
                    substrateMaterialIndex =
                            substrateElement.getAttribute("material")
                                    .getIntValue();
                } catch (DataConversionException e) {
                    throw new IOException(e);
                }

                IMaterialScatterModel substrateMaterial =
                        materials.get(substrateMaterialIndex);

                thickness = 0.1; // 10 cm
                shape = MultiPlaneShape.createFilm(normal, point, thickness);
                new IndexedRegion(chamber, substrateMaterial, shape,
View Full Code Here


            // Layers
            Element layersElement = geometryElement.getChild("layers");

            int materialIndex;
            IMaterialScatterModel material;
            double thickness;
            for (Element layerElement : layersElement.getChildren()) {
                try {
                    materialIndex =
                            layerElement.getAttribute("material").getIntValue();
View Full Code Here

        Region chamber = mcss.getChamber();

        assertEquals(1, chamber.getSubRegions().size());
        RegionBase region = chamber.getSubRegions().get(0);

        IMaterialScatterModel model = region.getScatterModel();
        assertEquals(1234, FromSI.eV(model.getMinEforTracking()), 1e-4);

        Material mat = region.getMaterial();
        assertEquals("Si3N4", mat.getName());
        assertEquals(3.44, mat.getDensity(), 1e-2);
        assertEquals(2, mat.getElementSet().size());
View Full Code Here

TOP

Related Classes of gov.nist.microanalysis.NISTMonte.IMaterialScatterModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.