Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#114)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/psf/black: 23.12.1 → 24.1.1](psf/black@23.12.1...24.1.1)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Jan 31, 2024
1 parent 6aaac01 commit 71469e3
Show file tree
Hide file tree
Showing 15 changed files with 16 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ repos:
- id: isort
name: isort
- repo: https://github.com/psf/black
rev: 23.12.1
rev: 24.1.1
hooks:
- id: black
- repo: https://github.com/pycqa/flake8
Expand Down
1 change: 1 addition & 0 deletions src/planingfsi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
and the structural solver considers a large-deformation simple beam element.
"""

import logging

logging.basicConfig()
Expand Down
1 change: 1 addition & 0 deletions src/planingfsi/__main__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Package-level accessor to run the main CLI program with python -m planingfsi."""

from planingfsi.cli import cli

if __name__ == "__main__":
Expand Down
1 change: 1 addition & 0 deletions src/planingfsi/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
files, assembles the problem, and runs it.
"""

from __future__ import annotations

from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions src/planingfsi/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
instance, which then serves as a reference point elsewhere in the code.
"""

from __future__ import annotations

import math
Expand Down
1 change: 1 addition & 0 deletions src/planingfsi/fe/femesh.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The `femesh` module handles mesh generation for planingFSI cases."""

from __future__ import annotations

import abc
Expand Down
1 change: 1 addition & 0 deletions src/planingfsi/math_helpers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""General math helpers."""

from __future__ import annotations

from collections.abc import Callable
Expand Down
1 change: 1 addition & 0 deletions src/planingfsi/potentialflow/pressureelement.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module containing definitions of different types of pressure element."""

from __future__ import annotations

import abc
Expand Down
5 changes: 2 additions & 3 deletions src/planingfsi/potentialflow/pressurepatch.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Classes representing a pressure patch on the free surface."""

from __future__ import annotations

import abc
Expand Down Expand Up @@ -653,9 +654,7 @@ def _calculate_shear_stress(self) -> None:
def get_shear_stress(xx: float) -> float:
"""Calculate the shear stress at a given location."""
re_x = self.config.flow.flow_speed * xx / self.config.flow.kinematic_viscosity
return (
0.332 * self.config.flow.density * self.config.flow.flow_speed**2 * re_x**-0.5
)
return 0.332 * self.config.flow.density * self.config.flow.flow_speed**2 * re_x**-0.5

x = self.element_coords[:-1]
assert self.interpolator is not None
Expand Down
1 change: 1 addition & 0 deletions src/planingfsi/potentialflow/solver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Fundamental module for constructing and solving planing potential flow problems."""

from __future__ import annotations

from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions src/planingfsi/simulation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""High-level control of a `planingfsi` simulation."""

from __future__ import annotations

from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions src/planingfsi/solver.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Solvers for single and multi-dimensional nonlinear problems."""

from __future__ import annotations

from collections.abc import Callable
Expand Down
1 change: 1 addition & 0 deletions src/planingfsi/trig.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Convenient trigonometric functions."""

import math
from typing import Union

Expand Down
1 change: 1 addition & 0 deletions src/planingfsi/unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
which will return 0.3048 meters.
"""

import math

# Acceleration due to gravity
Expand Down
1 change: 1 addition & 0 deletions src/planingfsi/writers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Functions for writing results to a file on disk."""

from __future__ import annotations

from pathlib import Path
Expand Down

0 comments on commit 71469e3

Please sign in to comment.