Skip to content

Commit

Permalink
update license to BSD 3-Clause
Browse files Browse the repository at this point in the history
add copyrights in files
update deps
run flake8 in all dirs
update README
add history
add Guy to authors
set version to 0.0.0
  • Loading branch information
adriendelsalle committed May 25, 2022
1 parent b5e1968 commit 3276e6f
Show file tree
Hide file tree
Showing 53 changed files with 202 additions and 14 deletions.
1 change: 0 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
[flake8]
max-line-length=100
extend-ignore=E203,D104,D100,I004
exclude=*/tests/*,docs/source/tools/*
3 changes: 2 additions & 1 deletion AUTHORS.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
* Adrien DELSALLE <[email protected]>
- Adrien DELSALLE <[email protected]>
- Guy de Spiegeleer <[email protected]>
14 changes: 14 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# History

## 0.0.1 (2022-05-25)

### Features

- First release
- base models added: compressor, turbine, combustor, etc.
- systems/assemblies added: fan module, gas generator, etc.

### Code quality & packaging

- Package structure (license file, etc.)
- Tests using `pytest`
30 changes: 28 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,3 +1,29 @@
Copyright (c) 2022 twiinIT
BSD 3-Clause License

All rights reserved
Copyright (c) 2022, twiinIT
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Turbomachinery demos
# pyTurbo

This repository contains demonstration of turbomachinery applications.
`pyTurbo` is a library for turbomachinery simulation.

This project primarilly focuses on learning how components and assemblies of turbomachinery parts are interacting during operation but also how they are designed together.

Note: the modelings are simplified/simplistic, they do **not** match precision expectations for industrial use.
4 changes: 4 additions & 0 deletions environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ channels:
dependencies:
- cosapp
- pyoccad
- numpy
- pythreejs
- pytest
- pre-commit
- black
- flake8
- isort
7 changes: 7 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: pyturbo
channels:
- conda-forge
dependencies:
- cosapp
- pyoccad
- numpy
2 changes: 2 additions & 0 deletions pyturbo/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause
5 changes: 4 additions & 1 deletion pyturbo/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
__version__ = "0.0.1"
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

__version__ = "0.0.0"
2 changes: 2 additions & 0 deletions pyturbo/mft/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause
3 changes: 3 additions & 0 deletions pyturbo/mft/compressor.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

import numpy as np


Expand Down
3 changes: 3 additions & 0 deletions pyturbo/ports/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

from pyturbo.ports.fluidport import FluidPort # noqa
from pyturbo.ports.keypoints import KeypointsPort # noqa
from pyturbo.ports.shaftport import ShaftPort # noqa
3 changes: 3 additions & 0 deletions pyturbo/ports/fluidport.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

from cosapp.ports import Port


Expand Down
3 changes: 3 additions & 0 deletions pyturbo/ports/keypoints.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

import numpy as np
from cosapp.ports import Port

Expand Down
3 changes: 3 additions & 0 deletions pyturbo/ports/shaftport.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

from cosapp.ports import Port


Expand Down
3 changes: 3 additions & 0 deletions pyturbo/systems/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

from pyturbo.systems.combustor import ( # noqa
CombustorSimple,
CombustorSimpleAero,
Expand Down
3 changes: 3 additions & 0 deletions pyturbo/systems/atmosphere.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

from cosapp.systems import System

from pyturbo.ports.fluidport import FluidPort
Expand Down
3 changes: 3 additions & 0 deletions pyturbo/systems/combustor/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

from pyturbo.systems.combustor.combustor_simple_aero import CombustorSimpleAero # noqa
from pyturbo.systems.combustor.combustor_simple_geom import CombustorSimpleGeom # noqa

Expand Down
3 changes: 3 additions & 0 deletions pyturbo/systems/combustor/combustor_simple.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

from cosapp.systems import System

from pyturbo.systems.combustor import CombustorSimpleAero, CombustorSimpleGeom
Expand Down
3 changes: 3 additions & 0 deletions pyturbo/systems/combustor/combustor_simple_aero.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

from cosapp.systems import System

from pyturbo.ports import FluidPort
Expand Down
3 changes: 3 additions & 0 deletions pyturbo/systems/combustor/combustor_simple_geom.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

from pyturbo.systems.generic.generic_simple_geom import GenericSimpleGeom


Expand Down
3 changes: 3 additions & 0 deletions pyturbo/systems/compressor/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

from pyturbo.systems.compressor.compressor_mft_aero import CompressorMftAero # noqa
from pyturbo.systems.compressor.compressor_simple_aero import CompressorSimpleAero # noqa
from pyturbo.systems.compressor.compressor_simple_geom import CompressorSimpleGeom # noqa
Expand Down
3 changes: 3 additions & 0 deletions pyturbo/systems/compressor/compressor_mft_aero.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

import numpy as np
from cosapp.systems import System

Expand Down
3 changes: 3 additions & 0 deletions pyturbo/systems/compressor/compressor_simple.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

from cosapp.systems import System

from pyturbo.systems.compressor import CompressorSimpleAero, CompressorSimpleGeom
Expand Down
3 changes: 3 additions & 0 deletions pyturbo/systems/compressor/compressor_simple_aero.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

from math import sqrt

import numpy as np
Expand Down
3 changes: 3 additions & 0 deletions pyturbo/systems/compressor/compressor_simple_geom.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

import numpy as np

from pyturbo.systems.generic.generic_simple_geom import GenericSimpleGeom
Expand Down
3 changes: 3 additions & 0 deletions pyturbo/systems/gas_generator/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

from pyturbo.systems.gas_generator.gas_generator_simple import ( # noqa # isort: skip
GasGeneratorSimple,
)
Expand Down
3 changes: 3 additions & 0 deletions pyturbo/systems/gas_generator/gas_generator_simple.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

from cosapp.systems import System
from pyoccad.create import CreateTopology

Expand Down
3 changes: 3 additions & 0 deletions pyturbo/systems/gas_generator/gas_generator_simple_aero.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

from cosapp.systems import System

from pyturbo.systems import CombustorSimpleAero, CompressorSimpleAero, TurbineSimpleAero
Expand Down
3 changes: 3 additions & 0 deletions pyturbo/systems/gas_generator/gas_generator_simple_geom.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

import numpy as np
from cosapp.systems import System

Expand Down
3 changes: 3 additions & 0 deletions pyturbo/systems/generic/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

from pyturbo.systems.generic.generic_simple_geom import GenericSimpleGeom # noqa
3 changes: 3 additions & 0 deletions pyturbo/systems/generic/generic_simple_geom.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

import numpy as np
from cosapp.systems import System
from pyoccad.create import CreateAxis, CreateRevolution, CreateTopology, CreateWire
Expand Down
3 changes: 3 additions & 0 deletions pyturbo/systems/inlet_simple_aero.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

from cosapp.systems import System

from pyturbo.ports import FluidPort
Expand Down
3 changes: 3 additions & 0 deletions pyturbo/systems/mixer_aero.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

from cosapp.systems import System

from pyturbo.ports.fluidport import FluidPort
Expand Down
3 changes: 3 additions & 0 deletions pyturbo/systems/nacelle_simple_geom.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

import numpy as np
from cosapp.systems import System
from OCC.Core.gp import gp_Pnt
Expand Down
3 changes: 3 additions & 0 deletions pyturbo/systems/nozzle_simple_aero.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

from math import sqrt

from cosapp.systems import System
Expand Down
3 changes: 3 additions & 0 deletions pyturbo/systems/shaft.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

from typing import Collection

import numpy as np
Expand Down
3 changes: 3 additions & 0 deletions pyturbo/systems/turbine/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

from pyturbo.systems.turbine.turbine_simple_aero import TurbineSimpleAero # noqa
from pyturbo.systems.turbine.turbine_simple_geom import TurbineSimpleGeom # noqa

Expand Down
3 changes: 3 additions & 0 deletions pyturbo/systems/turbine/turbine_simple.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

from cosapp.systems import System

from pyturbo.systems.turbine import TurbineSimpleAero, TurbineSimpleGeom
Expand Down
3 changes: 3 additions & 0 deletions pyturbo/systems/turbine/turbine_simple_aero.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

from math import sqrt

import numpy as np
Expand Down
3 changes: 3 additions & 0 deletions pyturbo/systems/turbine/turbine_simple_geom.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

import numpy as np

from pyturbo.systems.generic.generic_simple_geom import GenericSimpleGeom
Expand Down
3 changes: 3 additions & 0 deletions pyturbo/systems/turbofan_weight.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

from cosapp.systems import System


Expand Down
2 changes: 2 additions & 0 deletions pyturbo/thermo/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause
3 changes: 3 additions & 0 deletions pyturbo/thermo/ideal_gas.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

import numpy as np


Expand Down
16 changes: 9 additions & 7 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

[metadata]
name = pyturbo
version = attr: pyturbo._version.__version__
author = Adrien DELSALLE
description = twiinIT demos based on simple use cases
author = twiinIT
description = turbomachinery models
long_description = file: README.md, HISTORY.md
home-page = http://github/twiinit/turbomachinery-demos.git
license = Proprietary License
license-file = LICENSE
keywords = demos, twiinit, turbomachinery
home-page = http://github/twiinit/pyturbo.git
license = BSD 3-clause
keywords = twiinit, turbomachinery
classifiers =
Intended Audience :: End Users/Desktop
Intended Audience :: Developers
Intended Audience :: Science/Research
License :: Other/Proprietary License
License :: OSI Approved :: BSD License
Natural Language :: English
Programming Language :: Python :: 3

Expand Down
3 changes: 3 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

"""The setup script."""

from setuptools import setup
Expand Down
2 changes: 2 additions & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause
3 changes: 3 additions & 0 deletions tests/test_atmosphere.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

import pytest

from pyturbo.systems.atmosphere import Atmosphere
Expand Down
3 changes: 3 additions & 0 deletions tests/test_compressor.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

import numpy as np
import pytest
from cosapp.drivers import NonLinearSolver
Expand Down
3 changes: 3 additions & 0 deletions tests/test_generic_geom.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

import numpy as np

from pyturbo.systems.generic.generic_simple_geom import GenericSimpleGeom
Expand Down
3 changes: 3 additions & 0 deletions tests/test_ideal_gas.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# Copyright (C) 2022, twiinIT
# SPDX-License-Identifier: BSD-3-Clause

import numpy as np

from pyturbo.thermo.ideal_gas import IdealDryAir, IdealGas
Expand Down
Loading

0 comments on commit 3276e6f

Please sign in to comment.