flow-inviscid 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,18 @@
1
+ """flow-inviscid: inviscid supersonic and hypersonic surface solutions.
2
+
3
+ Stub release v0.1.0 -- no modules implemented yet.
4
+ """
5
+
6
+ # --------------------------------------------------
7
+ # load version
8
+ # --------------------------------------------------
9
+ from __future__ import annotations
10
+
11
+ from importlib.metadata import PackageNotFoundError, version
12
+
13
+ try:
14
+ __version__ = version("flow-inviscid")
15
+ except PackageNotFoundError:
16
+ __version__ = "unknown"
17
+
18
+ __all__ = ["__version__"]
@@ -0,0 +1,11 @@
1
+ """Command-line interface package for flow-inviscid."""
2
+
3
+ # --------------------------------------------------
4
+ # package imports
5
+ # --------------------------------------------------
6
+ from flow_inviscid.cli.app import cli
7
+
8
+ # --------------------------------------------------
9
+ # public api
10
+ # --------------------------------------------------
11
+ __all__ = ["cli"]
@@ -0,0 +1,100 @@
1
+ """Typer application for the flow-inviscid command-line interface."""
2
+
3
+ # --------------------------------------------------
4
+ # load necessary modules
5
+ # --------------------------------------------------
6
+ from __future__ import annotations
7
+
8
+ import logging
9
+ import sys
10
+ from typing import Annotated
11
+
12
+ import typer
13
+
14
+ from flow_inviscid.cli.cmd_newtonian import cmd_newtonian
15
+ from flow_inviscid.cli.cmd_shock_expansion import cmd_shock_expansion
16
+
17
+ # --------------------------------------------------
18
+ # package imports
19
+ # --------------------------------------------------
20
+ from flow_inviscid.cli.cmd_tangent_cone import cmd_tangent_cone
21
+
22
+ # --------------------------------------------------
23
+ # set up typer app
24
+ # --------------------------------------------------
25
+ cli = typer.Typer(
26
+ name="flow-inviscid",
27
+ help="flow-inviscid: inviscid surface conditions for supersonic and hypersonic bodies",
28
+ no_args_is_help=True,
29
+ add_completion=False,
30
+ )
31
+
32
+
33
+ # --------------------------------------------------
34
+ # version callback
35
+ # --------------------------------------------------
36
+ def _version_callback(value: bool) -> None:
37
+ """Print version and exit."""
38
+ if value:
39
+ from flow_inviscid import __version__
40
+ typer.echo(f"flow-inviscid {__version__}")
41
+ raise typer.Exit()
42
+
43
+
44
+ # --------------------------------------------------
45
+ # main callback
46
+ # --------------------------------------------------
47
+ @cli.callback()
48
+ def main(
49
+ ctx: typer.Context,
50
+ version: Annotated[
51
+ bool | None,
52
+ typer.Option(
53
+ "--version",
54
+ "-V",
55
+ help="Show version and exit.",
56
+ callback=_version_callback,
57
+ is_eager=True,
58
+ ),
59
+ ] = None,
60
+ verbose: Annotated[
61
+ bool,
62
+ typer.Option("--verbose", "-v", help="Enable informational output."),
63
+ ] = False,
64
+ ) -> None:
65
+ """flow-inviscid: inviscid surface conditions for supersonic and hypersonic bodies."""
66
+
67
+ # store verbose flag in context for access by subcommands
68
+ ctx.ensure_object(dict)
69
+ ctx.obj["verbose"] = verbose
70
+
71
+ # configure logging if verbose is requested
72
+ if verbose:
73
+ logger = logging.getLogger("flow_inviscid")
74
+ logger.setLevel(logging.INFO)
75
+
76
+ # attach a stderr handler; guard prevents duplicates
77
+ has_stream_handler = any(
78
+ isinstance(h, logging.StreamHandler) and not isinstance(h, logging.FileHandler)
79
+ for h in logger.handlers
80
+ )
81
+ if not has_stream_handler:
82
+ handler = logging.StreamHandler(sys.stderr)
83
+ handler.setLevel(logging.INFO)
84
+ handler.setFormatter(logging.Formatter("[%(levelname)-7s] %(name)s: %(message)s"))
85
+ logger.addHandler(handler)
86
+
87
+
88
+ # --------------------------------------------------
89
+ # command registration
90
+ # --------------------------------------------------
91
+ cli.command("tangent-cone", no_args_is_help=True)(cmd_tangent_cone)
92
+ cli.command("newtonian", no_args_is_help=True)(cmd_newtonian)
93
+ cli.command("shock-expansion", no_args_is_help=True)(cmd_shock_expansion)
94
+
95
+
96
+ # --------------------------------------------------
97
+ # entry point
98
+ # --------------------------------------------------
99
+ if __name__ == "__main__":
100
+ cli()
@@ -0,0 +1,12 @@
1
+ """CLI handler for ``flow-inviscid newtonian``."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import typer
6
+
7
+
8
+ def cmd_newtonian() -> None:
9
+ """Modified Newtonian surface conditions (not yet implemented)."""
10
+ typer.echo("Not implemented yet.", err=True)
11
+ raise typer.Exit(1)
12
+
@@ -0,0 +1,12 @@
1
+ """CLI handler for ``flow-inviscid shock-expansion``."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import typer
6
+
7
+
8
+ def cmd_shock_expansion() -> None:
9
+ """Shock-expansion surface conditions (not yet implemented)."""
10
+ typer.echo("Not implemented yet.", err=True)
11
+ raise typer.Exit(1)
12
+
@@ -0,0 +1,12 @@
1
+ """CLI handler for ``flow-inviscid tangent-cone``."""
2
+
3
+ from __future__ import annotations
4
+
5
+ import typer
6
+
7
+
8
+ def cmd_tangent_cone() -> None:
9
+ """Tangent-cone surface conditions (not yet implemented)."""
10
+ typer.echo("Not implemented yet.", err=True)
11
+ raise typer.Exit(1)
12
+
@@ -0,0 +1,90 @@
1
+ Metadata-Version: 2.4
2
+ Name: flow-inviscid
3
+ Version: 0.1.0
4
+ Summary: Inviscid supersonic and hypersonic surface solutions: Taylor-Maccoll, Newtonian, tangent-cone, shock-expansion
5
+ Author-email: Christoph Hader <chader@arizona.edu>
6
+ License: BSD-3-Clause
7
+ Project-URL: Homepage, https://github.com/uahypersonics/flow-inviscid
8
+ Project-URL: Repository, https://github.com/uahypersonics/flow-inviscid
9
+ Keywords: aerodynamics,hypersonics,inviscid,taylor-maccoll,newtonian
10
+ Classifier: Development Status :: 1 - Planning
11
+ Classifier: Intended Audience :: Science/Research
12
+ Classifier: License :: OSI Approved :: BSD License
13
+ Classifier: Programming Language :: Python :: 3
14
+ Classifier: Topic :: Scientific/Engineering :: Physics
15
+ Requires-Python: >=3.11
16
+ Description-Content-Type: text/markdown
17
+ License-File: LICENSE
18
+ Requires-Dist: numpy>=1.24.0
19
+ Requires-Dist: scipy>=1.10.0
20
+ Requires-Dist: typer>=0.9.0
21
+ Provides-Extra: dev
22
+ Requires-Dist: pytest>=7.0; extra == "dev"
23
+ Requires-Dist: ruff>=0.1.0; extra == "dev"
24
+ Requires-Dist: zensical; extra == "dev"
25
+ Dynamic: license-file
26
+
27
+ # flow-inviscid
28
+
29
+ Computes inviscid surface Mach number, pressure, and temperature along a body
30
+ contour using classical methods such as tangent-cone, tangent-wedge, Modified
31
+ Newtonian, shock-expansion, method of characteristics, and linearized supersonic.
32
+
33
+ [![PyPI](https://img.shields.io/pypi/v/flow-inviscid)](https://pypi.org/project/flow-inviscid/)
34
+ [![Docs](https://img.shields.io/badge/docs-zensical-blue)](https://uahypersonics.github.io/flow-inviscid/)
35
+ [![License](https://img.shields.io/badge/License-BSD_3--Clause-blue.svg)](LICENSE)
36
+ [![Python](https://img.shields.io/badge/python-%E2%89%A53.11-blue.svg)](https://www.python.org/downloads/)
37
+ [![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
38
+
39
+ ## Install
40
+
41
+ ```bash
42
+ pip install flow-inviscid
43
+ ```
44
+
45
+ ## Quick Start
46
+
47
+ under construction
48
+
49
+ ## Documentation
50
+
51
+ ## Validation and Verification
52
+
53
+ under construction
54
+
55
+ ## Code Style
56
+
57
+ This project follows established Python community conventions so that
58
+ contributors can focus on the physics rather than inventing formatting rules.
59
+
60
+ | Convention | What it covers | Reference |
61
+ |---|---|---|
62
+ | [PEP 8](https://peps.python.org/pep-0008/) | Code formatting, naming, whitespace | Python standard style guide |
63
+ | [PEP 257](https://peps.python.org/pep-0257/) | Docstring structure | Python standard docstring conventions |
64
+ | [numpydoc](https://numpydoc.readthedocs.io/en/latest/format.html) | Docstring sections (`Parameters`, `Returns`, `Attributes`) | NumPy/SciPy docstring standard |
65
+ | [Ruff](https://docs.astral.sh/ruff/) | Automated linting and formatting | Enforces PEP 8 compliance automatically |
66
+
67
+ ## Releasing
68
+
69
+ This project uses [Semantic Versioning](https://semver.org/) (`vMAJOR.MINOR.PATCH`):
70
+
71
+ - **MAJOR** (`v1.0.0`): Breaking API changes
72
+ - **MINOR** (`v0.3.0`): New features, backward-compatible
73
+ - **PATCH** (`v0.3.1`): Bug fixes
74
+
75
+ To publish a new version:
76
+
77
+ 1. Verify locally:
78
+ ```bash
79
+ ruff check .
80
+ pytest
81
+ ```
82
+ 2. Commit and push to `main`
83
+ 3. Tag and push:
84
+ ```bash
85
+ git tag -a vMAJOR.MINOR.PATCH -m "Release vMAJOR.MINOR.PATCH"
86
+ git push origin vMAJOR.MINOR.PATCH
87
+ ```
88
+
89
+ ## Citation
90
+
@@ -0,0 +1,14 @@
1
+ flow_inviscid/__init__.py,sha256=JSluizIKOUJRnVfziSlbAaPOHPMsDbG8E9dW01b3AjU,480
2
+ flow_inviscid/cli/__init__.py,sha256=NaWRkyRH053xXwQ6OiAKTOUjfEoQPCvcvCvLK1u2lJk,357
3
+ flow_inviscid/cli/app.py,sha256=hZU1DIA3uEUdrj47PAq-5Cn6SYjq2KN7UhvgbDaWTII,3222
4
+ flow_inviscid/cli/cmd_newtonian.py,sha256=dEYGi59HmESlXrZUJZCJw-YFK2cgD2lVpSXQ9P9fLL8,277
5
+ flow_inviscid/cli/cmd_shock_expansion.py,sha256=fNvJVNu35Awyk5TQa_d6qbEKm_GN9WlDHLMQwif5-Go,286
6
+ flow_inviscid/cli/cmd_tangent_cone.py,sha256=jV8t3rpy15oMi8BCrDH7YEFD9QrYO_lCdQKyB5hf0GM,277
7
+ flow_inviscid-0.1.0.dist-info/licenses/LICENSE,sha256=3UbyOgPeUUDwRiy_Xw1601ZvsOp6tRb38obYvKl4xuw,1500
8
+ flow_inviscid-0.1.0.dist-info/METADATA,sha256=XtTWLrFV7rLu8sxhOmrt45VkgmoS5hOHsQ5uXyW9KMg,3262
9
+ flow_inviscid-0.1.0.dist-info/WHEEL,sha256=K260EYznzXsJYBQGqmI8VTxEdiZYNvDZwW9cBh9-_MA,91
10
+ flow_inviscid-0.1.0.dist-info/entry_points.txt,sha256=gEWfXEZk2XFoqeKt9Mt6rn7hKriW7uLM650MuqWI04A,56
11
+ flow_inviscid-0.1.0.dist-info/scm_file_list.json,sha256=F6i9WJ_CVEo8LI4kSzGU6vSTum0M0h0OGyci6ijuaY8,569
12
+ flow_inviscid-0.1.0.dist-info/scm_version.json,sha256=87mUwkLT-F8PqGC_nIwarXrWXZT0qoQ7Gm94o-ekcBU,160
13
+ flow_inviscid-0.1.0.dist-info/top_level.txt,sha256=gQCqpQXSxDgGYw8D0vZPeJLrUZFWqDsczk7fEszTPPQ,14
14
+ flow_inviscid-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (83.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,2 @@
1
+ [console_scripts]
2
+ flow-inviscid = flow_inviscid.cli:cli
@@ -0,0 +1,28 @@
1
+ BSD 3-Clause License
2
+
3
+ Copyright (c) 2026, uahypersonics
4
+
5
+ Redistribution and use in source and binary forms, with or without
6
+ modification, are permitted provided that the following conditions are met:
7
+
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
10
+
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
14
+
15
+ 3. Neither the name of the copyright holder nor the names of its
16
+ contributors may be used to endorse or promote products derived from
17
+ this software without specific prior written permission.
18
+
19
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
22
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
23
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
25
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
26
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
27
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -0,0 +1,22 @@
1
+ {
2
+ "files": [
3
+ "CITATION.cff",
4
+ "README.md",
5
+ "LICENSE",
6
+ "pyproject.toml",
7
+ "mkdocs.yml",
8
+ "CONTRIBUTING.md",
9
+ ".gitignore",
10
+ "docs/installation.md",
11
+ "docs/index.md",
12
+ "docs/javascripts/mathjax.js",
13
+ "src/flow_inviscid/__init__.py",
14
+ "src/flow_inviscid/cli/cmd_newtonian.py",
15
+ "src/flow_inviscid/cli/__init__.py",
16
+ "src/flow_inviscid/cli/cmd_shock_expansion.py",
17
+ "src/flow_inviscid/cli/app.py",
18
+ "src/flow_inviscid/cli/cmd_tangent_cone.py",
19
+ ".github/workflows/docs.yml",
20
+ ".github/workflows/publish.yml"
21
+ ]
22
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "tag": "0.1.0",
3
+ "distance": 0,
4
+ "node": "gc70194da186a78b90e8f8dbd9735e322fb8f9339",
5
+ "dirty": false,
6
+ "branch": "HEAD",
7
+ "node_date": "2026-07-08"
8
+ }
@@ -0,0 +1 @@
1
+ flow_inviscid