Package empro :: Package toolkit :: Module fem :: Class NearField
[frames] | no frames]

Class NearField

source code


NearField(<projectId>, <simulationId>)
NearField(empro.activeProject, <simulationId>)
NearField(context)

creates a near field post processor of a simulation within a project.

Example:

import empro
from empro.toolkit.engine_support.fem.post_processing import NearField
nearField = NearField('C:\users\jdoe\project.ep', '000001')
for f in nearField.frequencies:
    nearField.frequency = f
    print nearField.frequency
    print nearField.E(1e-3, 2e-3, 3e-3) # x,y,z coordinates in meters
    print nearField.H(empro.geometry.Vector3d("1 mm", "2 mm", "3 mm"))
    print nearField.E([(1e-3, 2e-3, 3e-3), (4e-3, 5e-3, 6e-3)])

Instance Methods
 
__init__(self, context, simulationId=None) source code
(Ex, Ey, Ez)
E(x, y, z)
E([(x1, y1, z1), (x2, y2, z2), ...]) -> [(Ex1, Ey1, Ez1), (Ex2, Ey2, Ez2), ...]
source code
(Hx, Hy, Hz)
H(x, y, z)
H([(x1, y1, z1), (x2, y2, z2), ...]) -> [(Hx1, Hy1, Hz1), (Hx2, Hy2, Hz2), ...]
source code
Properties
  frequencies
sequence of available solution frequencies, readonly.
  frequency
solution frequency, readwrite.
  excitations
sequence of available excitation numbers, readonly.
  excitation
index of active excitation, readwrite.
Method Details

E(x, y, z)

source code 
E([(x1, y1, z1), (x2, y2, z2), ...]) -> 
    [(Ex1, Ey1, Ez1), (Ex2, Ey2, Ez2), ...]

Compute electric field in one point, or in a sequence of points.
Coordinates should be specified in meters. The electric field is
returned as triples of complex x-, y- and z-components.

Returns: (Ex, Ey, Ez)

H(x, y, z)

source code 
H([(x1, y1, z1), (x2, y2, z2), ...]) -> 
    [(Hx1, Hy1, Hz1), (Hx2, Hy2, Hz2), ...]

Compute magnetic field in one point, or in a sequence of points.
Coordinates should be specified in meters. The magnetic field is
returned as triples of complex x-, y- and z-components.

Returns: (Hx, Hy, Hz)

Property Details

frequencies

sequence of available solution frequencies, readonly.

Get Method:
internal.frequencies(self) - sequence of available solution frequencies, readonly.

frequency

solution frequency, readwrite.

Get Method:
internal.__getFrequency(self)
Set Method:
internal.__setFrequency(self, f)

excitations

sequence of available excitation numbers, readonly.

Get Method:
internal.excitations(self) - sequence of available excitation numbers, readonly.

excitation

index of active excitation, readwrite.

Get Method:
internal.__getExcitation(self)
Set Method:
internal.__setExcitation(self, k)