Ejercicio Lattice Rectangular 2D

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 7

1.

0 Example Creation of a Two Dimensional Rectangular Lattice


In this example, a rectangular lattice will be placed in a sphere. The lattice elements will be filled with
cylinders whose radius is slightly smaller than the size of the lattice.

Figure 1-1 Creating a Rectangular Lattice
Start the Visual Editor.
Create the Bounding Surface
On the Main Menu, Click on Surface.
The default surface is a sphere at the origin. This is the desired surface type. Type 80 in the radius box to
create a surface of radius 80.
On the Surface Panel, Click Register.
Close the Surface Panel.
On the Main Menu, Click on Cell.

Figure 1-2 Creating the Outer world.
On the Left Plot Window, drag across the surface as indicated by the dashed line in Figure 1-2.
On the Left Plot Window, click outside the sphere to establish the point. This will determine the sense for the
surface for that cell.
On the Cell Panel, Click Paste.
On the Cell Panel, Click Register.
Similarly, drag (again) across the surface as indicated by the dashed line in Figure 1-2.
On the Left Plot Window, click INSIDE the sphere to establish the point.
On the Cell Panel, Click Paste.
The inside of the sphere will hold the lattice. The lattice will be Universe = 1. For the inside of the sphere to
hold the lattice, it must be given a fill of one.
On the Cell Panel, type 1 in the Fill text box.
On the Cell Panel, Click Register.

Figure 1-3 Creating a Lattice Cell.
Create the Third Cell that will Hold the Lattice
Type 1 in the Universe text box.
Choose Rectangular Lattice as indicated in Figure 1-3.

Figure 1-4 Choose a 2D Lattice in X and Y
Choose a 2D Lattice with rows in the X direction and columns in the Y direction.
Type 0 in the x location box.
Type 0 in the y location box. This will set the center of the center element at the origin.
Choose Next from the menu at the top of the Rectangular Lattice Panel.

Figure 1-5 Lattice Parameters
Type 30 for the Horizontal Pitch. This will define the number of centimeters from the center of one element
to the center of the next.
Type 30 for the Vertical Pitch.
Type 6 for Horizontal Rows.
Type 6 for Vertical Rows.
Click the Select Universe button to select all lattice entries with a zero universe. In this case, that is all the
lattice entries.
In the CHANGE THE UNIVERSE VALUE HERE text box, type 2. This will fill the lattice with universe 2
which has not been created yet.
On the Cell Lattice Panel, Click Register.
Close the Cell Lattice Panel if it does not close automatically.

Figure 1-6 Create the Surface for Universe 2
On the Main Menu, Click SurfaceCylindercz.
In the radius box, type 13.
On the Surface Panel, click Register.
Close the Surface Panel.

Figure 1-7 Create the inside of the sphere for Universe 2.
Create the cell that is the INSIDE of the cylinder.
On the Main Menu, Click on Cell.
On the Left Plot Window, drag across the surface of the cylinder as indicated in Figure 1-7.
Click INSIDE the cylindrical surface to set the point that will determine the sense of the cylindrical surface is
inside the cylinder.
On the Cell Panel, in the Universe box, type 2. This will add this cells definition to universe 2.
On the Cell Panel, Click on Paste.
On the Cell Panel, Click on Register.
Create the cell that is the OUTSIDE of the cylinder.
On the Left Plot Window, drag across the surface of the cylinder as indicated in Figure 1-7.
Click INSIDE the cylindrical surface to set the point that will determine the sense of the cylindrical surface is
inside the cylinder.
On the Cell Panel, in the Universe box, type 2. This will add this cells definition to universe 2.
On the Cell Panel, Click on Cut. (Note that this is Cut and not Paste) This essentially creates an outside world
for universe 2. The cell will be cut off at the boundaries of the lattice.
On the Cell Panel, Click on Register.

Figure 1-8 Resulting File
Figure 1-8 shows the result.
The input file is below:
c Created on: Monday, October 23, 2006 at 19:16
1 0 1
2 0 -1 fill=1
3 0 -2 3 -4 5 u=1 lat=1
fill=-2:3 -2:3 0:0
2 2 2 2 2 2 $ROW 1
2 2 2 2 2 2 $ROW 2
2 2 2 2 2 2 $ROW 3
2 2 2 2 2 2 $ROW 4
2 2 2 2 2 2 $ROW 5
2 2 2 2 2 2 $ROW 6
4 0 -6 u=2
5 0 6 u=2

1 so 80
2 px 15
3 px -15
4 py 15
5 py -15
6 cz 13

You might also like