Reference page for GeoBase

Contents

Summary

GeoBase Base class for geometries.

Basic usage:

Note that his is an abstract base class and cannot be instantiated. Most of the time, you'll be working with either RadialGeometry or AxialGeometry, or their subclasses. Those classes handle the practicalities of mesh replication, namely how the elementary mesh is rotated or translated.

The following methods are recommended to be re-implemented in subclasses:

See RadialGeometry, StatorBase, SlottedRotorBase, SynRotorBase Documentation for GeoBase doc GeoBase


PROPERTIES


METHODS

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

this = GeoBase(arguments) Constructor

this.Nrep(arguments) Number of times to replicate elementary mesh.

Nrep(this)

Usually subclassed, but by default returns this.dimensions.*Nrep*.

this.add_circuit(arguments) Add Circuit to this.

this.add_domain(arguments) Add Domain to this.

this.add_material(arguments) Add Material to this.

this.copy_domain(arguments) Copy domain and apply necessary rotations or

translations to the domain and remanence orientation, if any.

new = copy_domain(this, old_domain, sector_index)

this.create_geometry(arguments) Initialize geometry.

this = create_geometry(this, varargin)

Initializes the geometry.

Must be subclassed.

GeoBase/this.dim(arguments) is a function.

d = dim(this)

this.export_dxf(arguments) Export geometry as rudimentary dxf file.

export_dxf(this, fname)

drawing = export_dxf(this, fname, 'skip_save', true) to return drawing object

export_dxf(this, drawing)

export_dxf(this, fname_or_drawing, key, val, ...) with

this.fill(arguments) Fill mesh

fill(this, name, varargin)

Fills the mesh of domain name, using varargin{:} as arguments.

fill(this, varargin)

Plots the entire mesh using varargin{:} as arguments.

this.get_domain(arguments) Get domain(s) by name.

get_domain(this, name)

Returns the Domain with the correct name.

The wildcard syntax name_* can be used to find all replicated domains corresponding to the original domain with name.

this.list_dimensions(arguments) Display dimensions info on command window

this.mesh_elementary_geometry(arguments) Create mesh for the elementary geometry.

mesh_elementary_geometry(this)

Meshes the elementary geometry, e.g. the raw geometry before possible replication.

Note that the methods this.shift_elementary_nodes, this.copy_domain, and this.parse_nodes have to be implemented.

GeoBase/this.mesh_elementary_geometry_3D(arguments) is a function.

mesh_elementary_geometry_3D(this, varargin)

this.mesh_geometry(arguments) Mesh geometry.

Equivalent to calling this.mesh_elementary_geometry and this.replicate_elementary_mesh

this.parse_nodes(arguments) Parse special nodes.

parse_nodes(this, Surfaces)

Parses special nodes from meshed Surfaces. Usually airgap and periodic boundary nodes.

this.plot(arguments) Plot nodes on the meshed geometry.

plot(this, varargin)

Equivalent to calling msh_*plot*(this, varargin{:})

this.plot_edges(arguments) Plot edges

this.plot_geometry(arguments) Plots the geometry.

[] = plot_geometry(this, varargin)

Plots the geometry using plot with varargin{:}

this.replicate_elementary_mesh(arguments) Replicate elementary mesh.

replicate_elementary_mesh(this, sector_shift, Nrep)

Replicates the elementary geometry Nrep times. This is performed by

GeoBase/this.replicate_elementary_mesh_3D(arguments) is a function.

replicate_elementary_mesh_3D(this)

this.save_to_excel(arguments) Save specifications to Excel sheet.

save_to_excel(this, fname, varargin)

this.shift_elementary_nodes(arguments) Replicate nodes to a new sector.

pnew = shift_elementary_nodes(this, p, k)

Replicated the nodes p of the elementary symmetry sector into the sector k.

this.symmetry_period(arguments) Symmetry period of the geometry.

symmetry_period(this)

Usually subclassed, but by default returns this.dimensions.*symmetry_period*.

this.triplot(arguments) Triangle plot of this.

triplot(this, name, varargin)

Plots the mesh of domain name, using varargin{:} as arguments.

triplot(this, varargin)

Plots the entire mesh using varargin{:} as arguments.

this.visualize(arguments) this.visualize(arguments) geometry.

visualize(this)

Visualizes geometry, using msh_fill with 'linestyle', 'none'.

visualize(this, args)

Visualize, passing args to patch.