voxcity.simulator_gpu.domain.Surfaces

class voxcity.simulator_gpu.domain.Surfaces(max_surfaces: int)

Collection of surface elements for radiation calculations.

Each surface has: - Position (grid indices i, j, k) - Direction (normal direction index) - Area - Albedo (reflectivity)

max_surfaces
n_surfaces
position
direction
center
normal
area
albedo
sw_in_direct
sw_in_diffuse
sw_out
svf
svf_urban
shadow
shadow_factor
canopy_transmissivity
add_surface(i: taichi.i32, j: taichi.i32, k: taichi.i32, direction: taichi.i32, center: voxcity.simulator_gpu.solar.core.Point3, normal: voxcity.simulator_gpu.solar.core.Vector3, area: taichi.f32, albedo: taichi.f32 = 0.2) taichi.i32

Add a surface and return its index.

property count: int

Get current number of surfaces.

get_count() int

Get current number of surfaces (alias for count property).

reset_fluxes()

Reset all radiation fluxes to zero.