Skip to content

Commit

Permalink
docs: update web doc
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit128 committed Jul 15, 2024
1 parent 12297ba commit d6754ac
Show file tree
Hide file tree
Showing 14 changed files with 28 additions and 2,020 deletions.
4 changes: 2 additions & 2 deletions Fast/Fast/doc/install
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ then
mkdir $DEST3
fi

cp ../test/*.py $DEST2
cp ../../../test/*.py $DEST2
fi

# Create Links for Examples (local)
Expand All @@ -62,7 +62,7 @@ cd build
if test ! -e Examples
then
mkdir Examples
ln -s ../test Examples/Fast
ln -s ../../../test Examples/Fast
fi
cd ..

Expand Down
2 changes: 2 additions & 0 deletions Fast/Fast/doc/source/Fast.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.. Fast documentation master file
:tocdepth: 2

Fast: Flexible Aerodynamic Solver Technolgy
============================================

Expand Down
2 changes: 1 addition & 1 deletion Fast/FastC/FastC/Compute/souszones_list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ void K_FASTC::souszones_list_c( E_Int**& param_int, E_Float**& param_real, E_Int

lssiter_verif = 1;

if (nstep == iptdtloc[0] && itypcp!=2) lexit_lu = 1;
if (nstep == iptdtloc[0] && itypcp!=2) lexit_lu = 1;

} //fin if module_verif

Expand Down
21 changes: 10 additions & 11 deletions Fast/FastC/FastC/PyTree.py
Original file line number Diff line number Diff line change
Expand Up @@ -2223,7 +2223,7 @@ def _motionlaw(t, teta, tetap):
# Retourne un tag suivant bcname
#==============================================================================
def tagBC(bcname):
if bcname == "BCExtrapolate" : tag = 0
if bcname == "BCExtrapolate": tag = 0
elif bcname == "BCDegenerateLine": tag = 0
elif bcname == "BCFarfield": tag = 1
elif bcname == "BCInflowSupersonic": tag = 2
Expand Down Expand Up @@ -2764,13 +2764,13 @@ def _BCcompact(t):
Internal.createUniqueChild(bc, 'random_vec', 'DataArray_t', rand)

if btype == 'BCWallViscousIsothermal':
Prop = Internal.getNodeFromName(bc,'.Solver#Property')
Prop = Internal.getNodeFromName(bc,'.Solver#Property')
if Prop is None:
ptrange = Internal.getNodesFromType1(bc, 'IndexRange_t')
rg = ptrange[0][1]
sz = max(1, rg[0,1]-rg[0,0] ) * max(1, rg[1,1]-rg[1,0] ) * max(1, rg[2,1]-rg[2,0] )
print ('Error: Tableau Temperature absent pour la CL BCWallViscousIsothermal sur la zone',z[0])
print ('Error: besoin d un noeud .Solver#Property contenant un numpy Temperature de taille',sz,' dans le noeud BC')
print ('Error: FastC: Tableau Temperature absent pour la CL BCWallViscousIsothermal sur la zone',z[0])
print ('Error: FastC: besoin d un noeud .Solver#Property contenant un numpy Temperature de taille',sz,' dans le noeud BC')
import os; os._exit(1)

if btype == 'BCWallExchange':
Expand All @@ -2787,23 +2787,23 @@ def _BCcompact(t):
Ntg= 101 #nbr echant pour calcul moyenne temporelle
print ('nb couche loi de paroi',shift,'Nb echant pour moyenne:',Ntg)

Prop = Internal.getNodeFromName(bc,'.Solver#Property')
Prop = Internal.getNodeFromName(bc,'.Solver#Property')
if Prop is None:
Internal.createUniqueChild(bc,'.Solver#Property','UserDefinedData_t')
Prop = Internal.getNodeFromName(bc,'.Solver#Property')
Prop = Internal.getNodeFromName(bc,'.Solver#Property')

wmles = Internal.getNodeFromName(Prop,'WMLES_parameter')
wmles = Internal.getNodeFromName(Prop, 'WMLES_parameter')
if wmles is None:
sz = max(1, rg[0,1]-rg[0,0] ) * max(1, rg[1,1]-rg[1,0] ) * max(1, rg[2,1]-rg[2,0] )
sz = max(1, rg[0,1]-rg[0,0] ) * max(1, rg[1,1]-rg[1,0] ) * max(1, rg[2,1]-rg[2,0] )

#vars=['AvgDensity','AvgVelocityX','AvgVelocityY','AvgVelocityZ','AvgTemperature']
vars=['AvgPlane-Primitive']
c =0
for v in vars:
#tab = numpy.zeros(sz*Ntg, numpy.float64)
tab = numpy.zeros(sz*Ntg*5, numpy.float64)
Internal.createUniqueChild( Prop, v,'DataArray_t',value= tab)
c+=1
Internal.createUniqueChild(Prop, v, 'DataArray_t', value=tab)
c += 1
tab = numpy.zeros(4, numpy.float64)
tab[0]= Ntg
tab[1]= 0
Expand Down Expand Up @@ -2861,7 +2861,6 @@ def _BCcompact(t):
size = numpy.shape(data[1])
c = 1
for s in size: c=c*s
# a sortie de la boucle: voir fastP
size_int = size_int + Nb_data

size_real = size_real + c
Expand Down
2 changes: 1 addition & 1 deletion Fast/FastC/doc/install
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ cd build
if test ! -e Examples
then
mkdir Examples
ln -s ../test Examples/FastC
ln -s ../../../test Examples/FastC
fi
cd ..

Expand Down
2 changes: 2 additions & 0 deletions Fast/FastC/doc/source/FastC.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.. FastC documentation master file
:tocdepth: 2

FastC: Flexible Aerodynamic Solver Technolgy
============================================

Expand Down
2 changes: 1 addition & 1 deletion Fast/FastS/doc/install
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ cd build
if test ! -e Examples
then
mkdir Examples
ln -s ../test Examples/FastS
ln -s ../../../test Examples/FastS
fi
cd ..

Expand Down
6 changes: 4 additions & 2 deletions Fast/FastS/doc/source/FastS.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
.. FastS documentation master file
:tocdepth: 2

FastS: FAST structured grid Navier-Stokes solver
==================================================

Expand Down Expand Up @@ -27,7 +29,7 @@ List of functions
.. autosummary::

FastS.PyTree.warmup
FastS.PyTree.createConvergenceHistory
FastS.PyTree._createConvergenceHistory
FastS.PyTree.createStatNodes
FastS.PyTree.createStressNodes

Expand Down Expand Up @@ -419,7 +421,7 @@ Post


.. toctree::
:maxdepth: 2
:maxdepth: 2


Index
Expand Down
6 changes: 3 additions & 3 deletions Fast/FastS/doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
html_permalinks = False

# Output file base name for HTML help builder.
htmlhelp_basename = 'FastSdoc'
htmlhelp_basename = 'FastS'


# -- Options for LaTeX output ---------------------------------------------
Expand Down Expand Up @@ -224,7 +224,7 @@
#latex_use_parts = False

# If true, show page references after internal links.
#latex_show_pagerefs = False
# latex_show_pagerefs = False

# If true, show URL addresses after external links.
#latex_show_urls = False
Expand All @@ -241,7 +241,7 @@
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
('index', 'fasts', u'FastS Documentation',
('index', 'Fasts', u'FastS Documentation',
[u'ONERA'], 1)
]

Expand Down
Loading

0 comments on commit d6754ac

Please sign in to comment.