Skip to content

Commit 84114e8

Browse files
mleoni-pfjorgensdjuliusghrossbm1MPenaR
authored
Update ns_code2.ipynb (#241)
* Improve workflow handling (#118) * Create common action for all workflows and split them into multiple files * Dokken/update fspace and wmtgs (#127) * fix runs-on * Minor improvements in linearelasticity.md (#124) * Fix various things on release branch * Try adding trame * Revert fundamentals * Membrane code * More updates due to autoformatting * Lagrange -> CG back conversion * Change to github image --------- Co-authored-by: Julius Herb <43179176+juliusgh@users.noreply.github.com> * Update petsc arches * Fix bounding boxes and more (#135) * Start fixing code for nightly build * rerun all files * Try fixing subdomains * Fix meshio * PETSc python API update (#137) * Resolve #136 * Fixes related to: FEniCS/dolfinx#2703 * Update changelog * Make sure all notebooks run. Change to pathlib in some examples * Api changes related to: FEniCS/dolfinx#2763 (#142) * Bump version numbers * Bump version numbers (#149) * Fix petsc arch * Prepare v0.7.1 (#154) * Merge branch 'main' into release and bump versions * Delete obsolete file * Temporary shift path in nightly test * Make sure there are no warnigns in build * Tabulation * Updates compatible with nightly branch of DOLFINx (#156) * Replace VectorElement and FiniteElement with `basix.ufl.element`. Replace `dolfinx.fem.FunctionSpace` with `dolfinx.fem.functionspace` * More updates * And more * Last vector element updates * Bump pyvista and dolfinx to v0.7.2 (#159) * Bump pyvista and dolfinx to v0.7.2 * remove -r * Add further pyvista deps * Bump versions * Update petsc solver and pc links. Resolves #143 (#160) * Fix typo and issue Issue on page /fem.html #122 (#161) * Compute entity-cell connectivity before calling locate_dofs_topological. Remove soon to be deprecated pyvista syntax for updating time dependent fields. Fix range->np.arange conversion * Update backend in workflow * Fix broken link (#140) + http:// to https:// (#162) * Run book build prior to parallel run * Add back write frame * Fix wrong link * Fix typo in changelog * Merge main into release (#189) * Merge main into release * Apply suggestions from code review * Various fixes when reading through the diff * Further fixes * add missing checkout (#191) * add missing checkout * Add test docker on release PR and release (only push on tag * Remove unused import * Update text to resolve #194 (#195) * Dokken/update nonlin options (#203) * Update options for non-linear solver to sensible choice, ref #200 * Update docker path * Update python file as well * Update config ptr (#207) * Pressure correction equation fix (#196) * Update fundamentals.md (#199) on line 110, updated a typesetting error in equation (3) * Change from vector to petsc_vec (#206) * dolfinx.fem.Form changed to dolfinx.fem.form (#213) * Update compiler_parameters.ipynb In the text it was mentioned that `dolfinx.fem.Form` was used to compile the form, instead of `dolfinx.fem.form`. Not matching the code cell. * jupytext sync * Form -> form in both py and ipynb and LinearProblem -> fem.petsc.LinearProblem * Update book_stable.yml * Update test_stable.yml * Fix python path in test * Fix CI (#227) * Bump docker/build-push-action from 5 to 6 (#221) Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5 to 6. - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](docker/build-push-action@v5...v6) --- updated-dependencies: - dependency-name: docker/build-push-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Bump actions/configure-pages from 4 to 5 (#222) Bumps [actions/configure-pages](https://github.com/actions/configure-pages) from 4 to 5. - [Release notes](https://github.com/actions/configure-pages/releases) - [Commits](actions/configure-pages@v4...v5) --- updated-dependencies: - dependency-name: actions/configure-pages dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update book_stable.yml (#225) * Update book_stable.yml * Update test_stable.yml * resolve #224 (#226) * Update test_stable.yml --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * Update test_stable.yml (#235) * Add libgl flag to ci (#238) * Update ns_code2.ipynb * Update ns code --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: Jørgen Schartum Dokken <dokken92@gmail.com> Co-authored-by: Jørgen S. Dokken <dokken@simula.no> Co-authored-by: Julius Herb <43179176+juliusgh@users.noreply.github.com> Co-authored-by: rossbm1 <120818149+rossbm1@users.noreply.github.com> Co-authored-by: Manuel Pena <mpena991@gmail.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent a422205 commit 84114e8

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

chapter2/ns_code2.ipynb

+3-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@
1414
"To be able to solve this problem efficiently and ensure numerical stability, we will substitute our first order backward difference scheme with a Crank-Nicholson discretization in time, and a semi-implicit Adams-Bashforth approximation of the non-linear term.\n",
1515
"\n",
1616
"```{admonition} Computationally demanding demo\n",
17-
"This demo is computationally demanding, with a run-time up to 15 minutes, as it is using parameters from the DFG 2D-3 benchmark, which consists of 12800 time steps. It is adviced to download this demo and not run it in a browser. This runtime of the demo can be increased by using 2 or 3 mpi processes.\n",
17+
"This demo is computationally demanding, with a run-time up to 15 minutes, as it is using parameters from the DFG 2D-3 benchmark, which consists of 12800 time steps.\n",
18+
"It is adviced to download this demo and not run it in a browser.\n",
19+
"This runtime of the demo can be decreased by using 2 or 3 mpi processes.\n",
1820
"```\n",
1921
"\n",
2022
"The computational geometry we would like to use is\n",

chapter2/ns_code2.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# extension: .py
77
# format_name: light
88
# format_version: '1.5'
9-
# jupytext_version: 1.16.5
9+
# jupytext_version: 1.16.6
1010
# kernelspec:
1111
# display_name: Python 3 (ipykernel)
1212
# language: python
@@ -22,7 +22,9 @@
2222
# To be able to solve this problem efficiently and ensure numerical stability, we will substitute our first order backward difference scheme with a Crank-Nicholson discretization in time, and a semi-implicit Adams-Bashforth approximation of the non-linear term.
2323
#
2424
# ```{admonition} Computationally demanding demo
25-
# This demo is computationally demanding, with a run-time up to 15 minutes, as it is using parameters from the DFG 2D-3 benchmark, which consists of 12800 time steps. It is adviced to download this demo and not run it in a browser. This runtime of the demo can be increased by using 2 or 3 mpi processes.
25+
# This demo is computationally demanding, with a run-time up to 15 minutes, as it is using parameters from the DFG 2D-3 benchmark, which consists of 12800 time steps.
26+
# It is adviced to download this demo and not run it in a browser.
27+
# This runtime of the demo can be decreased by using 2 or 3 mpi processes.
2628
# ```
2729
#
2830
# The computational geometry we would like to use is

0 commit comments

Comments
 (0)