Skip to content

Commit 5964386

Browse files
authored
Some format fix in docstrings (#2954)
* Some format fix * Apply suggestions from code review
1 parent 4fcc96e commit 5964386

24 files changed

+2177
-1301
lines changed

src/ansys/mapdl/core/_commands/apdl/abbreviations.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,12 @@ def abbres(self, lab="", fname="", ext="", **kwargs):
7777
lab
7878
Label that specifies the read operation:
7979
80-
Replace current abbreviation set with these abbreviations (default). - Extend current abbreviation set with these abbreviations, replacing any of the
81-
same name that already exist.
80+
NEW
81+
Replace current abbreviation set with these abbreviations (default).
82+
83+
CHANGE
84+
Extend current abbreviation set with these abbreviations, replacing any of the
85+
same name that already exist.
8286
8387
fname
8488
File name and directory path (248 characters maximum, including the

src/ansys/mapdl/core/_commands/apdl/array_param.py

Lines changed: 40 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,13 @@ def mfouri(self, oper="", coeff="", mode="", isym="", theta="", curve="", **kwar
3232
oper
3333
Type of Fourier operation:
3434
35-
Calculate Fourier coefficients COEFF from MODE, ISYM,
36-
THETA, and CURVE. - Evaluate the Fourier curve CURVE from
37-
COEFF, MODE, ISYM and THETA.
35+
FIT
36+
Calculate Fourier coefficients COEFF from MODE, ISYM,
37+
THETA, and CURVE.
38+
39+
EVAL
40+
Evaluate the Fourier curve CURVE from
41+
COEFF, MODE, ISYM and THETA.
3842
3943
coeff
4044
Name of the array parameter vector containing the Fourier
@@ -50,7 +54,11 @@ def mfouri(self, oper="", coeff="", mode="", isym="", theta="", curve="", **kwar
5054
the corresponding Fourier terms. The vector should contain keys
5155
for each term as follows:
5256
53-
Symmetric (cosine) term - Antisymmetric (sine) term.
57+
0 or 1
58+
Symmetric (cosine) term
59+
60+
-1
61+
Antisymmetric (sine) term.
5462
5563
theta, curve
5664
Names of the array parameter vectors containing the theta vs. curve
@@ -174,16 +182,22 @@ def moper(
174182
oper
175183
Matrix operations:
176184
177-
* `INVERT` - ``(*MOPER, ParR, Par1, INVERT)``
185+
* `INVERT`
186+
``(*MOPER, ParR, Par1, INVERT)``
178187
Square matrix invert: Inverts the ``n`` x ``n`` matrix in ``Par1``
179188
into ``ParR``. The matrix must be well conditioned.
180189
181-
**Warning**: Non-independent or ill-conditioned equations can
182-
cause erroneous results. - For large matrices, use the
190+
.. warning::
191+
192+
Non-independent or ill-conditioned equations can
193+
cause erroneous results.
194+
195+
For large matrices, use the
183196
APDL Math operation ``*LSFACTOR`` for efficiency (see APDL
184197
Math).
185198
186-
* `MULT` - ``(*MOPER, ParR, Par1, MULT, Par2)``
199+
* `MULT`
200+
``(*MOPER, ParR, Par1, MULT, Par2)``
187201
Matrix multiply: Multiplies ``Par1`` by ``Par2``. The number of
188202
rows of ``Par2`` must equal the number of columns of ``Par1`` for
189203
the operation. If ``Par2`` is input with a number of rows
@@ -192,7 +206,8 @@ def moper(
192206
number of rows of ``Par2`` equal to the number of columns of
193207
``Par1``.
194208
195-
* `COVAR` - ``(*MOPER, ParR, Par1, COVAR, Par2)``
209+
* `COVAR`
210+
``(*MOPER, ParR, Par1, COVAR, Par2)``
196211
Covariance: The measure of association between two columns
197212
of the input matrix (``Par1``). ``Par1``, of size m runs (rows)
198213
by ``n`` data (columns) is first processed to produce a row
@@ -202,7 +217,8 @@ def moper(
202217
``n`` matrix (``ParR``) of covariances (with the variances as the
203218
diagonal terms).
204219
205-
* `CORR` - ``(*MOPER, ParR, Par1, CORR, Par2)``
220+
* `CORR`
221+
``(*MOPER, ParR, Par1, CORR, Par2)``
206222
Correlation: The correlation coefficient between two
207223
variables. The input matrix (``Par1``), of size m runs (rows)
208224
by n data (columns), is first processed to produce a row
@@ -212,7 +228,8 @@ def moper(
212228
``n`` matrix (``ParR``) of correlation coefficients (with a value
213229
of 1.0 for the diagonal terms).
214230
215-
* `SOLV` - ``(*MOPER, ParR, Par1, SOLV, Par2)``
231+
* `SOLV`
232+
``(*MOPER, ParR, Par1, SOLV, Par2)``
216233
Solution of simultaneous equations: Solves the set of ``n``
217234
equations of n terms of the form ``an_1 x_1 + an_2 x_2 + ... +
218235
an_n x_n = b_n`` where ``Par1`` contains the matrix of
@@ -226,7 +243,8 @@ def moper(
226243
APDL Math operation ``*LSFACTOR`` for efficiency (see APDL
227244
Math).
228245
229-
* `SORT` - ``(*MOPER, ParR, Par1, SORT, Par2, n1, n2, n3)``
246+
* `SORT`
247+
``(*MOPER, ParR, Par1, SORT, Par2, n1, n2, n3)``
230248
Matrix sort: Sorts matrix ``Par1`` according to sort vector
231249
``Par2`` and places the result back in ``Par1``. Rows of ``Par1`` are
232250
moved to the corresponding positions indicated by the
@@ -238,23 +256,26 @@ def moper(
238256
row positions (the permutation vector). Sorting ``Par1``
239257
according to ``ParR`` should reproduce the initial ordering.
240258
241-
* `NNEAR` - ``(*MOPER, ParR, Par1, NNEAR, Toler)``
259+
* `NNEAR`
260+
``(*MOPER, ParR, Par1, NNEAR, Toler)``
242261
Nearest Node: Quickly determine all the nodes within a
243262
specified tolerance of a given array. ``ParR`` is a vector of
244263
the nearest selected nodes, or 0 if no nodes are nearer
245264
than ``Toler``. ``Par1`` is the ``n`` x 3 array of coordinate
246265
locations. ``Toler`` defaults to 1 and is limited to the
247266
maximum model size.
248267
249-
* `ENEAR` - ``(*MOPER, ``ParR``, ``Par1``, ENEAR, Toler)``
268+
* `ENEAR`
269+
``(*MOPER, ``ParR``, ``Par1``, ENEAR, Toler)``
250270
Nearest Element: Quickly determine the elements with
251271
centroids that are within a specified tolerance of the
252272
points in a given array. - ``ParR`` is a vector of the nearest
253273
selected elements, or 0 if no element centroids are nearer
254274
than ``Toler``. ``Par1`` is the ``n`` x 3 array of coordinate
255275
locations.
256276
257-
* `MAP` - ``(*MOPER, ParR, Par1, MAP, Par2, Par3, kDim, --, kOut, LIMIT)``
277+
* `MAP`
278+
``(*MOPER, ParR, Par1, MAP, Par2, Par3, kDim, --, kOut, LIMIT)``
258279
Maps the results from one set of points to another. For
259280
example, you can map pressures from a CFD analysis onto
260281
your model for a structural analysis.
@@ -297,14 +318,16 @@ def moper(
297318
bounds. Results mapping is available from the command line
298319
only.
299320
300-
* `INTP` - ``(*MOPER, ParR, Par1, INTP, Par2)``
321+
* `INTP`
322+
``(*MOPER, ParR, Par1, INTP, Par2)``
301323
Finds the elements that contain each point in the array of
302324
``n`` x 3 points in ``Par1``. ``Par2`` will contain the set of element
303325
ID numbers and ``ParR`` will contain their ``n`` x 3 set of
304326
natural element coordinates (values between -1 and
305327
1). ``Par1`` must be in global Cartesian coordinates.
306328
307-
* `SGET` - ``(*MOPER, ParR, Par1, SGET, Par2, Label, Comp)``
329+
* `SGET`
330+
``(*MOPER, ParR, Par1, SGET, Par2, Label, Comp)``
308331
Gets the nodal solution item corresponding to Label and
309332
Comp (see the PLNSOL command) and interpolates it to the
310333
given element locations. ``Par1`` contains the ``n`` x 3 array of

src/ansys/mapdl/core/_commands/aux12_/radiation_mat.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,11 @@ def geom(self, k2d="", ndiv="", **kwargs):
5858
k2d
5959
Dimensionality key:
6060
61-
0 - 3-D geometry (default)
61+
0
62+
3-D geometry (default)
6263
63-
1 - 2-D geometry (plane or axisymmetric)
64+
1
65+
2-D geometry (plane or axisymmetric)
6466
6567
ndiv
6668
Number of divisions in an axisymmetric model. Used only with K2D =
@@ -82,9 +84,11 @@ def mprint(self, key="", **kwargs):
8284
key
8385
Print key:
8486
85-
0 - Do not print matrices.
87+
0
88+
Do not print matrices.
8689
87-
1 - Print matrices.
90+
1
91+
Print matrices.
8892
8993
Notes
9094
-----
@@ -129,9 +133,11 @@ def vtype(self, nohid="", nzone="", **kwargs):
129133
nohid
130134
Type of viewing procedure:
131135
132-
0 - Hidden procedure.
136+
0
137+
Hidden procedure.
133138
134-
1 - Non-hidden (faster, but less general) procedure.
139+
1
140+
Non-hidden (faster, but less general) procedure.
135141
136142
nzone
137143
Number of sampling zones for the hidden procedure (100 maximum for

src/ansys/mapdl/core/_commands/aux12_/radiosity_solver.py

Lines changed: 72 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -62,11 +62,14 @@ def radopt(
6262
solver
6363
Choice of solver for radiosity calculation:
6464
65-
0 - Gauss-Seidel iterative solver (default).
65+
0
66+
Gauss-Seidel iterative solver (default).
6667
67-
1 - Direct solver.
68+
1
69+
Direct solver.
6870
69-
2 - Jacobi solver.
71+
2
72+
Jacobi solver.
7073
7174
maxiter
7275
Maximum number of iterations for iterative solver (SOLVER = 0 or
@@ -84,22 +87,20 @@ def radopt(
8487
Maximum number of flux iterations to be performed according to the
8588
specified solver type:
8689
87-
0 - If the FULL solver is specified (THOPT,FULL), convergence criteria are
88-
monitored and iterations are performed until convergence
89-
occurs. If the QUASI solver is specified (THOPT,QUASI),
90-
convergence criteria are ignored and one iteration is
91-
performed. This value is the default.
92-
93-
1, 2, 3, ...N - If the FULL solver is specified
94-
(THOPT,FULL), convergence criteria are
95-
monitored and iterations are performed
96-
until convergence occurs, or until the
97-
specified number of iterations has been
98-
completed, whichever comes first. If the
99-
QUASI solver is specified (THOPT,QUASI),
100-
convergence criteria are ignored and the
101-
specified number of iterations are
102-
completed.
90+
0
91+
If the FULL solver is specified (``THOPT,FULL``), convergence
92+
criteria are monitored and iterations are performed until
93+
convergence occurs. If the QUASI solver is specified
94+
(``THOPT,QUASI``), convergence criteria are ignored and one
95+
iteration is performed. This value is the default.
96+
97+
1, 2, 3, ...N
98+
If the FULL solver is specified (``THOPT,FULL``), convergence
99+
criteria are monitored and iterations are performed until
100+
convergence occurs, or until the specified number of iterations
101+
has been completed, whichever comes first. If the QUASI solver
102+
is specified (``THOPT,QUASI``), convergence criteria are ignored and
103+
the specified number of iterations are completed.
103104
104105
Notes
105106
-----
@@ -232,9 +233,11 @@ def v2dopt(self, geom="", ndiv="", hidopt="", nzone="", **kwargs):
232233
geom
233234
Choice of geometry:
234235
235-
0 - Planar (default).
236+
0
237+
Planar (default).
236238
237-
1 - Axisymmetric
239+
1
240+
Axisymmetric
238241
239242
ndiv
240243
Number of divisions for axisymmetric geometry (that is, the number
@@ -243,9 +246,11 @@ def v2dopt(self, geom="", ndiv="", hidopt="", nzone="", **kwargs):
243246
hidopt
244247
Viewing option:
245248
246-
0 - Hidden (default).
249+
0
250+
Hidden (default).
247251
248-
1 - Non-hidden
252+
1
253+
Non-hidden
249254
250255
nzone
251256
Number of zones (that is, the number of rays emanating from a
@@ -266,32 +271,40 @@ def vfsm(self, action="", encl="", opt="", maxiter="", conv="", **kwargs):
266271
action
267272
Action to be performed:
268273
269-
Define - Define a view factor summation (default)
274+
Define
275+
Define a view factor summation (default)
270276
271-
Clear - Resets the scaling method to 0 for all
272-
enclosures. All subsequent arguments are ignored.
277+
Clear
278+
Resets the scaling method to 0 for all
279+
enclosures. All subsequent arguments are ignored.
273280
274-
Status - Outputs the OPT value for each enclosure in the model.
281+
Status
282+
Outputs the OPT value for each enclosure in the model.
275283
276284
encl
277285
Previously defined enclosure number for the view factor adjustment.
278286
279287
opt
280288
Option key:
281289
282-
0 - The view factor matrix values are not adjusted (default).
290+
0
291+
The view factor matrix values are not adjusted (default).
283292
284-
1 - The view factor matrix values are adjusted so that the
293+
1
294+
The view factor matrix values are adjusted so that the
285295
row sum equals 1.0.
286296
287-
2 - The view factor matrix values are adjusted so that the
297+
2
298+
The view factor matrix values are adjusted so that the
288299
row sum equals 1.0 and the reciprocity relationship is
289300
satisfied.
290301
291-
3 - The view factor matrix values are adjusted so that the
302+
3
303+
The view factor matrix values are adjusted so that the
292304
original row sum is maintained.
293305
294-
4 - The view factor matrix values are adjusted so that the
306+
4
307+
The view factor matrix values are adjusted so that the
295308
original row sum is maintained and the reciprocity
296309
relationship is satisfied.
297310
@@ -343,16 +356,20 @@ def vfopt(
343356
opt
344357
View factor option:
345358
346-
NEW - Calculate view factors and write them to a file.
359+
NEW
360+
Calculate view factors and write them to a file.
347361
348-
OFF - Do not recalculate view factors it they already exist in the database,
362+
OFF
363+
Do not recalculate view factors it they already exist in the database,
349364
otherwise calculate compute them. This option is the default
350365
behavior.
351366
352-
READ - Read view factors from a binary file. For subsequent SOLVE commands, switch to
367+
READ
368+
Read view factors from a binary file. For subsequent SOLVE commands, switch to
353369
the default option (OFF).
354370
355-
NONE - Do not write view factors to a file.
371+
NONE
372+
Do not write view factors to a file.
356373
357374
fname
358375
File name for view factor matrix. Default = Jobname.
@@ -367,16 +384,31 @@ def vfopt(
367384
filetype
368385
View factor file type:
369386
370-
BINA - Binary (default).
387+
BINA
388+
Binary (default).
371389
372-
ASCI - ASCII.
390+
ASCI
391+
ASCII.
373392
374393
fileformat
375394
Format for the specified Filetype:
376395
377-
Binary files (Filetype = BINA): - 0
396+
Binary files (Filetype = BINA):
378397
379-
No compression. (View factor file size may be very large.) - 1
398+
0
399+
No compression. (View factor file size may be very large.)
400+
401+
1
402+
Zeroes are compressed out. (Useful for large models to reduce
403+
the view factor file size.)
404+
405+
ASCII files (Filetype = ASCI):
406+
407+
0
408+
10F7.4 (low precision, lower accuracy).
409+
410+
1
411+
7F11.8 (high precision, higher accuracy).
380412
381413
Notes
382414
-----

0 commit comments

Comments
 (0)