cfd-viz 0.1.0__tar.gz
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.
- cfd_viz-0.1.0/.github/workflows/docs.yml +32 -0
- cfd_viz-0.1.0/.github/workflows/publish.yml +80 -0
- cfd_viz-0.1.0/.github/workflows/test.yml +38 -0
- cfd_viz-0.1.0/.gitignore +209 -0
- cfd_viz-0.1.0/LICENSE +28 -0
- cfd_viz-0.1.0/PKG-INFO +128 -0
- cfd_viz-0.1.0/README.md +94 -0
- cfd_viz-0.1.0/docs/api/cli.md +3 -0
- cfd_viz-0.1.0/docs/api/contour.md +3 -0
- cfd_viz-0.1.0/docs/api/index.md +7 -0
- cfd_viz-0.1.0/docs/api/mesh.md +3 -0
- cfd_viz-0.1.0/docs/index.md +20 -0
- cfd_viz-0.1.0/docs/installation.md +27 -0
- cfd_viz-0.1.0/docs/user-guide/api-usage.md +54 -0
- cfd_viz-0.1.0/docs/user-guide/cli.md +70 -0
- cfd_viz-0.1.0/docs/user-guide/index.md +13 -0
- cfd_viz-0.1.0/mkdocs.yml +100 -0
- cfd_viz-0.1.0/pyproject.toml +79 -0
- cfd_viz-0.1.0/setup.cfg +4 -0
- cfd_viz-0.1.0/src/cfd_viz/__init__.py +1 -0
- cfd_viz-0.1.0/src/cfd_viz/cli.py +127 -0
- cfd_viz-0.1.0/src/cfd_viz/contour.py +93 -0
- cfd_viz-0.1.0/src/cfd_viz/mesh.py +86 -0
- cfd_viz-0.1.0/src/cfd_viz.egg-info/PKG-INFO +128 -0
- cfd_viz-0.1.0/src/cfd_viz.egg-info/SOURCES.txt +29 -0
- cfd_viz-0.1.0/src/cfd_viz.egg-info/dependency_links.txt +1 -0
- cfd_viz-0.1.0/src/cfd_viz.egg-info/entry_points.txt +2 -0
- cfd_viz-0.1.0/src/cfd_viz.egg-info/requires.txt +14 -0
- cfd_viz-0.1.0/src/cfd_viz.egg-info/top_level.txt +1 -0
- cfd_viz-0.1.0/tests/__init__.py +0 -0
- cfd_viz-0.1.0/tests/test_viz.py +199 -0
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
name: Docs
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
permissions:
|
|
10
|
+
contents: write
|
|
11
|
+
|
|
12
|
+
jobs:
|
|
13
|
+
docs:
|
|
14
|
+
runs-on: ubuntu-latest
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
|
|
19
|
+
- name: Set up Python
|
|
20
|
+
uses: actions/setup-python@v5
|
|
21
|
+
with:
|
|
22
|
+
python-version: "3.13"
|
|
23
|
+
|
|
24
|
+
- name: Install dependencies
|
|
25
|
+
run: pip install -e ".[docs]"
|
|
26
|
+
|
|
27
|
+
- name: Build docs
|
|
28
|
+
run: mkdocs build --strict
|
|
29
|
+
|
|
30
|
+
- name: Deploy docs
|
|
31
|
+
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
|
32
|
+
run: mkdocs gh-deploy --force
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
name: Publish to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
tags:
|
|
6
|
+
- "v*"
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
test:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
strategy:
|
|
12
|
+
matrix:
|
|
13
|
+
python-version: ["3.11", "3.12", "3.13"]
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@v4
|
|
16
|
+
|
|
17
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
18
|
+
uses: actions/setup-python@v5
|
|
19
|
+
with:
|
|
20
|
+
python-version: ${{ matrix.python-version }}
|
|
21
|
+
|
|
22
|
+
- name: Install package
|
|
23
|
+
run: pip install -e ".[dev]"
|
|
24
|
+
|
|
25
|
+
- name: Lint with ruff
|
|
26
|
+
run: ruff check src/
|
|
27
|
+
|
|
28
|
+
- name: Run tests
|
|
29
|
+
run: pytest tests/ -q
|
|
30
|
+
|
|
31
|
+
build:
|
|
32
|
+
needs: test
|
|
33
|
+
runs-on: ubuntu-latest
|
|
34
|
+
steps:
|
|
35
|
+
- uses: actions/checkout@v4
|
|
36
|
+
|
|
37
|
+
- name: Set up Python
|
|
38
|
+
uses: actions/setup-python@v5
|
|
39
|
+
with:
|
|
40
|
+
python-version: "3.11"
|
|
41
|
+
|
|
42
|
+
- name: Install build tools
|
|
43
|
+
run: pip install build
|
|
44
|
+
|
|
45
|
+
- name: Build package
|
|
46
|
+
run: python -m build
|
|
47
|
+
|
|
48
|
+
- name: Upload dist artifacts
|
|
49
|
+
uses: actions/upload-artifact@v4
|
|
50
|
+
with:
|
|
51
|
+
name: dist
|
|
52
|
+
path: dist/
|
|
53
|
+
|
|
54
|
+
publish:
|
|
55
|
+
needs: build
|
|
56
|
+
runs-on: ubuntu-latest
|
|
57
|
+
environment: pypi
|
|
58
|
+
permissions:
|
|
59
|
+
id-token: write
|
|
60
|
+
steps:
|
|
61
|
+
- name: Download dist artifacts
|
|
62
|
+
uses: actions/download-artifact@v4
|
|
63
|
+
with:
|
|
64
|
+
name: dist
|
|
65
|
+
path: dist/
|
|
66
|
+
|
|
67
|
+
- name: Publish to PyPI
|
|
68
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
69
|
+
|
|
70
|
+
release:
|
|
71
|
+
needs: publish
|
|
72
|
+
runs-on: ubuntu-latest
|
|
73
|
+
permissions:
|
|
74
|
+
contents: write
|
|
75
|
+
steps:
|
|
76
|
+
- uses: actions/checkout@v4
|
|
77
|
+
- name: Create GitHub Release
|
|
78
|
+
run: gh release create "${{ github.ref_name }}" --generate-notes
|
|
79
|
+
env:
|
|
80
|
+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
name: Test
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [main]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [main]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
strategy:
|
|
13
|
+
matrix:
|
|
14
|
+
python-version: ["3.11", "3.12", "3.13"]
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v4
|
|
18
|
+
|
|
19
|
+
- name: Set up Python ${{ matrix.python-version }}
|
|
20
|
+
uses: actions/setup-python@v5
|
|
21
|
+
with:
|
|
22
|
+
python-version: ${{ matrix.python-version }}
|
|
23
|
+
|
|
24
|
+
- name: Install dependencies
|
|
25
|
+
run: pip install -e ".[dev]"
|
|
26
|
+
|
|
27
|
+
- name: Lint
|
|
28
|
+
run: ruff check src/
|
|
29
|
+
|
|
30
|
+
- name: Test
|
|
31
|
+
run: pytest tests/ --cov --cov-report=term-missing --cov-report=xml -q
|
|
32
|
+
|
|
33
|
+
- name: Upload coverage
|
|
34
|
+
if: matrix.python-version == '3.13'
|
|
35
|
+
uses: codecov/codecov-action@v5
|
|
36
|
+
with:
|
|
37
|
+
token: ${{ secrets.CODECOV_TOKEN }}
|
|
38
|
+
slug: uahypersonics/cfd-viz
|
cfd_viz-0.1.0/.gitignore
ADDED
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
# Byte-compiled / optimized / DLL files
|
|
2
|
+
__pycache__/
|
|
3
|
+
*.py[codz]
|
|
4
|
+
*$py.class
|
|
5
|
+
|
|
6
|
+
# C extensions
|
|
7
|
+
*.so
|
|
8
|
+
|
|
9
|
+
# Distribution / packaging
|
|
10
|
+
.Python
|
|
11
|
+
build/
|
|
12
|
+
develop-eggs/
|
|
13
|
+
dist/
|
|
14
|
+
downloads/
|
|
15
|
+
eggs/
|
|
16
|
+
.eggs/
|
|
17
|
+
lib/
|
|
18
|
+
lib64/
|
|
19
|
+
parts/
|
|
20
|
+
sdist/
|
|
21
|
+
var/
|
|
22
|
+
wheels/
|
|
23
|
+
share/python-wheels/
|
|
24
|
+
*.egg-info/
|
|
25
|
+
.installed.cfg
|
|
26
|
+
*.egg
|
|
27
|
+
MANIFEST
|
|
28
|
+
|
|
29
|
+
# PyInstaller
|
|
30
|
+
# Usually these files are written by a python script from a template
|
|
31
|
+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
32
|
+
*.manifest
|
|
33
|
+
*.spec
|
|
34
|
+
|
|
35
|
+
# Installer logs
|
|
36
|
+
pip-log.txt
|
|
37
|
+
pip-delete-this-directory.txt
|
|
38
|
+
|
|
39
|
+
# Unit test / coverage reports
|
|
40
|
+
htmlcov/
|
|
41
|
+
.tox/
|
|
42
|
+
.nox/
|
|
43
|
+
.coverage
|
|
44
|
+
.coverage.*
|
|
45
|
+
.cache
|
|
46
|
+
nosetests.xml
|
|
47
|
+
coverage.xml
|
|
48
|
+
*.cover
|
|
49
|
+
*.py.cover
|
|
50
|
+
.hypothesis/
|
|
51
|
+
.pytest_cache/
|
|
52
|
+
cover/
|
|
53
|
+
|
|
54
|
+
# Translations
|
|
55
|
+
*.mo
|
|
56
|
+
*.pot
|
|
57
|
+
|
|
58
|
+
# Django stuff:
|
|
59
|
+
*.log
|
|
60
|
+
local_settings.py
|
|
61
|
+
db.sqlite3
|
|
62
|
+
db.sqlite3-journal
|
|
63
|
+
|
|
64
|
+
# Flask stuff:
|
|
65
|
+
instance/
|
|
66
|
+
.webassets-cache
|
|
67
|
+
|
|
68
|
+
# Scrapy stuff:
|
|
69
|
+
.scrapy
|
|
70
|
+
|
|
71
|
+
# Sphinx documentation
|
|
72
|
+
docs/_build/
|
|
73
|
+
|
|
74
|
+
# PyBuilder
|
|
75
|
+
.pybuilder/
|
|
76
|
+
target/
|
|
77
|
+
|
|
78
|
+
# Jupyter Notebook
|
|
79
|
+
.ipynb_checkpoints
|
|
80
|
+
|
|
81
|
+
# IPython
|
|
82
|
+
profile_default/
|
|
83
|
+
ipython_config.py
|
|
84
|
+
|
|
85
|
+
# pyenv
|
|
86
|
+
# For a library or package, you might want to ignore these files since the code is
|
|
87
|
+
# intended to run in multiple environments; otherwise, check them in:
|
|
88
|
+
# .python-version
|
|
89
|
+
|
|
90
|
+
# pipenv
|
|
91
|
+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
92
|
+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
93
|
+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
94
|
+
# install all needed dependencies.
|
|
95
|
+
#Pipfile.lock
|
|
96
|
+
|
|
97
|
+
# UV
|
|
98
|
+
# Similar to Pipfile.lock, it is generally recommended to include uv.lock in version control.
|
|
99
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
100
|
+
# commonly ignored for libraries.
|
|
101
|
+
#uv.lock
|
|
102
|
+
|
|
103
|
+
# poetry
|
|
104
|
+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
|
|
105
|
+
# This is especially recommended for binary packages to ensure reproducibility, and is more
|
|
106
|
+
# commonly ignored for libraries.
|
|
107
|
+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
|
|
108
|
+
#poetry.lock
|
|
109
|
+
#poetry.toml
|
|
110
|
+
|
|
111
|
+
# pdm
|
|
112
|
+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
|
|
113
|
+
# pdm recommends including project-wide configuration in pdm.toml, but excluding .pdm-python.
|
|
114
|
+
# https://pdm-project.org/en/latest/usage/project/#working-with-version-control
|
|
115
|
+
#pdm.lock
|
|
116
|
+
#pdm.toml
|
|
117
|
+
.pdm-python
|
|
118
|
+
.pdm-build/
|
|
119
|
+
|
|
120
|
+
# pixi
|
|
121
|
+
# Similar to Pipfile.lock, it is generally recommended to include pixi.lock in version control.
|
|
122
|
+
#pixi.lock
|
|
123
|
+
# Pixi creates a virtual environment in the .pixi directory, just like venv module creates one
|
|
124
|
+
# in the .venv directory. It is recommended not to include this directory in version control.
|
|
125
|
+
.pixi
|
|
126
|
+
|
|
127
|
+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
|
|
128
|
+
__pypackages__/
|
|
129
|
+
|
|
130
|
+
# Celery stuff
|
|
131
|
+
celerybeat-schedule
|
|
132
|
+
celerybeat.pid
|
|
133
|
+
|
|
134
|
+
# SageMath parsed files
|
|
135
|
+
*.sage.py
|
|
136
|
+
|
|
137
|
+
# Environments
|
|
138
|
+
.env
|
|
139
|
+
.envrc
|
|
140
|
+
.venv
|
|
141
|
+
env/
|
|
142
|
+
venv/
|
|
143
|
+
ENV/
|
|
144
|
+
env.bak/
|
|
145
|
+
venv.bak/
|
|
146
|
+
|
|
147
|
+
# Spyder project settings
|
|
148
|
+
.spyderproject
|
|
149
|
+
.spyproject
|
|
150
|
+
|
|
151
|
+
# Rope project settings
|
|
152
|
+
.ropeproject
|
|
153
|
+
|
|
154
|
+
# mkdocs documentation
|
|
155
|
+
/site
|
|
156
|
+
|
|
157
|
+
# mypy
|
|
158
|
+
.mypy_cache/
|
|
159
|
+
.dmypy.json
|
|
160
|
+
dmypy.json
|
|
161
|
+
|
|
162
|
+
# Pyre type checker
|
|
163
|
+
.pyre/
|
|
164
|
+
|
|
165
|
+
# pytype static type analyzer
|
|
166
|
+
.pytype/
|
|
167
|
+
|
|
168
|
+
# Cython debug symbols
|
|
169
|
+
cython_debug/
|
|
170
|
+
|
|
171
|
+
# PyCharm
|
|
172
|
+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
|
|
173
|
+
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
|
|
174
|
+
# and can be added to the global gitignore or merged into this file. For a more nuclear
|
|
175
|
+
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
|
|
176
|
+
#.idea/
|
|
177
|
+
|
|
178
|
+
# Abstra
|
|
179
|
+
# Abstra is an AI-powered process automation framework.
|
|
180
|
+
# Ignore directories containing user credentials, local state, and settings.
|
|
181
|
+
# Learn more at https://abstra.io/docs
|
|
182
|
+
.abstra/
|
|
183
|
+
|
|
184
|
+
# Visual Studio Code
|
|
185
|
+
# Visual Studio Code specific template is maintained in a separate VisualStudioCode.gitignore
|
|
186
|
+
# that can be found at https://github.com/github/gitignore/blob/main/Global/VisualStudioCode.gitignore
|
|
187
|
+
# and can be added to the global gitignore or merged into this file. However, if you prefer,
|
|
188
|
+
# you could uncomment the following to ignore the entire vscode folder
|
|
189
|
+
# .vscode/
|
|
190
|
+
|
|
191
|
+
# Ruff stuff:
|
|
192
|
+
.ruff_cache/
|
|
193
|
+
|
|
194
|
+
# PyPI configuration file
|
|
195
|
+
.pypirc
|
|
196
|
+
|
|
197
|
+
# Cursor
|
|
198
|
+
# Cursor is an AI-powered code editor. `.cursorignore` specifies files/directories to
|
|
199
|
+
# exclude from AI features like autocomplete and code analysis. Recommended for sensitive data
|
|
200
|
+
# refer to https://docs.cursor.com/context/ignore-files
|
|
201
|
+
.cursorignore
|
|
202
|
+
.cursorindexingignore
|
|
203
|
+
|
|
204
|
+
# Marimo
|
|
205
|
+
marimo/_static/
|
|
206
|
+
marimo/_lsp/
|
|
207
|
+
__marimo__/
|
|
208
|
+
|
|
209
|
+
*DS_Store*
|
cfd_viz-0.1.0/LICENSE
ADDED
|
@@ -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.
|
cfd_viz-0.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: cfd-viz
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: Lightweight visualization CLI for structured CFD datasets
|
|
5
|
+
Author-email: Christoph Hader <chader@arizona.edu>
|
|
6
|
+
License: BSD-3-Clause
|
|
7
|
+
Project-URL: Homepage, https://github.com/uahypersonics/cfd-viz
|
|
8
|
+
Project-URL: Repository, https://github.com/uahypersonics/cfd-viz
|
|
9
|
+
Keywords: cfd,visualization,mesh,contour,matplotlib
|
|
10
|
+
Classifier: Development Status :: 3 - Alpha
|
|
11
|
+
Classifier: Intended Audience :: Science/Research
|
|
12
|
+
Classifier: License :: OSI Approved :: BSD License
|
|
13
|
+
Classifier: Programming Language :: Python :: 3
|
|
14
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
15
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
16
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
17
|
+
Classifier: Topic :: Scientific/Engineering :: Physics
|
|
18
|
+
Requires-Python: >=3.11
|
|
19
|
+
Description-Content-Type: text/markdown
|
|
20
|
+
License-File: LICENSE
|
|
21
|
+
Requires-Dist: cfd-io>=0.1.0
|
|
22
|
+
Requires-Dist: matplotlib>=3.7.0
|
|
23
|
+
Requires-Dist: numpy>=1.24.0
|
|
24
|
+
Requires-Dist: typer>=0.9.0
|
|
25
|
+
Provides-Extra: dev
|
|
26
|
+
Requires-Dist: pytest>=7.0; extra == "dev"
|
|
27
|
+
Requires-Dist: pytest-cov>=4.0; extra == "dev"
|
|
28
|
+
Requires-Dist: ruff>=0.1.0; extra == "dev"
|
|
29
|
+
Provides-Extra: docs
|
|
30
|
+
Requires-Dist: mkdocs<2,>=1.5; extra == "docs"
|
|
31
|
+
Requires-Dist: mkdocs-material>=9.0; extra == "docs"
|
|
32
|
+
Requires-Dist: mkdocstrings[python]>=0.24; extra == "docs"
|
|
33
|
+
Dynamic: license-file
|
|
34
|
+
|
|
35
|
+
# cfd-viz
|
|
36
|
+
|
|
37
|
+
Lightweight visualization CLI for structured CFD datasets.
|
|
38
|
+
|
|
39
|
+
[](https://github.com/uahypersonics/cfd-viz/actions/workflows/test.yml)
|
|
40
|
+
[](https://codecov.io/gh/uahypersonics/cfd-viz)
|
|
41
|
+
[](https://pypi.org/project/cfd-viz/)
|
|
42
|
+
[](https://uahypersonics.github.io/cfd-viz/)
|
|
43
|
+
[](LICENSE)
|
|
44
|
+
[](https://www.python.org/downloads/)
|
|
45
|
+
[](https://github.com/astral-sh/ruff)
|
|
46
|
+
|
|
47
|
+
## Install
|
|
48
|
+
|
|
49
|
+
```bash
|
|
50
|
+
pip install cfd-viz
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Quick Start
|
|
54
|
+
|
|
55
|
+
### CLI
|
|
56
|
+
|
|
57
|
+
```bash
|
|
58
|
+
# display a mesh
|
|
59
|
+
cfd-viz mesh grid.su2
|
|
60
|
+
|
|
61
|
+
# skip every other grid line for dense meshes
|
|
62
|
+
cfd-viz mesh grid.su2 --skip 4
|
|
63
|
+
|
|
64
|
+
# save to file instead of displaying
|
|
65
|
+
cfd-viz mesh grid.su2 --skip 2 --output mesh.png
|
|
66
|
+
|
|
67
|
+
# display a filled contour
|
|
68
|
+
cfd-viz contour solution.h5 --field pres
|
|
69
|
+
|
|
70
|
+
# save contour to file
|
|
71
|
+
cfd-viz contour solution.h5 --field pres --output pres.png
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Python API
|
|
75
|
+
|
|
76
|
+
```python
|
|
77
|
+
from cfd_io import read_file
|
|
78
|
+
from cfd_viz.mesh import plot_mesh
|
|
79
|
+
from cfd_viz.contour import plot_contour
|
|
80
|
+
|
|
81
|
+
ds = read_file("grid.su2")
|
|
82
|
+
plot_mesh(ds.grid.x, ds.grid.y, skip=2)
|
|
83
|
+
|
|
84
|
+
ds = read_file("solution.h5")
|
|
85
|
+
plot_contour(ds.grid.x, ds.grid.y, ds.flow["pres"].data, field_name="pres")
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
## Testing
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
pytest tests/ -q
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## Code Style
|
|
95
|
+
|
|
96
|
+
This project follows established Python community conventions so that
|
|
97
|
+
contributors can focus on the physics rather than inventing formatting rules.
|
|
98
|
+
|
|
99
|
+
| Convention | What it covers | Reference |
|
|
100
|
+
|---|---|---|
|
|
101
|
+
| [PEP 8](https://peps.python.org/pep-0008/) | Code formatting, naming, whitespace | Python standard style guide |
|
|
102
|
+
| [PEP 257](https://peps.python.org/pep-0257/) | Docstring structure (triple-quoted, imperative mood) | Python standard docstring conventions |
|
|
103
|
+
| [Google style](https://google.github.io/styleguide/pyguide.html#38-comments-and-docstrings) | Docstring sections (`Args`, `Returns`, `Raises`) | Google Python style guide |
|
|
104
|
+
| [Ruff](https://docs.astral.sh/ruff/) | Automated linting and formatting | Enforces PEP 8 compliance automatically |
|
|
105
|
+
| [typing / TYPE_CHECKING](https://docs.python.org/3/library/typing.html#typing.TYPE_CHECKING) | Type hints for IDE support and static analysis | Python standard library |
|
|
106
|
+
|
|
107
|
+
## Versioning & Releasing
|
|
108
|
+
|
|
109
|
+
This project uses [Semantic Versioning](https://semver.org/) (`vMAJOR.MINOR.PATCH`):
|
|
110
|
+
|
|
111
|
+
- **MAJOR** (`v1.0.0`, `v2.0.0`): Breaking API changes
|
|
112
|
+
- **MINOR** (`v0.3.0`, `v0.4.0`): New features, backward-compatible
|
|
113
|
+
- **PATCH** (`v0.3.1`, `v0.3.2`): Bug fixes, minor corrections
|
|
114
|
+
|
|
115
|
+
To publish a new version to [PyPI](https://pypi.org/project/cfd-viz/):
|
|
116
|
+
|
|
117
|
+
1. Commit and push to `main`
|
|
118
|
+
2. Tag and push:
|
|
119
|
+
```bash
|
|
120
|
+
git tag -a vMAJOR.MINOR.PATCH -m "Release vMAJOR.MINOR.PATCH"
|
|
121
|
+
git push origin vMAJOR.MINOR.PATCH
|
|
122
|
+
```
|
|
123
|
+
|
|
124
|
+
The GitHub Actions workflow will automatically build and publish to PyPI via Trusted Publishing.
|
|
125
|
+
|
|
126
|
+
## License
|
|
127
|
+
|
|
128
|
+
BSD-3-Clause. See [LICENSE](LICENSE) for details.
|
cfd_viz-0.1.0/README.md
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
# cfd-viz
|
|
2
|
+
|
|
3
|
+
Lightweight visualization CLI for structured CFD datasets.
|
|
4
|
+
|
|
5
|
+
[](https://github.com/uahypersonics/cfd-viz/actions/workflows/test.yml)
|
|
6
|
+
[](https://codecov.io/gh/uahypersonics/cfd-viz)
|
|
7
|
+
[](https://pypi.org/project/cfd-viz/)
|
|
8
|
+
[](https://uahypersonics.github.io/cfd-viz/)
|
|
9
|
+
[](LICENSE)
|
|
10
|
+
[](https://www.python.org/downloads/)
|
|
11
|
+
[](https://github.com/astral-sh/ruff)
|
|
12
|
+
|
|
13
|
+
## Install
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
pip install cfd-viz
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Quick Start
|
|
20
|
+
|
|
21
|
+
### CLI
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
# display a mesh
|
|
25
|
+
cfd-viz mesh grid.su2
|
|
26
|
+
|
|
27
|
+
# skip every other grid line for dense meshes
|
|
28
|
+
cfd-viz mesh grid.su2 --skip 4
|
|
29
|
+
|
|
30
|
+
# save to file instead of displaying
|
|
31
|
+
cfd-viz mesh grid.su2 --skip 2 --output mesh.png
|
|
32
|
+
|
|
33
|
+
# display a filled contour
|
|
34
|
+
cfd-viz contour solution.h5 --field pres
|
|
35
|
+
|
|
36
|
+
# save contour to file
|
|
37
|
+
cfd-viz contour solution.h5 --field pres --output pres.png
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
### Python API
|
|
41
|
+
|
|
42
|
+
```python
|
|
43
|
+
from cfd_io import read_file
|
|
44
|
+
from cfd_viz.mesh import plot_mesh
|
|
45
|
+
from cfd_viz.contour import plot_contour
|
|
46
|
+
|
|
47
|
+
ds = read_file("grid.su2")
|
|
48
|
+
plot_mesh(ds.grid.x, ds.grid.y, skip=2)
|
|
49
|
+
|
|
50
|
+
ds = read_file("solution.h5")
|
|
51
|
+
plot_contour(ds.grid.x, ds.grid.y, ds.flow["pres"].data, field_name="pres")
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
## Testing
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
pytest tests/ -q
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
## Code Style
|
|
61
|
+
|
|
62
|
+
This project follows established Python community conventions so that
|
|
63
|
+
contributors can focus on the physics rather than inventing formatting rules.
|
|
64
|
+
|
|
65
|
+
| Convention | What it covers | Reference |
|
|
66
|
+
|---|---|---|
|
|
67
|
+
| [PEP 8](https://peps.python.org/pep-0008/) | Code formatting, naming, whitespace | Python standard style guide |
|
|
68
|
+
| [PEP 257](https://peps.python.org/pep-0257/) | Docstring structure (triple-quoted, imperative mood) | Python standard docstring conventions |
|
|
69
|
+
| [Google style](https://google.github.io/styleguide/pyguide.html#38-comments-and-docstrings) | Docstring sections (`Args`, `Returns`, `Raises`) | Google Python style guide |
|
|
70
|
+
| [Ruff](https://docs.astral.sh/ruff/) | Automated linting and formatting | Enforces PEP 8 compliance automatically |
|
|
71
|
+
| [typing / TYPE_CHECKING](https://docs.python.org/3/library/typing.html#typing.TYPE_CHECKING) | Type hints for IDE support and static analysis | Python standard library |
|
|
72
|
+
|
|
73
|
+
## Versioning & Releasing
|
|
74
|
+
|
|
75
|
+
This project uses [Semantic Versioning](https://semver.org/) (`vMAJOR.MINOR.PATCH`):
|
|
76
|
+
|
|
77
|
+
- **MAJOR** (`v1.0.0`, `v2.0.0`): Breaking API changes
|
|
78
|
+
- **MINOR** (`v0.3.0`, `v0.4.0`): New features, backward-compatible
|
|
79
|
+
- **PATCH** (`v0.3.1`, `v0.3.2`): Bug fixes, minor corrections
|
|
80
|
+
|
|
81
|
+
To publish a new version to [PyPI](https://pypi.org/project/cfd-viz/):
|
|
82
|
+
|
|
83
|
+
1. Commit and push to `main`
|
|
84
|
+
2. Tag and push:
|
|
85
|
+
```bash
|
|
86
|
+
git tag -a vMAJOR.MINOR.PATCH -m "Release vMAJOR.MINOR.PATCH"
|
|
87
|
+
git push origin vMAJOR.MINOR.PATCH
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
The GitHub Actions workflow will automatically build and publish to PyPI via Trusted Publishing.
|
|
91
|
+
|
|
92
|
+
## License
|
|
93
|
+
|
|
94
|
+
BSD-3-Clause. See [LICENSE](LICENSE) for details.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# cfd-viz
|
|
2
|
+
|
|
3
|
+
Lightweight visualization CLI for structured CFD datasets.
|
|
4
|
+
|
|
5
|
+
## Quick Start
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pip install cfd-viz
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
# display a mesh
|
|
13
|
+
cfd-viz mesh grid.su2
|
|
14
|
+
|
|
15
|
+
# display a contour
|
|
16
|
+
cfd-viz contour solution.h5 --field pres
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
See the [Installation](installation.md) page for more options, or the
|
|
20
|
+
[User Guide](user-guide/index.md) to get started.
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
# Installation
|
|
2
|
+
|
|
3
|
+
## Requirements
|
|
4
|
+
|
|
5
|
+
- Python 3.11 or later
|
|
6
|
+
|
|
7
|
+
## From PyPI
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pip install cfd-viz
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## From Source
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
git clone https://github.com/uahypersonics/cfd-viz.git
|
|
17
|
+
cd cfd-viz
|
|
18
|
+
pip install -e .
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Development Installation
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
pip install -e ".[dev]"
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
This installs testing and linting tools (`pytest`, `pytest-cov`, `ruff`).
|