commit 610545a24321674bbff4dcc1400f378801291ead
parent 2062f1738124648e2a5506e0a8a45ffbd4efa2f2
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Tue, 23 May 2017 09:46:20 +0200
Convert the solstice-receiver man from ronn to asciidoc
Diffstat:
3 files changed, 116 insertions(+), 81 deletions(-)
diff --git a/cmake/doc/CMakeLists.txt b/cmake/doc/CMakeLists.txt
@@ -41,7 +41,8 @@ endif()
################################################################################
set(MAN_NAMES
solstice-input.5
- solstice-output.5)
+ solstice-output.5
+ solstice-receiver.5)
if(A2X OR ASCIIDOC)
set(MAN_FILES)
diff --git a/doc/solstice-receiver.5.ronn b/doc/solstice-receiver.5.ronn
@@ -1,80 +0,0 @@
-solstice-receiver(5) -- declare the solar-plant receivers for `solstice`(1)
-===========================================================================
-
-## DESCRIPTION
-
-The `solstice-receiver` format is used by `solstice`(1) to declare which
-geometric entities defined in a `solstice-input`(5) file are receivers. For
-each receiver, `solstice`(1) computes its overall intercepted power, its
-associated losses as well as its efficiency. Refer to the `solstice-output`(5)
-format for informations on the per receiver data generated by `solstice`(1).
-Declaring the receivers separately of the solar plant, allows to use the same
-`solstice-input`(5) file for several simulations using different receivers. For
-instance, one can define a specific `solstice-receiver` file that declares some
-primary reflectors as receivers in order to track an unforeseen comportment
-observed during a previous simulation.
-
-The `solstice-receiver` format uses the YAML 1.1 data serialization standard
-[1]; assuming that the file is compatible with the `solstice-receiver`
-semantic, the YAML compact notation can thus be used.
-
-A receiver is identified by its `name` that must be a valid `entity-identifier`
-as defined in the `solstice-input`(5) format. This identifier must reference a
-geometric entity and not a pivot or an empty entity. The side of the geometry
-that is tracked is defined by the `side` attribute of the receiver. Note that
-the front and the back side of a geometry can be both considered if the `side`
-attribute is set to `FRONT_AND_BACK`. Refer to the `solstice-input`(5)
-specification for informations on which side of the geometry is front facing or
-back facing. Finally, if the optional `per_primitive` flag is set to `1`,
-`solstice`(1) will estimate the irradiance for each triangle of the receiver
-and use these data to generate a receiver map as described in
-`solstice-output`(5).
-
-## GRAMMAR
-
- <receivers-list> ::= - <receiver>
- [ - <receiver> ... ]
-
- <receiver> ::= name: <entity-identifier>
- side: <side-identifier>
- [ per_primitive: INTEGER ] # in [0, 1]
-
- <side-identifier> ::= FRONT
- | BACK
- | FRONT_AND_BACK
-
- <entity-identifier> # Defined in solstice-input(1)
-
-## EXAMPLES
-
-Define that the entity `small_square` is a receiver for both its front and back
-side. Enable the estimation of its per triangle front and back irradiance.
-
- - name: small_square
- side: FRONT_AND_BACK
- per_primitive: 1
-
-Declare 3 reflectors as receivers for their front side. Use the YAML compact
-notation to reduce the number of lines:
-
- - {name: H1.heliostat.reflector, side: FRONT}
- - {name: H4.heliostat.reflector, side: FRONT}
- - {name: H7.heliostat.reflector, side: FRONT}
-
-Declare that the back side of `receiver` is effectively a receiver and enable
-the estimation of its associated irradiance map. Make a receiver from the front
-side of the reflector named `LFR0.pivot.reflector`:
-
- - {name: receiver, side: BACK, per_primitive: 1}
- - {name: LFR0.pivot.reflector, side: FRONT}
-
-## NOTES
-
-* [1]:
- YAML Ain't Markup Language - <http://yaml.org>
-
-## SEE ALSO
-`solstice`(1),
-`solstice-input`(5),
-`solstice-output`(5)
-
diff --git a/doc/solstice-receiver.5.txt b/doc/solstice-receiver.5.txt
@@ -0,0 +1,114 @@
+// Copyright (C) CNRS 2016-2017
+//
+// This is free documentation: you can redistribute it and/or modify
+// it under the terms of the GNU General Public License as published by
+// the Free Software Foundation, either version 3 of the License, or
+// (at your option) any later version.
+//
+// This manual is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// GNU General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program. If not, see <http://www.gnu.org/licenses/>.
+:toc:
+
+solstice-receiver(5)
+====================
+
+NAME
+----
+solstice-receiver - declare the solar-plant receivers for solstice(1)
+
+
+DESCRIPTION
+-----------
+
+The *solstice-receiver* format is used by *solstice*(1) to declare which
+geometric entities defined in a *solstice-input*(5) file are receivers. For
+each receiver, *solstice*(1) computes its overall intercepted power, its
+associated losses as well as its efficiency. Refer to the *solstice-output*(5)
+format for informations on the per receiver data generated by *solstice*(1).
+Declaring the receivers separately of the solar plant, allows to use the same
+*solstice-input*(5) file for several simulations using different receivers. For
+instance, one can define a specific *solstice-receiver* file that declares some
+primary reflectors as receivers in order to track an unforeseen comportment
+observed during a previous simulation.
+
+The *solstice-receiver* format uses the YAML 1.1 data serialization standard
+[1]; assuming that the file is compatible with the *solstice-receiver*
+semantic, the YAML compact notation can thus be used.
+
+A receiver is identified by its *name* that must be a valid *entity-identifier*
+as defined in the *solstice-input*(5) format. This identifier must reference a
+geometric entity and not a pivot or an empty entity. The side of the geometry
+that is tracked is defined by the *side* attribute of the receiver. Note that
+the front and the back side of a geometry can be both considered if the *side*
+attribute is set to *FRONT_AND_BACK*. Refer to the *solstice-input*(5)
+specification for informations on which side of the geometry is front facing or
+back facing. Finally, if the optional *per_primitive* flag is set to *1*,
+*solstice*(1) will estimate the irradiance for each triangle of the receiver
+and use these data to generate a receiver map as described in
+*solstice-output*(5).
+
+GRAMMAR
+-------
+
+[verse]
+_______
+<receivers-list> ::= - <receiver>
+ [ - <receiver> ... ]
+
+<receiver> ::= name: <entity-identifier>
+ side: <side-identifier>
+ [ per_primitive: INTEGER ] # in [0, 1]
+
+<side-identifier> ::= FRONT
+ | BACK
+ | FRONT_AND_BACK
+
+<entity-identifier> # Defined in *solstice-input*(1)
+_______
+
+EXAMPLES
+--------
+
+Define that the entity *small_square* is a receiver for both its front and back
+side. Enable the estimation of its per triangle front and back irradiance.
+
+.......
+- name: small_square
+ side: FRONT_AND_BACK
+ per_primitive: 1
+.......
+
+Declare 3 reflectors as receivers for their front side. Use the YAML compact
+notation to reduce the number of lines:
+
+......
+- {name: H1.heliostat.reflector, side: FRONT}
+- {name: H4.heliostat.reflector, side: FRONT}
+- {name: H7.heliostat.reflector, side: FRONT}
+......
+
+Declare that the back side of *receiver* is effectively a receiver and enable
+the estimation of its associated irradiance map. Make a receiver from the front
+side of the reflector named `LFR0.pivot.reflector`:
+
+.......
+- {name: receiver, side: BACK, per_primitive: 1}
+- {name: LFR0.pivot.reflector, side: FRONT}
+.......
+
+NOTES
+-----
+
+1. YAML Ain't Markup Language - <http://yaml.org>
+
+SEE ALSO
+--------
+*solstice*(1),
+*solstice-input*(5),
+*solstice-output*(5)
+