Skip to content

Commit

Permalink
Merge pull request #13 from adtzlr/add-lab
Browse files Browse the repository at this point in the history
Add Lab
  • Loading branch information
adtzlr authored Sep 24, 2021
2 parents 978d91a + 0cb13cd commit 5edfcac
Show file tree
Hide file tree
Showing 12 changed files with 1,503 additions and 36 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,18 @@ def fun(F, **kwargs):
return W
```

## Lab
In the `Lab` experiments on homogenous loadcases can be performed. Let's take the above neo-hookean material formulation and run **uniaxial**, **biaxial** and **planar shear** tests.

```python
from matadi import Lab

lab = Lab(NH)
data = lab.run(ux=True, bx=True, ps=True)
fix, ax = lab.plot(data)
```

![Lab experiments(Neo-Hooke)](https://raw.githubusercontent.com/adtzlr/matadi/main/docs/images/plot_lab-nh.svg)

## Hints
Please have a look at [casADi's documentation](https://web.casadi.org/). It is very powerful but unfortunately does not support all the Python stuff you would expect. For example Python's default if-else-statements can't be used in combination with symbolic conditions (use `math.if_else(cond, if_true, if_false)` instead).
Loading

0 comments on commit 5edfcac

Please sign in to comment.