Diffusivity¶
Schema to define the diffusivity matrix¶
- pigreads.schema.diffusivity.Diffusivity¶
The diffusivity matrix is a command to define the diffusivity matrix in the simulation.
One of:
- class pigreads.schema.diffusivity.DiffusivityFile(**data)¶
Bases:
BaseModelDiffusivity matrix read from a file.
The file should contain a 4D array with the diffusivity values. The array should have shape
(Nz, Ny, Nx, 6)where the last dimension corresponds to the six independent components of the diffusivity matrix.- See:
pigreads.diffusivity.diffusivity_matrix()andnumpy.lib.format- Parameters:
data (
Any)
- __call__()¶
Read the diffusivity matrix from the file.
- model_config: ClassVar[ConfigDict]¶
Configuration for
pydantic.BaseModel.
- class pigreads.schema.diffusivity.DiffusivityParams(**data)¶
Bases:
BaseModelDiffusivity matrix defined by parameters.
The parameters are passed on to
pigreads.diffusivity.diffusivity_matrix().- Parameters:
data (
Any)
- __call__()¶
Create the diffusivity matrix from the parameters.
- model_config: ClassVar[ConfigDict]¶
Configuration for
pydantic.BaseModel.