Lagrangian

class freshkiss3d.Lagrangian

Lagrangian particle tracking class.

Parameters
  • positions (float [nparticles, 3]) – x, y, z: particle coordonates

  • triangular_mesh (freshkiss3d.mesh.TriangularMesh) – Simulation’s triangular mesh

  • layer (freshkiss3d.Layer) – Vertical discretization

  • primitives (freshkiss3d.Primitive) – Primitives

  • time_order (int) – Order of time discretization (default: 3)

  • scheduler (freshkiss3d.Scheduler) – Writting VTK solution scheduler.

nparticles

Number of particles

Type

int

positions

x, y, z: particle coordonates

Type

float [nparticles, 3]

velocities

Ux, Uy, Uz: particle velocities

Type

float [nparticles, 3]

triangles

Index for 2d triangles containing particles

Type

int [nparticles]

layers

Lower layer index of cell containing particles

Type

int [nparticles]

update()

Updates particles position.