Package gov.nist.microanalysis.NISTMonte.MonteCarloSS

Examples of gov.nist.microanalysis.NISTMonte.MonteCarloSS.Shape


        mcss = new MonteCarloSS();
        mcss.setBeamEnergy(ToSI.keV(20.0));
        mcss.setElectronGun(new GaussianBeam(10e-9));

        Material mat = MaterialFactory.createPureElement(Element.Si);
        Shape shape =
                MultiPlaneShape.createSubstrate(new double[] { 0, 0, -1 },
                        new double[] { 0, 0, 0 });
        mcss.addSubRegion(mcss.getChamber(), mat, shape);

        listener = new TimeListener(mcss);
View Full Code Here


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

        Shape shape = region.getShape();
        assertFalse(shape.contains(new double[] { 0.0, 0.0, 0.01 })); // above
        assertTrue(shape.contains(new double[] { 0.0, 0.0, -25e-9 })); // in
        assertFalse(shape.contains(new double[] { 0.0, 0.0, -0.01 })); // below

        // Test layer 2
        region = chamber.getSubRegions().get(1);

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

        mat = region.getMaterial();
        assertEquals("Al2O3", mat.getName());
        assertEquals(4.53, mat.getDensity(), 1e-2);
        assertEquals(2, mat.getElementSet().size());

        shape = region.getShape();
        assertFalse(shape.contains(new double[] { 0.0, 0.0, -25e-9 })); // above
        assertTrue(shape.contains(new double[] { 0.0, 0.0, -125e-9 })); // in
        assertFalse(shape.contains(new double[] { 0.0, 0.0, -0.01 })); // below

        // Test substrate
        region = chamber.getSubRegions().get(2);

        model = region.getScatterModel();
View Full Code Here

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

        Shape shape = region.getShape();
        assertFalse(shape.contains(new double[] { 0.0, 0.0, 0.01 })); // above
        assertTrue(shape.contains(new double[] { -80e-9, 0.0, -50e-8 })); // in
        assertFalse(shape.contains(new double[] { 0.0, 0.0, -50e-8 })); // right

        // Test layer
        region = chamber.getSubRegions().get(1);

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

        mat = region.getMaterial();
        assertEquals("Al2O3", mat.getName());
        assertEquals(4.53, mat.getDensity(), 1e-2);
        assertEquals(2, mat.getElementSet().size());

        shape = region.getShape();
        assertFalse(shape.contains(new double[] { 0.0, 0.0, 0.01 })); // above
        assertFalse(shape.contains(new double[] { -80e-9, 0.0, -50e-8 })); // left
        assertTrue(shape.contains(new double[] { 0.0, 0.0, -50e-8 })); // in
        assertFalse(shape.contains(new double[] { 80e-9, 0.0, -50e-8 })); // right

        // Test right substrate
        region = chamber.getSubRegions().get(2);

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

        mat = region.getMaterial();
        assertEquals("Pure gold", mat.getName());
        assertEquals(19300, mat.getDensity(), 1e-2);
        assertEquals(1, mat.getElementSet().size());

        shape = region.getShape();
        assertFalse(shape.contains(new double[] { 0.0, 0.0, 0.01 })); // above
        assertTrue(shape.contains(new double[] { 80e-9, 0.0, -50e-8 })); // in
        assertFalse(shape.contains(new double[] { 0.0, 0.0, -50e-8 })); // left
    }
View Full Code Here

            }

            // Create shapes
            double[] normal = Math2.MINUS_Z_AXIS;
            double[] center = Math2.ORIGIN_3D;
            Shape sphere = new Sphere(center, radius);
            Shape upPlane = MultiPlaneShape.createSubstrate(normal, center);
            Shape inclusionShape = new ShapeDifference(sphere, upPlane);

            normal = Math2.Z_AXIS;
            Shape downPlane = MultiPlaneShape.createSubstrate(normal, center);
            Shape substrateShape =
                    new ShapeDifference(downPlane, sphere);

            // Add shape to chamber
            new IndexedRegion(chamber, substrateMaterial, substrateShape, 1);
            new IndexedRegion(chamber, inclusionMaterial, inclusionShape, 2);
View Full Code Here

TOP

Related Classes of gov.nist.microanalysis.NISTMonte.MonteCarloSS.Shape

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.