You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: _posts/2015-06-14-doc_instructions.md
+28-34
Original file line number
Diff line number
Diff line change
@@ -57,51 +57,45 @@ The source of any methods that have been implemented. Simple methods like basic
57
57
58
58
* Inputs
59
59
60
-
This should contain any variables or functions passed to the function. If the passed variable is a data structure, the components that are used should be listed. Each item should include a description if it is not obvious from the name, and any relevant units. It may
60
+
This should contain any variables or functions passed to the function. If the passed variable is a data structure, the components that are used should be listed. Each item should include a description if it is not obvious from the name. It should also include any relevant units. In addition, information about the variable type or any other information that might be important can be added here.
61
61
62
-
### Example Case
62
+
* Outputs
63
63
64
-
This is the docstring from [Supersonic_Nozzle]()
64
+
This should contain the same information as in the inputs. It may also contain information on variables that are modified but not explicitly returned.
65
65
66
-
""" This computes the output values from the input values according to
67
-
equations from the source.
66
+
* Properties Used
67
+
68
+
This carries the same information as input and outputs. It typically contains variables that are properties of the parent class but are not modified. There is some overlap with inputs and outputs, but either category is acceptable as long as the variable is documented.
universal_gas_constant [J/(kg K)] (this is a bad name)
83
-
mach_number [Unitless]
84
-
85
-
self.inputs.
86
-
stagnation_temperature [K]
87
-
stagnation_pressure [Pa]
83
+
<inputs>
88
84
89
85
Outputs:
90
-
self.outputs.
91
-
stagnation_temperature [K]
92
-
stagnation_pressure [Pa]
93
-
stagnation_enthalpy [J/kg]
94
-
mach_number [Unitless]
95
-
static_temperature [K]
96
-
static_enthalpy [J/kg]
97
-
velocity [m/s]
98
-
static_pressure [Pa]
99
-
area_ratio [Unitless]
86
+
<outputs>
100
87
101
88
Properties Used:
102
-
self.
103
-
pressure_ratio [Unitless]
104
-
polytropic_efficiency [Unitless]
105
-
"""
89
+
<properties>
106
90
107
-
The docstring is broken into
91
+
### Doxygen Grouping Tags
92
+
93
+
Tags are used to put files into groups that match the SUAVE file structure. `@defgroup` tags define a group and should be placed in the init file. An example is shown here:
94
+
95
+
## @defgroup Analyses-Aerodynamics Aerodynamics
96
+
# These are the analyses that control aerodynamic evaluations.
97
+
# @ingroup Analyses
98
+
99
+
In this example, `Analyses-Aerodynamics` is the doxygen tag for the group, while the group appears in the documentation as `Aerodynamics`, the next part of the string. The tag is based on the file structure (Analyses/Aerodynamics here). Since this is a subgroup of Analyses, `@ingroup Analyses` is used here, with `Analyses` as the doxygen tag for the next level up.
100
+
101
+
In files, the `@ingroup` tag should be inserted before all classes and stand-alone functions. The tag should match the tag in the folder init file's `@defgroup` string.
0 commit comments