wolfhece.lagrangian.particle_system_ui
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
-
class wolfhece.lagrangian.particle_system_ui.Particle_system_to_draw(idx: str = '', plotted: bool = True, mapviewer=None, need_for_wx: bool = False)[source]
Bases: wolfhece.drawing_obj.Element_To_Draw
Base class of element to add into WolfMapViewer or another GUI
-
_ps[source]
-
_trace_size = 10[source]
-
fps = 60.0[source]
-
single_color = True[source]
-
peremitter_color = True[source]
-
_unique_color = (0.0, 0.0, 0.0, 1.0)[source]
-
_nb_colors_edited = 0[source]
-
_canbake = False[source]
-
_ui = None[source]
-
reset() → None[source]
Reset the object.
-
show_properties() → None[source]
Show the properties of the object.
-
_fill_default() → None[source]
Fill the default properties of the object.
-
_fill_properties() → None[source]
Fill the properties of the object.
-
update_properties() → None[source]
Update the properties of the object.
-
update_properties_destroy() → None[source]
Update the properties of the object.
-
property totaltime: float[source]
Return the total time.
-
property dt: float[source]
Return the time step.
-
property scheme: int[source]
Return the scheme.
-
get_domain(output_type: Literal['numpy', 'wolf'] = 'wolf') → numpy.ndarray | wolfhece.wolf_array.WolfArray[source]
Return the domain as Numpy array or WolfArray to put in the UI.
-
set_domain(value: numpy.ndarray | wolfhece.wolf_array.WolfArray) → None[source]
Set the domain.
-
get_u(output_type: Literal['numpy', 'wolf'] = 'wolf') → numpy.ndarray | wolfhece.wolf_array.WolfArray[source]
Return the u as Numpy array or WolfArray to put in the UI.
-
get_v(output_type: Literal['numpy', 'wolf'] = 'wolf') → numpy.ndarray | wolfhece.wolf_array.WolfArray[source]
Return the v as Numpy array or WolfArray to put in the UI.
-
get_uv(output_type: Literal['numpy', 'wolf'] = 'wolf') → tuple[numpy.ndarray] | tuple[wolfhece.wolf_array.WolfArray][source]
Return the uv as Numpy array or WolfArray to put in the UI.
-
get_uv_absolute(output_type: Literal['numpy', 'wolf'] = 'wolf') → numpy.ndarray | wolfhece.wolf_array.WolfArray[source]
-
set_uv(value: tuple[numpy.ndarray] | tuple[wolfhece.wolf_array.WolfArray], header: tuple[float] = (0.0, 0.0, 1.0, 1.0), time: float = 0.0) → None[source]
Set the uv.
-
get_emitters(output_type: Literal['shapely', 'wolf'] = 'wolf') → list[wolfhece.lagrangian.emitter.Emitter] | wolfhece.PyVertexvectors.Zones[source]
Return the emitters as Shapely array or Zones to put in the UI.
-
set_emitters(value: list[wolfhece.lagrangian.emitter.Emitter] | wolfhece.PyVertexvectors.Zones) → None[source]
Set the emitters.
-
set_emitter(value: wolfhece.PyVertexvectors.vector) → None[source]
Add an emitter.
-
get_times_vf() → list[float][source]
Get the times for velocity fields.
-
set_times_vf(times: list[float])[source]
Set the times for velocity fields.
-
get_times()[source]
Get the times.
-
property blend: bool[source]
Return the blend status.
-
property colors: list[tuple[float, int, tuple[float]]][source]
colors of particles
-
property nb_steps: int[source]
Return the number of steps.
-
property timestep: float[source]
Return the timestep.
-
property trace_size: int[source]
Return the trace size.
-
property ps: wolfhece.lagrangian.particle_system.Particle_system[source]
-
property keys: list[float][source]
Return the keys of the particles.
-
property current_step: float[source]
Return the current step.
-
property current_step_idx: int[source]
Return the current step index.
-
property list_to_plot: list[float][source]
Return the list of keys to plot.
-
load(f: str) → None[source]
Load the particles from file.
-
save(f: str = '') → None[source]
Save the particles to file.
-
plot(sx=None, sy=None, xmin=None, ymin=None, xmax=None, ymax=None, size=None)[source]
Plot data in OpenGL context
-
next_step()[source]
Go to next step.
-
previous_step()[source]
Go to previous step.
-
property bounds: tuple[float][source]
Return the bounds of the object.
-
find_minmax(update=False)[source]
Generic function to find min and max spatial extent in data
-
check()[source]
Check the object validity
-
bake() → tuple[bool, str][source]
Bake the object