-
-
Notifications
You must be signed in to change notification settings - Fork 346
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Addressed reviewer comments including subclass definitions and docstr…
…ings.
- Loading branch information
Showing
41 changed files
with
594 additions
and
506 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,31 @@ | ||
function m = AxisymmetricFlow(gas, id) | ||
classdef AxisymmetricFlow < Domain1D | ||
% Create an axisymmetric flow domain. | ||
% | ||
% m = AxisymmetricFlow(gas, id) | ||
% | ||
% :param gas: | ||
% Instance of class :mat:func:`Solution` | ||
% Instance of class :mat:class:`Solution` | ||
% :param id: | ||
% String, ID of the flow | ||
% :return: | ||
% Domain1D instance representing an axisymmetric flow. | ||
% Instance of class :mat:class:`AxisymmetricFlow`. | ||
% | ||
m = Domain1D('StagnationFlow', gas); | ||
|
||
if nargin == 1 | ||
m.setID('flow'); | ||
else | ||
m.setID(id); | ||
methods | ||
|
||
% Constructor | ||
function m = AxisymmetricFlow(gas, id) | ||
|
||
m = m@Domain1D('StagnationFlow', gas); | ||
|
||
if nargin == 1 | ||
m.setID('flow'); | ||
else | ||
m.setID(id); | ||
end | ||
|
||
end | ||
|
||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,31 @@ | ||
function m = FreeFlame(gas, id) | ||
classdef FreeFlame < Domain1D | ||
% Create a freely-propagating flat flame. | ||
% | ||
% m = FreeFlame(gas, id) | ||
% | ||
% :param gas: | ||
% Instance of class :mat:func:`Solution` | ||
% Instance of class :mat:class:`Solution` | ||
% :param id: | ||
% String, ID of the flow | ||
% :return: | ||
% Domain1D instance representing a freely propagating, | ||
% adiabatic flame | ||
% Instance of class :mat:class:`FreeFlame` representing | ||
% a freely propagating, adiabatic flame. | ||
% | ||
m = Domain1D('StagnationFlow', gas, 2); | ||
methods | ||
|
||
% Constructor | ||
function m = FreeFlame(gas, id) | ||
|
||
m = m@Domain1D('StagnationFlow', gas, 2); | ||
|
||
if nargin == 1 | ||
m.setID('flame'); | ||
else | ||
m.setID(id); | ||
end | ||
|
||
end | ||
|
||
if nargin == 1 | ||
m.setID('flame'); | ||
else | ||
m.setID(id); | ||
end | ||
|
||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,32 @@ | ||
function m = Inlet(id) | ||
classdef Inlet < Domain1D | ||
% Create an inlet domain. | ||
% | ||
% m = Inlet(id) | ||
% | ||
% Note that an inlet can only be a terminal domain - it must be | ||
% either the leftmost or rightmost domain in a stack. | ||
% | ||
% :param id: | ||
% String name of the inlet. | ||
% :return: | ||
% Instance of class :mat:func:`Domain1D` representing an inlet. | ||
% Instance of class :mat:class:`Inlet`. | ||
% | ||
m = Domain1D('Inlet1D'); | ||
|
||
if nargin == 0 | ||
m.setID('inlet'); | ||
else | ||
m.setID(id); | ||
methods | ||
|
||
% Constructor | ||
function m = Inlet(id) | ||
|
||
m = m@Domain1D('Inlet1D'); | ||
|
||
if nargin == 0 | ||
m.setID('inlet'); | ||
else | ||
m.setID(id); | ||
end | ||
|
||
end | ||
|
||
end | ||
|
||
end |
Oops, something went wrong.