plask.flow.
ModeLightHProviderCyl
(data)¶Provider of the magnetic field in Cylindrical geometry [A/m].
This class is used for magnetic field provider in binary solvers. You can also create a custom provider for your Python solver.
Parameters:  data – Data object to interpolate or callable returning it for given mesh.
The callable must accept the same arguments as the provider
__call__ method (see below). It must also be able to give its
length (i.e. have the __len__ method defined) that gives the
number of different provided values. 

To obtain the value from the provider simply call it. The call signature is as follows:
solver.
outModeLightH
(n=0, mesh, interpolation='default')¶Parameters: 


Returns:  Data with the magnetic field on the specified mesh [A/m]. 
You may obtain the number of different values this provider can return by testing its length.
Example
Connect the provider to a receiver in some other solver:
>>> other_solver.inModeLightH = solver.outModeLightH
Obtain the provided field:
>>> solver.outModeLightH(0, mesh)
<plask.Data at 0x1234567>
Test the number of provided values:
>>> len(solver.outModeLightH)
3
See also
Receiver of magnetic field: plask.flow.ModeLightHReceiverCyl
Data filter for magnetic field: plask.flow.ModeLightHFilterCyl
__call__ (…) 
Get value from the provider. 
set_changed () 
Inform all connected receivers that the provided value has changed. 
ModeLightHProviderCyl.
__call__
(n, mesh, interpolation='DEFAULT')¶ModeLightHProviderCyl.
__call__
(mesh, interpolation='DEFAULT')Get value from the provider.
Parameters: 


ModeLightHProviderCyl.
set_changed
()¶Inform all connected receivers that the provided value has changed.
The receivers will have its changed attribute set to True and solvers will call the provider again if they need its value (otherwise they might take it from the cache.