Skip to content

Commit bb8d42c

Browse files
author
cassiope
committed
Docs: updating docs (cassiope bot)
1 parent 003fd0f commit bb8d42c

File tree

76 files changed

+1275
-408
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+1275
-408
lines changed

.github/workflows/version-docs.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727

2828
- name: Install dependencies
2929
run: |
30-
pip install mike mkdocs sphinx
30+
pip install mike mkdocs #sphinx
3131
3232
- name: Configure Git (for mike to push)
3333
run: |
@@ -37,9 +37,9 @@ jobs:
3737
3838
- name: Deploy docs
3939
run: |
40-
export CASSIOPEE=$GITHUB_WORKSPACE
41-
cd $CASSIOPEE/Cassiopee
42-
./install --doc
40+
#export CASSIOPEE=$GITHUB_WORKSPACE
41+
#cd $CASSIOPEE/Cassiopee
42+
#./install --doc
4343
if [[ "${GITHUB_REF}" == refs/tags/* ]]; then
4444
VERSION=${GITHUB_REF#refs/tags/}
4545
mike deploy --push --update-aliases "$VERSION" latest

Cassiopee/KCore/doc/source/Internal.rst

Lines changed: 68 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@ List of functions
248248
Converter.Internal.adaptNGon42NGon3
249249
Converter.Internal.adaptNFace2PE
250250
Converter.Internal.adaptPE2NFace
251+
Converter.adaptSurfaceNGon
252+
Converter.Internal.adaptBCFacePL2VertexPL
253+
Converter.Internal.adaptBCVertexPL2FacePL
254+
251255

252256
Contents
253257
#########
@@ -1321,9 +1325,10 @@ Check nodes
13211325
.. py:function:: Converter.Internal.getSizeOf(node)
13221326
13231327
Return the size of input node and attached nodes in octets.
1328+
Works also on numpy, list of numpys, dict of numpys.
13241329

1325-
:param node: input node
1326-
:type node: pyTree node of list of pyTree nodes
1330+
:param node: input node
1331+
:type node: pyTree node of list of pyTree nodes
13271332
:return: size of node in octets
13281333
:rtype: int
13291334

@@ -3200,6 +3205,67 @@ Adapt NGON meshes
32003205

32013206
---------------------------------------------------------------------------
32023207

3208+
.. py:function:: Internal.adaptSurfaceNGon(a, rmEmptyNFaceElements=True)
3209+
3210+
Adapt a surface NGon from (A: NGON=bars, NFACE=polygon)
3211+
to (B: NGON=polygon, NFACE=NULL), or vice versa.
3212+
3213+
:param a: input data (NGON)
3214+
:type a: [array, list of arrays] or [pyTree, base, zone, list of zones]
3215+
:param rmEmptyNFaceElements: if True, remove all empty NFaceElements nodes from the zones.
3216+
:type tol: boolean
3217+
:rtype: Identical to input
3218+
3219+
*Example of use:*
3220+
3221+
* `NGON surface mesh adaptation (pyTree) <Examples/Converter/adaptSurfaceNGonPT.py>`_:
3222+
3223+
.. literalinclude:: ../build/Examples/Converter/adaptSurfaceNGonPT.py
3224+
3225+
-----------------------------------------------------------------------------------
3226+
3227+
.. py:function:: Converter.Internal.adaptBCFacePL2VertexPL(t, bcs=None, btype=None, remove=False)
3228+
3229+
Adapts face point list into vertex point list for a list of BC_t nodes. Exists also as in-place (_adaptBCFacePL2VertexPL).
3230+
3231+
:param t: unstructured mesh
3232+
:type t: pyTree node or list of pyTree nodes
3233+
:param bcs: BC nodes on which to adapt face point list into vertex point list. If None, considers all BC nodes
3234+
:type bcs: optional pyTree node or list of pyTree nodes
3235+
:param btype: type of BC (BCWall, BCFarfield, FamilySpecified...) to consider. If None, does not filter `bcs` by BCType
3236+
:type btype: string
3237+
:param remove: if True, removes all BCDataset nodes found in `bcs`
3238+
:type check: boolean
3239+
3240+
*Example of use:*
3241+
3242+
* `Creates vertex PointList arrays (pyTree) <Examples/Converter/adaptBCFacePL2VertexPLPT.py>`_:
3243+
3244+
.. literalinclude:: ../build/Examples/Converter/adaptBCFacePL2VertexPLPT.py
3245+
3246+
-----------------------------------------------------------------------------------
3247+
3248+
.. py:function:: Converter.Internal.adaptBCVertexPL2FacePL(t, bcs=None, btype=None, remove=False)
3249+
3250+
Adapts vertex point list into face point list for a list of BC_t nodes. Exists also as in-place (_adaptBCVertexPL2FacePL).
3251+
3252+
:param t: unstructured mesh
3253+
:type t: pyTree node or list of pyTree nodes
3254+
:param bcs: BC nodes on which to adapt vertex point list into face point list. If None, considers all BC nodes
3255+
:type bcs: optional pyTree node or list of pyTree nodes
3256+
:param btype: type of BC (BCWall, BCFarfield, FamilySpecified...) to consider. If None, does not filter `bcs` by BCType
3257+
:type btype: string
3258+
:param remove: if True, removes all BCDataset nodes found in `bcs`
3259+
:type check: boolean
3260+
3261+
*Example of use:*
3262+
3263+
* `Creates face PointList arrays (pyTree) <Examples/Converter/adaptBCVertexPL2FacePLPT.py>`_:
3264+
3265+
.. literalinclude:: ../build/Examples/Converter/adaptBCVertexPL2FacePLLPT.py
3266+
3267+
-----------------------------------------------------------------------------------
3268+
32033269
.. toctree::
32043270
:maxdepth: 2
32053271

docs/doc/CPlot.html

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta charset="ASCII" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />
88

9-
<title>CPlot: a light plotter for arrays/pyTree &#8212; CPlot 4.0 documentation</title>
9+
<title>CPlot: a light plotter for arrays/pyTree &#8212; CPlot 4.1 documentation</title>
1010
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
1111
<link rel="stylesheet" type="text/css" href="_static/classic.css" />
1212

@@ -29,7 +29,7 @@ <h3>Navigation</h3>
2929
<li class="right" >
3030
<a href="py-modindex.html" title="Python Module Index"
3131
>modules</a> |</li>
32-
<li class="nav-item nav-item-0"><a href="#">CPlot 4.0 documentation</a> &#187;</li>
32+
<li class="nav-item nav-item-0"><a href="#">CPlot 4.1 documentation</a> &#187;</li>
3333
<li class="nav-item nav-item-this"><a href="">CPlot: a light plotter for arrays/pyTree</a></li>
3434
</ul>
3535
</div>
@@ -960,14 +960,15 @@ <h3>Set / Get functions</h3>
960960
<dl class="py function">
961961
<dt class="sig sig-object py" id=".CPlot.getActivePointIndex">
962962
<span class="sig-prename descclassname"><span class="pre">CPlot.</span></span><span class="sig-name descname"><span class="pre">getActivePointIndex</span></span><span class="sig-paren">(</span><span class="sig-paren">)</span></dt>
963-
<dd><p>Return the active point index. For structured grids, return
964-
[ind, indc, i,j,k], where ind is the global index of the nearest node
963+
<dd><p>Return the active point index.
964+
For structured grids, return [ind, indc, i,j,k], where ind is the global index of the nearest node
965965
to active point, indc is the global index of the nearest center to
966-
active point and i,j,k are the indices of nearest node. For
967-
unstructured grids, return [ind, indc, no, 0, 0],
966+
active point and i,j,k are the indices of nearest node.
967+
For unstructured grids, return [ind, indc, no, 0, 0],
968968
where ind is the global index of nearest node, indc
969969
is the nearest center to the clicked point and no is the number of ind
970-
in the center2node connectivity of indc.</p>
970+
in the center2node connectivity of indc.
971+
If there is no active point, return [].</p>
971972
<dl class="field-list simple">
972973
<dt class="field-odd">Returns<span class="colon">:</span></dt>
973974
<dd class="field-odd"><p>active point index</p>
@@ -1865,7 +1866,7 @@ <h3>Navigation</h3>
18651866
<li class="right" >
18661867
<a href="py-modindex.html" title="Python Module Index"
18671868
>modules</a> |</li>
1868-
<li class="nav-item nav-item-0"><a href="#">CPlot 4.0 documentation</a> &#187;</li>
1869+
<li class="nav-item nav-item-0"><a href="#">CPlot 4.1 documentation</a> &#187;</li>
18691870
<li class="nav-item nav-item-this"><a href="">CPlot: a light plotter for arrays/pyTree</a></li>
18701871
</ul>
18711872
</div>

docs/doc/Compressor.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta charset="ASCII" />
77
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="generator" content="Docutils 0.19: https://docutils.sourceforge.io/" />
88

9-
<title>Compressor: Field compression module &#8212; Compressor 4.0 documentation</title>
9+
<title>Compressor: Field compression module &#8212; Compressor 4.1 documentation</title>
1010
<link rel="stylesheet" type="text/css" href="_static/pygments.css" />
1111
<link rel="stylesheet" type="text/css" href="_static/classic.css" />
1212

@@ -29,7 +29,7 @@ <h3>Navigation</h3>
2929
<li class="right" >
3030
<a href="py-modindex.html" title="Python Module Index"
3131
>modules</a> |</li>
32-
<li class="nav-item nav-item-0"><a href="#">Compressor 4.0 documentation</a> &#187;</li>
32+
<li class="nav-item nav-item-0"><a href="#">Compressor 4.1 documentation</a> &#187;</li>
3333
<li class="nav-item nav-item-this"><a href="">Compressor: Field compression module</a></li>
3434
</ul>
3535
</div>
@@ -624,7 +624,7 @@ <h3>Navigation</h3>
624624
<li class="right" >
625625
<a href="py-modindex.html" title="Python Module Index"
626626
>modules</a> |</li>
627-
<li class="nav-item nav-item-0"><a href="#">Compressor 4.0 documentation</a> &#187;</li>
627+
<li class="nav-item nav-item-0"><a href="#">Compressor 4.1 documentation</a> &#187;</li>
628628
<li class="nav-item nav-item-this"><a href="">Compressor: Field compression module</a></li>
629629
</ul>
630630
</div>

0 commit comments

Comments
 (0)