Skip to content

Commit

Permalink
Merge pull request #21 from NREL/spell
Browse files Browse the repository at this point in the history
Spelling checks
  • Loading branch information
malihass authored Feb 13, 2024
2 parents d4953a8 + 62da68e commit 49deb92
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 9 deletions.
3 changes: 3 additions & 0 deletions .codespell-ignore-words
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nd
inh
lastR
3 changes: 3 additions & 0 deletions .codespellrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[codespell]
skip = .git,OFsolvers,build,__pycache__,data_conditional_mean,Figures,assets
ignore-words = .codespell-ignore-words
3 changes: 2 additions & 1 deletion .github/linters/formatting.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ format () {

black --line-length 79 --target-version 'py310' --include '\.pyi?$' $1
isort --profile 'black' --multi-line 3 --trailing-comma --force-grid-wrap 0 --line-length 79 --use-parentheses $1
fi;
fi;
codespell $1
}


Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ python applications/write_stir_tank_mesh.py -i $inp -o $out

Generates a blockMeshDict

Then activate openFoam environement (tested with OpenFoam9) and mesh with
Then activate openFoam environment (tested with OpenFoam9) and mesh with

```bash
blockMesh -dict system/blockMeshDict
Expand Down Expand Up @@ -73,7 +73,7 @@ optional arguments:
```

### Block cyclindrical meshing
### Block cylindrical meshing

Generates `blockMeshDict` in `system`

Expand All @@ -85,7 +85,7 @@ mesh_temp=bird/meshing/block_cyl_mesh_templates/sideSparger
python applications/write_block_cyl_mesh.py -i $mesh_temp/input.json -t $mesh_temp/topology.json -o $caseFolder/system
```

Then activate openFoam environement (tested with OpenFoam9) and mesh with
Then activate openFoam environment (tested with OpenFoam9) and mesh with

```bash
cd $caseFolder
Expand Down
10 changes: 5 additions & 5 deletions bird/meshing/_mesh_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,12 +351,12 @@ def radialCoarsening(
# "ERROR: cannot smooth radial transition without grading list"
# )

# Length = R[lastR] - R[lastR - 1]
# deltaE = ((R[lastR - 1] - R[lastR - 2])) / NR[lastR - 1]
# gradR[lastR] = 1 / (
# bissection(Length / deltaE, stretch_fun, NR[lastR])
# Length = R[last_R] - R[last_R - 1]
# deltaE = ((R[last_R - 1] - R[last_R - 2])) / NR[last_R - 1]
# gradR[last_R] = 1 / (
# bissection(Length / deltaE, stretch_fun, NR[last_R])
# )
# if (gradR[lastR] > 2 or gradR[lastR] < 0.5) and abs(
# if (gradR[last_R] > 2 or gradR[last_R] < 0.5) and abs(
# ratio - 1
# ) <= 1e-12:
# print(
Expand Down

0 comments on commit 49deb92

Please sign in to comment.