Model Parameters¶
The model parameters define the mathematical setting and the problem’s discretization.
- pydantic model nopec.parameters.ModelParameters¶
Model parameters.
These parameters include mathematical parameters such as the space domain \(\Omega\), the diffusion coefficients \(\kappa_1\) and \(\kappa_2\), the initial data \(y_\circ\), and the final time \(T\).
Furthermore,
- Config:
extra: str = forbid
arbitrary_types_allowed: bool = True
- field discretization_model: Literal['fenics', 'sparse_fenics', 'boundary', 'my_L1', 'my_L2'] = 'sparse_fenics'¶
discretization method: one of “fenics”, “sparse_fenics”, “boundary”, “my_L1”, “my_L2”.
- field kappa_1: Callable[[ndarray], ndarray] = <function ModelParameters.<lambda>>¶
Diffusion coefficient for \(y\) passed as a callable function on the variable \(x\) evaluated on the first component (x) punctually, i.e. from the array x[0] to a numpy array. The default value is the constant 1, i.e. \(\kappa_1(x)≡1\).
- field kappa_2: Callable[[ndarray], ndarray] = <function ModelParameters.<lambda>>¶
Diffusion coefficient for \(q\) passed as a callable function on the variable \(x\) evaluated on the first component (x) punctually, i.e. from the array x[0] to a numpy array. The default value is the constant 1, i.e. \(\kappa_1(x)≡1\).
- field time_disc_met: Literal['IE', 'CN'] = 'IE'¶
Time discretization method. “IE” Implicit Euler, “CN” Crank Nicolson.
- field y_0: Callable[[ndarray], ndarray] = <function ModelParameters.<lambda>>¶
Initial value for \(y\) passed as a callable function on the variable \(x\) evaluated on the first component (x) punctually, i.e. from the array x[0] to a numpy array. The default value is the constant 5, i.e. \(y_\circ(x)≡5\).