# opencr.models

*module*

Predefined models, loaded by name with `load_model`.

======================================  ===================================================
name                                    model
======================================  ===================================================
``hydrogen/atomic/basic``               H(n=1..n_max) and H+ (`hydrogen_atomic`)
``hydrogen/molecular/basic``            H2(X, v), its electronic states, H, H+ and H2+
                                        (`hydrogen_molecular`)
``hydrogen/molecular/ions``             the same with H-, H3+ and their chemistry
``argon/metastable``                    Ar, lumped Ar(m) and Ar(r), Ar+; a sputtered metal with
                                        ``metal="Cu"`` (`argon`)
======================================  ===================================================

Options are passed on to the model's builder, e.g.
``load_model("hydrogen/atomic/basic", n_max=30)``.

[View source](https://github.com/max-models/OpenCR/blob/devel/src/opencr/models/__init__.py#L1-L1)

## opencr.models.available_models

*function*

```python
def available_models() -> dict[str, str]
```

Return the names of the predefined models with one sentence each.

[View source](https://github.com/max-models/OpenCR/blob/devel/src/opencr/models/__init__.py#L35-L37)

## opencr.models.load_model

*function*

```python
def load_model(name: str, **options: Any) -> Model
```

Return the predefined model ``name`` built with ``options``.

[View source](https://github.com/max-models/OpenCR/blob/devel/src/opencr/models/__init__.py#L40-L45)

## opencr.models.register_model

*function*

```python
def register_model(name: str, builder: Callable[..., Model], description: str) -> None
```

Make ``builder(**options)`` loadable as ``name``.

[View source](https://github.com/max-models/OpenCR/blob/devel/src/opencr/models/__init__.py#L30-L32)

**Modules**

- `opencr.models.argon`
- `opencr.models.hydrogen_atomic`
- `opencr.models.hydrogen_molecular`
