fdtdx.apply_params#
- fdtdx.apply_params(arrays, objects, params, key, **transform_kwargs)[source]#
Applies parameters to devices and updates source states.
- Parameters:
arrays (ArrayContainer) – Container with field arrays
objects (ObjectContainer) – Container with simulation objects
params (ParameterContainer) – Container with device parameters
key (jax.Array) – JAX random key for source updates
**transform_kwargs – Keyword arguments passed to the parameter transformation.
- Returns:
- A tuple containing:
Updated ArrayContainer with applied device parameters
Updated ObjectContainer with new source states
Dictionary with parameter application info
- Return type:
tuple[ArrayContainer, ObjectContainer, dict[str, Any]]