# Reference page for MagneticsProblem

## Contents

- Summary
- this = MagneticsProblem(
*arguments*) Class for solving magnetics problems. - Flux density plot.
- FIXME refactor
- MagneticsProblem/this.setBoundaryMatrix(
*arguments*) is a function. - setting PM sources, if any
- this.solve_harmonic(
*arguments*) Harmonic solution of a MagneticsProblem. - this.solve_static(
*arguments*) Static solution of a MagneticsProblem. - this.solve_stepping(
*arguments*) Time-stepping solution of a MagneticsProblem.

## Summary

MagneticsProblem Class for solving magnetics problems.

this = MagneticsProblem( model )

Construct problem, where *model* is an instance of RFmodel or MotorModelBase class.

Main methods:

- solve_static : solve static problem with no damping effects.

- solve_harmonic : solve harmonic problem.

- solve_stepping : solve time-stepping problem. Documentation for MagneticsProblem doc MagneticsProblem

# PROPERTIES

# METHODS

Class methods are listed below. Inherited methods are not included.

## this = MagneticsProblem(*arguments*) Class for solving magnetics problems.

*this* = **MagneticsProblem**( model )

Construct problem, where *model* is an instance of RFmodel or MotorModelBase class.

Main methods:

- solve_static : solve static problem with no damping effects.

- solve_harmonic : solve harmonic problem.

- solve_stepping : solve time-stepping problem.

## Flux density plot.

Call syntax: [] = *this*.*fluxplot*(step, pars) for time-step 'step'.

[] = *this*.*fluxplot*(-1, pars) for harmonic analysis results.

## FIXME refactor

## MagneticsProblem/this.setBoundaryMatrix(*arguments*) is a function.

*this* = **setBoundaryMatrix**(*this*, varargin)

## setting PM sources, if any

## this.solve_harmonic(*arguments*) Harmonic solution of a MagneticsProblem.

Solves a Harmonic magnetics problem, with sinusoidal time-variations.

solution = **solve_harmonic**(*this*, pars), where

- pars : a SimulationParameters object

- solution : a HarmonicSolution object.

Note: setting pars.isDC = true is recommended for synchronous machines; in *this* case the rotor is rotated by 90 electrical degrees for the imaginary/sinusoid component of the solution, compared to the real/cosinusoid part. This provides an approximation of the effect of rotor saliency.

## this.solve_static(*arguments*) Static solution of a MagneticsProblem.

Solves a static magnetics problem, with no damping effects.

solution = **solve_static**(*this*, pars), where

- pars : a SimulationParameters object

- solution : a StaticSolution object.

## this.solve_stepping(*arguments*) Time-stepping solution of a MagneticsProblem.

Solves a time-stepping problem.

solution = solve_harmonic(*this*, pars), where

- pars : a SimulationParameters object

- solution : a SteppingSolution object.