PLaSK library
Loading...
Searching...
No Matches
_doc.py
Go to the documentation of this file.
1# This file is part of PLaSK (https://plask.app) by Photonics Group at TUL
2# Copyright (c) 2022 Lodz University of Technology
3#
4# This program is free software: you can redistribute it and/or modify
5# it under the terms of the GNU General Public License as published by
6# the Free Software Foundation, version 3.
7#
8# This program is distributed in the hope that it will be useful,
9# but WITHOUT ANY WARRANTY; without even the implied warranty of
10# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11# GNU General Public License for more details.
12
13# coding: utf8
14# Copyright (C) 2014 Photonics Group, Lodz University of Technology
15
16outLightMagnitude = """\
17Provider of the computed optical field magnitude [W/m²].
18
19
20outLightMagnitude(n=0, mesh, interpolation='default')
21
22:param int n: Computed mode number.
23:param mesh mesh: Target mesh to get the field at.
24:param str interpolation: Requested interpolation method.
25
26:return: Data with the optical field magnitude on the specified mesh **[W/m²]**.
27
28You may obtain the number of different values this provider can return by
29testing its length.
30
31Example:
32 Connect the provider to a receiver in some other solver:
33
34 >>> other_solver.inLightMagnitude = solver.outLightMagnitude
35
36 Obtain the provided field:
37
38 >>> solver.outLightMagnitude(0, mesh)
39 <plask.Data at 0x1234567>
40
41 Test the number of provided values:
42
43 >>> len(solver.outLightMagnitude)
44 3
45
46See also:
47
48 Provider class: :class:`plask.flow.LightMagnitudeProviderCyl`
49
50 Receiver class: :class:`plask.flow.LightMagnitudeReceiverCyl`
51"""
52
53outLoss = """\
54Provider of the computed modal extinction (1/cm).
55
56
57outLoss(n=0)
58
59:param int n: Value number.
60
61:return: Value of the modal extinction **(1/cm)**.
62
63You may obtain the number of different values this provider can return by
64testing its length.
65
66Example:
67 Connect the provider to a receiver in some other solver:
68
69 >>> other_solver.inModalLoss = solver.outLoss
70
71 Obtain the provided value:
72
73 >>> solver.outLoss(n=0)
74 1000
75
76 Test the number of provided values:
77
78 >>> len(solver.outLoss)
79 3
80
81See also:
82
83 Provider class: :class:`plask.flow.ModalLossProvider`
84
85 Receiver class: :class:`plask.flow.ModalLossReceiver`
86"""
87
88outWavelength = """\
89Provider of the computed wavelength (nm).
90
91
92outWavelength(n=0)
93
94:param int n: Computed mode number.
95
96:return: Value of the wavelength **(nm)**.
97
98You may obtain the number of different values this provider can return by
99testing its length.
100
101Example:
102 Connect the provider to a receiver in some other solver:
103
104 >>> other_solver.inWavelength = solver.outWavelength
105
106 Obtain the provided value:
107
108 >>> solver.outWavelength(n=0)
109 1000
110
111 Test the number of provided values:
112
113 >>> len(solver.outWavelength)
114 3
115
116See also:
117
118 Provider class: :class:`plask.flow.WavelengthProvider`
119
120 Receiver class: :class:`plask.flow.WavelengthReceiver`
121"""
122
123outRefractiveIndex = """\
124Provider of the computed refractive index (-).
125
126
127outRefractiveIndex(mesh, interpolation='default')
128
129:param mesh mesh: Target mesh to get the field at.
130:param str interpolation: Requested interpolation method.
131
132:return: Data with the refractive index on the specified mesh **(-)**.
133
134Example:
135 Connect the provider to a receiver in some other solver:
136
137 >>> other_solver.inRefractiveIndex = solver.outRefractiveIndex
138
139 Obtain the provided field:
140
141 >>> solver.outRefractiveIndex(mesh)
142 <plask.Data at 0x1234567>
143
144See also:
145
146 Provider class: :class:`plask.flow.RefractiveIndexProviderCyl`
147
148 Receiver class: :class:`plask.flow.RefractiveIndexReceiverCyl`
149"""
150
151outEpsilon = """\
152Provider of the computed permittivity tensor (-).
153
154
155outEpsilon(mesh, interpolation='default')
156
157:param mesh mesh: Target mesh to get the field at.
158:param str interpolation: Requested interpolation method.
159
160:return: Data with the permittivity tensor on the specified mesh **(-)**.
161
162Example:
163 Connect the provider to a receiver in some other solver:
164
165 >>> other_solver.inEpsilon = solver.outEpsilon
166
167 Obtain the provided field:
168
169 >>> solver.outEpsilon(mesh)
170 <plask.Data at 0x1234567>
171
172See also:
173
174 Provider class: :class:`plask.flow.EpsilonProviderCyl`
175
176 Receiver class: :class:`plask.flow.EpsilonReceiverCyl`
177"""
178
179outLightE = """\
180Provider of the computed electric field [V/m].
181
182
183outLightE(n=0, mesh, interpolation='default')
184
185:param int n: Value number.
186:param mesh mesh: Target mesh to get the field at.
187:param str interpolation: Requested interpolation method.
188
189:return: Data with the electric field on the specified mesh **[V/m]**.
190
191You may obtain the number of different values this provider can return by
192testing its length.
193
194Example:
195 Connect the provider to a receiver in some other solver:
196
197 >>> other_solver.inLightE = solver.outLightE
198
199 Obtain the provided field:
200
201 >>> solver.outLightE(0, mesh)
202 <plask.Data at 0x1234567>
203
204 Test the number of provided values:
205
206 >>> len(solver.outLightE)
207 3
208
209See also:
210
211 Provider class: :class:`plask.flow.LightEProvider2D`
212
213 Receiver class: :class:`plask.flow.LightEReceiver2D`
214"""
215
216outNeff = """\
217Provider of the computed effective index (-).
218
219
220outNeff(n=0)
221
222:param int n: Value number.
223
224:return: Value of the effective index **(-)**.
225
226You may obtain the number of different values this provider can return by
227testing its length.
228
229Example:
230 Connect the provider to a receiver in some other solver:
231
232 >>> other_solver.inEffectiveIndex = solver.outNeff
233
234 Obtain the provided value:
235
236 >>> solver.outNeff(n=0)
237 1000
238
239 Test the number of provided values:
240
241 >>> len(solver.outNeff)
242 3
243
244See also:
245
246 Provider class: :class:`plask.flow.EffectiveIndexProvider`
247
248 Receiver class: :class:`plask.flow.EffectiveIndexReceiver`
249"""