Layer

class freshkiss3d.Layer
Parameters
  • NL (int) – Number of layers

  • triangular_mesh (freshkiss3d.mesh.TriangularMesh) –

  • topography (float or array float [NC]) – Elevation values defined on mesh cells (default: None) Note: if set to double, same topography is set for all cells

  • topography_funct (function(x,y)) – Elevation values defined by function (default: None)

NL

Number of layers

Type

int

layer_proportion

layer_proportion * NL = 1

Type

float

topography

vector of topography elevation values

Type

array, float [NC]

z_interface
Type

array, float [NC,NL]

compute_z_layer()

For test purpose.

Note: Allocate big array dynamically, so usefull only for writting tests on small mesh.

return z_layer of shape[NC,NL]

Examples using freshkiss3d.Layer

Riemann problem 2d

Riemann problem 2d

Riemann problem 2d
Water drop

Water drop

Water drop
Dam break

Dam break

Dam break
Canal

Canal

Canal
Thacker 2d

Thacker 2d

Thacker 2d
Height source

Height source

Height source
Bump

Bump

Bump
Thacker

Thacker

Thacker
Tracer source

Tracer source

Tracer source
Vertical flowrate

Vertical flowrate

Vertical flowrate
River

River

River
Wind effect

Wind effect

Wind effect
Stationnary vortex

Stationnary vortex

Stationnary vortex
Topography source

Topography source

Topography source
Bump mesh convergence

Bump mesh convergence

Bump mesh convergence
Thacker2d mesh convergence

Thacker2d mesh convergence

Thacker2d mesh convergence
Thacker3d mesh convergence

Thacker3d mesh convergence

Thacker3d mesh convergence
Restart

Restart

Restart
Batch

Batch

Batch
Post-processing with Matplotlib

Post-processing with Matplotlib

Post-processing with Matplotlib
Initialization

Initialization

Initialization