plask.flow.
TemperatureProvider2D
(data)¶Provider of the temperature in Cartesian2D geometry [K].
This class is used for temperature 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). |
---|
To obtain the value from the provider simply call it. The call signature is as follows:
solver.
outTemperature
(mesh, interpolation='default')¶Parameters: |
|
---|---|
Returns: | Data with the temperature on the specified mesh [K]. |
Example
Connect the provider to a receiver in some other solver:
>>> other_solver.inTemperature = solver.outTemperature
Obtain the provided field:
>>> solver.outTemperature(mesh)
<plask.Data at 0x1234567>
See also
Receiver of temperature: plask.flow.TemperatureReceiver2D
Data filter for temperature: plask.flow.TemperatureFilter2D
__call__ (mesh[, interpolation]) |
Get value from the provider. |
set_changed () |
Inform all connected receivers that the provided value has changed. |
TemperatureProvider2D.
__call__
(mesh, interpolation='DEFAULT')¶Get value from the provider.
Parameters: |
|
---|
TemperatureProvider2D.
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.