Skip to content
Merged
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: 2 additions & 2 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
cff-version: 1.2.0
message: "If you use HyperFEM or these tutorials, please cite the article below and Gridap."
title: "HyperFEMTutorials.jl: tutorials of HyperFEM.jl"
title: "HyperFEMTutorials: tutorials of HyperFEM.jl"
authors:
- name: MultiSimOLab
repository-code: "https://github.com/MultiSimOLab/HyperFEMTutorials.jl"
repository-code: "https://github.com/MultiSimOLab/HyperFEMTutorials"
license: MIT
preferred-citation:
type: article
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

# HyperFEM tutorials

[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://multisimolab.github.io/HyperFEMTutorials.jl/dev/)
[![CI](https://github.com/MultiSimOLab/HyperFEMTutorials.jl/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/MultiSimOLab/HyperFEMTutorials.jl/actions/workflows/CI.yml?query=branch%3Amain)
[![Dev](https://img.shields.io/badge/docs-dev-blue.svg)](https://multisimolab.github.io/HyperFEMTutorials/dev/)
[![CI](https://github.com/MultiSimOLab/HyperFEMTutorials/actions/workflows/CI.yml/badge.svg?branch=main)](https://github.com/MultiSimOLab/HyperFEMTutorials/actions/workflows/CI.yml?query=branch%3Amain)

Tutorials of [HyperFEM.jl](https://github.com/MultiSimOLab/HyperFEM.jl), a library of the
[Gridap](https://github.com/gridap/Gridap.jl) ecosystem for the finite-element simulation of multiphysics problems with
hyperelastic materials: thermo-, electro- and magneto-mechanics at finite strains, contact, fluids, transient problems
and solvers for large systems.

Every tutorial is a self-contained Julia script in [`src/`](src/). The
[documentation](https://multisimolab.github.io/HyperFEMTutorials.jl/dev/) turns each one into a page that explains the
[documentation](https://multisimolab.github.io/HyperFEMTutorials/dev/) turns each one into a page that explains the
problem, the equations and every step of the code, with a Jupyter notebook generated from the same script. Each script
ends with quantitative checks of its result (exact solutions, published benchmarks, conservation laws), which are also
the test suite of this repository.
Expand All @@ -21,8 +21,8 @@ the test suite of this repository.
Julia 1.12 or later is needed. Clone the repository and install the dependencies (HyperFEM 0.3, HyperFEMKernels 0.2.6, Gridap 0.20.8, …):

```
git clone https://github.com/MultiSimOLab/HyperFEMTutorials.jl.git
cd HyperFEMTutorials.jl
git clone https://github.com/MultiSimOLab/HyperFEMTutorials.git
cd HyperFEMTutorials
julia --project=. -e 'using Pkg; Pkg.instantiate()'
```

Expand Down Expand Up @@ -81,7 +81,7 @@ julia -t 4 --project=. -e 'using Pkg; Pkg.test()'

runs every tutorial in its reduced case. `HYPERFEM_TUTORIALS_GROUP` (`basics`, `coupled`, `contact`, `fluids`,
`solvers`, `dynamics`) and `HYPERFEM_TUTORIALS_ONLY` (e.g. `E02,E10`) select tutorials; `HYPERFEM_TUTORIALS_PETSC=0`
skips the parts that use PETSc. See [Running and testing](https://multisimolab.github.io/HyperFEMTutorials.jl/dev/running/).
skips the parts that use PETSc. See [Running and testing](https://multisimolab.github.io/HyperFEMTutorials/dev/running/).

## How to cite

Expand Down
10 changes: 5 additions & 5 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ const ROOT = dirname(@__DIR__)
include(joinpath(ROOT, "src", "HyperFEMTutorials.jl"))
using .HyperFEMTutorials: TUTORIALS

const REPO = "https://github.com/MultiSimOLab/HyperFEMTutorials.jl"
const SITE = "https://multisimolab.github.io/HyperFEMTutorials.jl/dev"
const NBVIEWER = "https://nbviewer.org/urls/multisimolab.github.io/HyperFEMTutorials.jl/dev/notebooks"
const REPO = "https://github.com/MultiSimOLab/HyperFEMTutorials"
const SITE = "https://multisimolab.github.io/HyperFEMTutorials/dev"
const NBVIEWER = "https://nbviewer.org/urls/multisimolab.github.io/HyperFEMTutorials/dev/notebooks"

available = filter(t -> isfile(joinpath(ROOT, "src", t.file)), TUTORIALS)
stem(t) = splitext(t.file)[1]
Expand Down Expand Up @@ -52,7 +52,7 @@ push!(pages, "Running and testing" => "running.md")
makedocs(;
sitename = "HyperFEM tutorials",
authors = "MultiSimOLab",
repo = Remotes.GitHub("MultiSimOLab", "HyperFEMTutorials.jl"),
repo = Remotes.GitHub("MultiSimOLab", "HyperFEMTutorials"),
format = Documenter.HTML(; prettyurls = get(ENV, "CI", "false") == "true", canonical = SITE,
edit_link = "main", size_threshold_warn = 400 * 2^10, size_threshold = 800 * 2^10,
mathengine = Documenter.MathJax3()),
Expand All @@ -61,4 +61,4 @@ makedocs(;
checkdocs = :none,
)

deploydocs(; repo = "github.com/MultiSimOLab/HyperFEMTutorials.jl.git", devbranch = "main", push_preview = false)
deploydocs(; repo = "github.com/MultiSimOLab/HyperFEMTutorials.git", devbranch = "main", push_preview = false)
6 changes: 3 additions & 3 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ Tutorials of [HyperFEM.jl](https://github.com/MultiSimOLab/HyperFEM.jl), a libra
hyperelastic materials: thermo-, electro- and magneto-mechanics at finite strains, contact, fluids, transient
problems and solvers for large systems.

Every tutorial is a self-contained Julia script in the [`src/`](https://github.com/MultiSimOLab/HyperFEMTutorials.jl/tree/main/src)
Every tutorial is a self-contained Julia script in the [`src/`](https://github.com/MultiSimOLab/HyperFEMTutorials/tree/main/src)
folder of the repository. Its page explains the problem, the equations and every step of the code, and links to a
Jupyter notebook generated from the same script. Each script ends with quantitative checks of its result (exact
solutions, published benchmarks, conservation laws), which are also the test suite of the repository.

## Getting started

```
git clone https://github.com/MultiSimOLab/HyperFEMTutorials.jl.git
cd HyperFEMTutorials.jl
git clone https://github.com/MultiSimOLab/HyperFEMTutorials.git
cd HyperFEMTutorials
julia --project=. -e 'using Pkg; Pkg.instantiate()'
julia -t 4 --project=. src/E02_Hyperelastic_stretch.jl
```
Expand Down
Loading