where the number *matNum* must be a unique integer to identify the law (when multiple laws are considered), *MaterialLawName* and its arguments *Arguments* can be found in the source code. For example, a *J2* plastic model can be defined as follows:
where the number *matNum* must be a unique integer to identify the law (when multiple laws are considered), *MaterialLawName* and its arguments *Arguments* can be found in the source code. When using linear elements, one should use
```python
law.setUseBarF(True)
```
to avoid volumetric locking.
For example, a *J2* plastic model can be defined as follows: