wolfhece.lagrangian.example_domain

Author: HECE - University of Liege, Pierre Archambeau Date: 2024

Copyright (c) 2024 University of Liege. All rights reserved.

This script and its content are protected by copyright law. Unauthorized copying or distribution of this file, via any medium, is strictly prohibited.

Module Contents

wolfhece.lagrangian.example_domain.circle_velocity_field(size: int = 201, oxoy: tuple[float] = (0.0, 0.0), dxdy: tuple[float] = (1.0, 1.0), nb_particles: int = 100, t_total: float = 'one round') tuple[wolfhece.lagrangian.particle_system.Particle_system, float][source]

Create a circle velocity field.

Parameters:

size – Size of the velocity field. (odd int)

wolfhece.lagrangian.example_domain.labyrinth(filename: str = 'docs\\source\\_static\\examples\\labyrinth\\lab_uv.npz', nb_particles: int = 100, every: float = 100.0) tuple[wolfhece.lagrangian.particle_system.Particle_system, float][source]

Load a labyrinth velocity field from file.

the file must contain:
  • u: x velocity component - np.ndarray - float64

  • v: y velocity component - np.ndarray - float64

  • domain: array containing the domain - np.ndarray - int8

u, v, domain must have the same shape Inlet is located in the first line of the array