Basic Stator Geometry Template Structure
export {}; // Do not delete. Required for code autocompletion in VS Code.
function StatorGeom() {}
StatorGeom.prototype = StatorObject;
var stator = new StatorGeom();
function getGeometry(id) {
return {
pieces: [],
helperPieces: [],
simDomain: {
inner: motor.stator.innerRadius,
outer: motor.stator.outerRadius,
},
simRadialOuterDomain: 1.3 * motor.stator.outerRadius,
};
}
// Stator UI constructor.
function StatorGeomUI(ui) {}
// Update UI controls.
StatorGeomUI.prototype.updateUI = function () {};
// Called by the application from C++.
var createStatorUI = function (ui) {
statorUI = new StatorGeomUI(ui);
statorUI.updateUI();
};
Basic Rotor Geometry Template Structure
export {}; // Do not delete. Required for code autocompletion in VS Code.
function RotorGeom() {}
RotorGeom.prototype = RotorObject;
var rotor = new RotorGeom();
function getGeometry(id) {
return {
pieces: [],
helperPieces: [],
coefs3D: [],
Nmagnetsegments: 0,
};
}
// Rotor UI constructor.
function RotorGeomUI(ui) {}
// Update UI controls.
RotorGeomUI.prototype.updateUI = function () {};
// Called by the application from C++.
var createRotorUI = function (ui) {
rotorUI = new RotorGeomUI(ui);
rotorUI.updateUI();
};