pyts.phaseModels package

Submodules

pyts.phaseModels.api module

PyTurbSim turbulence ‘phase models’ API.

Available phase models

randPhase
A uniform-distribution random-phase model.

pyts.phaseModels.base module

This is the base module for phase models. Phase models produce the initial phase information that is then correlated in the stress and coherence models.

The basic phase model simply returns a ‘random’ array.

class pyts.phaseModels.base.phaseModelBase[source]

Bases: pyts.base.modelBase

pyts.phaseModels.main module

The main random phase models.

class pyts.phaseModels.main.randPhase[source]

Bases: pyts.phaseModels.base.phaseModelBase

This phase-model randomizes the phases uniformly and without any ‘phase coherence’ (correlation as a function of frequency).

Because it is so simple, it has no initialization parameters.

__call__(tsrun)[source]

Create and calculate the phases for the tsrun instance.

Parameters:

tsrun : tsrun

A TurbSim run object.

Returns:

out : array_like(3,n_p,n_f)

An array of random phases.

Module contents

This package defines the methods used to generate ‘random phases’ in PyTurbSim.