Skip to content

Commit

Permalink
Added various phase options dictionaries to the API documentation. (#956
Browse files Browse the repository at this point in the history
)
  • Loading branch information
robfalck authored Aug 9, 2023
1 parent 2a717ec commit 1aca42a
Showing 1 changed file with 87 additions and 5 deletions.
92 changes: 87 additions & 5 deletions docs/dymos_book/api/phase_api.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,15 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"# The Phase API"
"# Phase Options"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Options"
"## Phase.options\n",
"General options available to all dymos Phases."
]
},
{
Expand All @@ -67,14 +68,95 @@
},
"outputs": [],
"source": [
"om.show_options_table('dymos.phase.Phase')"
"import dymos\n",
"phase = dymos.Phase()\n",
"\n",
"om.show_options_table(phase)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The transcription is an instance of one of the [transcriptions](./transcriptions_api) available in Dymos.\n",
"\n",
"\n",
"Other options listed below control the behavior of various aspects of Phases.\n",
"While most have corresponding phase methods for setting these values, users may now use the `set` method of OpenMDAO's OptionsDictionary to set the values of these options."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Phase.timeseries_options\n",
"\n",
"These options control the behavior of timeseries within a Phase."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": true,
"tags": [
"remove-input"
]
},
"outputs": [],
"source": [
"om.show_options_table(phase.timeseries_options)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Phase.refine_options\n",
"These options control grid refinement within each Phase."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": true,
"tags": [
"remove-input"
]
},
"outputs": [],
"source": [
"om.show_options_table(phase.refine_options)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Phase.simulate_options\n",
"These options control the behavior of phase explicit simulation."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"scrolled": true,
"tags": [
"remove-input"
]
},
"outputs": [],
"source": [
"om.show_options_table(phase.simulate_options)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The transcription is an instance of one of the [transcriptions](./transcriptions_api) available in Dymos.\n"
"# Phase Methods"
]
},
{
Expand Down Expand Up @@ -205,7 +287,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.5"
"version": "3.11.4"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 1aca42a

Please sign in to comment.