Bases: penelopetools.api.input.pengeom.usergeometry._UserGeometry
Creates a new GrainBoundaries geometry. A grain boundaries is defined by vertical layers of different thicknesses. The surfaces and modules of the geometry are automatically generated when the build is called. The surfaces and modules arguments are therefore optional.
The value of the depth is 3.0 cm. Unless specified, the diameter is automatically generated from the thickness of the vertical layers. By default, no rotation and no shift is imposed on the geometry.
Parameters: |
|
---|
Build the surfaces and modules of the geometry according to the information stored.
Vertical layers of the grain-boundaries. The layers can be added and removed from this attribute.
Returns a HTML representation of this option.
Returns a XML representation of this geometry.
Bases: penelopetools.api.input.penelope.hook.Hook
Bases: penelopetools.api.input.penelope.hook.Hook
Creates default photon detectors for a GrainBoundaries geometry. Detectors with an polar opening of 2 to 20 degrees are created from a specified take-off angle. The azimuthal opening is 60 deg. Detectors are positioned to be perpendicular and parallel to the boundaries.
Parameters: |
|
---|
Bases: penelopetools.api.input.pengeom.usergeometry.util._Layers
Creates a new VerticalLayers to store the layers definition of a GrainBoundaries geometry. The class is a list of Layer.
For this geometry, there is a substrate layer on the left and right of the other layers. By definition, these layers must have an infinite thickness. They cannot be deleted, can only be modified by another layer with an infinite thickness.
Parameters: |
---|
Asserts that no new layer should have an infinite thickness.
Asserts that no layer can be added after the left or right substrate.
Asserts that the left or right substrate layer cannot be deleted.
Asserts that the left or right substrate layer can only be updated by a layer with an infinite thickness. Asserts also that no other layer should have an infinite thickness except the substrate layer.
Creates a VerticalLayers from a XML element.
Parameters: | element – XML element |
---|