types module
Define some types to clarify inputs and ouptuts.
- Pos1D
Describes a 1D position.
- PosAnyDim = float | tuple[float, float] | tuple[float, float, float]
Describes a generic position, in any number of dimensions.
- FieldFuncComponent
Takes in a position, returns the field spatial component at this position.
alias of
Callable[[float|tuple[float,float] |tuple[float,float,float]],float]
- FieldFuncComponent1D
Takes in a 1D position, returns the field spatial component at this position.
- FieldFuncTimedComponent
Takes in a position and a phase, returns the field component at this phase and position.
alias of
Callable[[float|tuple[float,float] |tuple[float,float,float],float],float]
- FieldFuncTimedComponent1D
Takes in a 1D position and a phase, returns the field component at this phase and position.