Complex Geometry

Classes:

GeomBoundary(quantity, times, n_t)

Boundary data of a specific quantity for all geoms in the simulation.

Geometry(file_path, texture_mapping, ...[, ...])

Obstruction defined as a complex geometry.

class fdsreader.geom.geometry.GeomBoundary(quantity: Quantity, times: ndarray, n_t: int)[source]

Boundary data of a specific quantity for all geoms in the simulation.

Variables:
  • quantity – Quantity object containing information about the quantity calculated for geoms.

  • times – Numpy array containing all times for which data has been recorded.

  • n_t – Total number of time steps for which output data has been written.

  • lower_bounds – Dictionary with lower bounds for each timestep per mesh.

  • upper_bounds – Dictionary with upper bounds for each timestep per mesh.

Attributes:

data

Returns a global array of the loaded data for the quantity with data from all meshes.

faces

Returns a global array of the faces from all meshes.

vertices

Returns a global array of the vertices from all meshes.

vmax

Maximum value of all faces at any time.

vmin

Minimum value of all faces at any time.

property data: ndarray

Returns a global array of the loaded data for the quantity with data from all meshes.

property faces: ndarray

Returns a global array of the faces from all meshes.

property vertices: Iterable

Returns a global array of the vertices from all meshes.

property vmax: float

Maximum value of all faces at any time.

property vmin: float

Minimum value of all faces at any time.

class fdsreader.geom.geometry.Geometry(file_path: str, texture_mapping: str, texture_origin: Tuple[float, float, float], is_terrain: bool, rgb: Tuple[int, int, int], surface: Surface = None)[source]

Obstruction defined as a complex geometry.

Variables:
  • file_path – Path to the .ge file that defines the geom.

  • texture_map – Path to the texture map of the geometry.

  • texture_origin – Origin position of the texture provided by the surface.

  • is_terrain – Indicates whether the geometry is a regular complex geom or terrain geometry.

  • rgb – Color of the geometry in form of a 3-element tuple.

  • surface – Surface object used for the geometry.

Collection of GeomBoundary objects. Offers extensive functionality for filtering and using geometry data.