artist.field.tower_target_areas

Attributes

log

A logger for the tower target areas.

Classes

TowerTargetAreas

Initialize the target area array.

Module Contents

artist.field.tower_target_areas.log

A logger for the tower target areas.

class artist.field.tower_target_areas.TowerTargetAreas(names: list[str], geometries: list[str], centers: torch.Tensor, normal_vectors: torch.Tensor, dimensions: torch.Tensor, curvatures: torch.Tensor)

Initialize the target area array.

A target area array consists of one or more target areas that are positioned on the solar tower, in front of the heliostats. The target area array is provided with a list of target areas to initialize the target areas.

Parameters

nameslist[str]

The names of each target area.

geometrieslist[str]

The type of geometry of each target area.

centerstorch.Tensor

The center point coordinate of each target area. Tensor of shape [number_of_target_areas, 4].

normal_vectorstorch.Tensor

The normal vector of each target area. Tensor of shape [number_of_target_areas, 4].

dimensionstorch.Tensor

The dimensions of each target area (width, then height). Tensor of shape [number_of_target_areas, 2].

curvaturestorch.Tensor

The curvature of the target area in 2 dimensions (0.0 if not applicable). Tensor of shape [number_of_target_areas, 2].

names
geometries
centers
normal_vectors
dimensions
curvatures
number_of_target_areas
classmethod from_hdf5(config_file: h5py.File, device: torch.device | None = None) typing_extensions.Self

Load all target areas from an HDF5 file.

Parameters

config_fileh5py.File

The HDF5 file containing the configuration to be loaded.

devicetorch.device | None

The device on which to perform computations or load tensors and models (default is None). If None, ARTIST will automatically select the most appropriate device (CUDA or CPU) based on availability and OS.

Returns

TowerTargetAreas

The target areas loaded from the HDF5 file.