WVNonlinearFluxOperation
Computes the nonlinear flux for a WVTransform
Declaration
classdef WVNonlinearFluxOperation < WVOperationOverview
A WVNonlinearFluxOperation defines how energy moves between the wave-vortex coefficients—these are the nonlinear terms in the equations of motion, transformed into wave-vortex space. The most basic implementation is a freely evolving, unforced (and undamped) flux. Subclasses of WVNonlinearFluxOperation can implement custom forcing and damping.
A WVTransform is always initialized with a default nonlinear flux operation, but it can be overridden with,
wvt.nonlinearFluxOperation = SomeNewNonlinearFluxOperation();
It is very likely you will want to use a custom nonlinear flux operation when integrating a model. In that case you would call,
model = WVModel(wvt,nonlinearFlux=SomeNewNonlinearFluxOperation())
When creating a subclass of WVNonlinearFluxOperation, there are several important notes:
- The output variables must be at least one of {Fp,Fm,F0}, in that
order. The properties
doesFluxApetc. should be appropriately set to match the output. - You may also optionally output additional variables that are computed as a by product of your flux calculation. Those variables will then be cached, and will not have to be recomputed when needed.
Topics
- Initialization
WVNonlinearFluxOperationcreate a new nonlinear flux operationnonlinearFluxFromFileinitialize a nonlinear flux operation from NetCDF filenonlinearFluxWithResolutionOfTransformcreate a new nonlinear flux operation with double the resolution
- Properties
doesFluxA0boolean indicating whether or not this operation returns F0doesFluxAmboolean indicating whether or not this operation returns FmdoesFluxApboolean indicating whether or not this operation returns Fp
- Equality
isequalcheck for equality with another nonlinear flux operation
- Write to file
writeToFilewrite information about the nonlinear flux operation to file