Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion chapter2/ns_code2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,13 @@
"source": [
"Create distance field from obstacle.\n",
"Add threshold of mesh sizes based on the distance field\n",
"```\n",
"LcMax - /--------\n",
" /\n",
"LcMin -o---------/\n",
" | | |\n",
" Point DistMin DistMax"
" Point DistMin DistMax\n",
"```"
]
},
{
Expand Down
4 changes: 3 additions & 1 deletion chapter2/ns_code2.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# extension: .py
# format_name: light
# format_version: '1.5'
# jupytext_version: 1.18.1
# jupytext_version: 1.19.1
# kernelspec:
# display_name: Python 3 (ipykernel)
# language: python
Expand Down Expand Up @@ -165,11 +165,13 @@

# Create distance field from obstacle.
# Add threshold of mesh sizes based on the distance field
# ```
# LcMax - /--------
# /
# LcMin -o---------/
# | | |
# Point DistMin DistMax
# ```

res_min = r / 3
if mesh_comm.rank == model_rank:
Expand Down