Skip to content

Commit

Permalink
Update linearelasticity_code.ipynb (#244)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>

* 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] <[email protected]>
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] <[email protected]>
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] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Update test_stable.yml (#235)

* Add libgl flag to ci (#238)

* Update linearelasticity_code.ipynb

* Sync file

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: Jørgen Schartum Dokken <[email protected]>
Co-authored-by: Jørgen S. Dokken <[email protected]>
Co-authored-by: Julius Herb <[email protected]>
Co-authored-by: rossbm1 <[email protected]>
Co-authored-by: Manuel Pena <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
7 people authored Feb 5, 2025
1 parent 57de502 commit 7cde11b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion chapter2/linearelasticity_code.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"metadata": {},
"source": [
"We then create the mesh, which will consist of hexahedral elements, along with the function space.\n",
"As we want a vector element with three compoenets, we add `(3, )` or `(domain.geometry.dim, )` to the element tuple to make it a triplet\n",
"As we want a vector element with three components, we add `(3, )` or `(domain.geometry.dim, )` to the element tuple to make it a triplet\n",
"However, we also could have used `basix.ufl`s functionality, creating a vector element `element = basix.ufl.element(\"Lagrange\", domain.topology.cell_name(), 1, shape=(domain.geometry.dim,))`, and initializing the function space as `V = dolfinx.fem.functionspace(domain, element)`."
]
},
Expand Down
2 changes: 1 addition & 1 deletion chapter2/linearelasticity_code.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
g = gamma

# We then create the mesh, which will consist of hexahedral elements, along with the function space.
# As we want a vector element with three compoenets, we add `(3, )` or `(domain.geometry.dim, )` to the element tuple to make it a triplet
# As we want a vector element with three components, we add `(3, )` or `(domain.geometry.dim, )` to the element tuple to make it a triplet
# However, we also could have used `basix.ufl`s functionality, creating a vector element `element = basix.ufl.element("Lagrange", domain.topology.cell_name(), 1, shape=(domain.geometry.dim,))`, and initializing the function space as `V = dolfinx.fem.functionspace(domain, element)`.

domain = mesh.create_box(MPI.COMM_WORLD, [np.array([0, 0, 0]), np.array([L, W, W])],
Expand Down

0 comments on commit 7cde11b

Please sign in to comment.