aquakin.OperatingConditions#

class aquakin.OperatingConditions(**kwargs)[source]#

Bases: SpatialConditions

Operating conditions for the 0-D (single stirred tank) case.

A single stirred tank has no spatial extent, so the spatially-varying SpatialConditions (with its n_locations array model) reads as over-machinery for the most basic setup. OperatingConditions is the same object specialised to one location, constructed directly from scalar field values:

conditions = aquakin.OperatingConditions(pH=7.5, T=293.15)

It is a SpatialConditions (one location), so it works unchanged in every reactor; for a spatially varying PFR/CFD case use SpatialConditions (or SpatialConditions.uniform()) directly. To start from a model’s declared defaults instead, use model.default_conditions() and SpatialConditions.with_() to edit.

Parameters:

**kwargs (float) – Condition field name (e.g. pH, T) -> scalar value.

__init__(**kwargs)[source]#
Parameters:

kwargs (float)

Return type:

None

Methods

__init__(**kwargs)

uniform([n_locations])

Build a spatially homogeneous SpatialConditions object.

validate_required(required)

Raise ValueError if any required field is missing.

with_(**kwargs)

Return a copy with some fields overridden (or added).

Attributes

n_locations

Number of spatial locations represented.

fields