Skip to content

Commit

Permalink
Change default hyper-diffusivity (and run black)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ceyron committed Mar 8, 2024
1 parent 0cc4898 commit 40521ed
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions exponax/stepper/_linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def __init__(
```
uₜ = ν uₓₓ
```
with `ν ∈ ℝ` being the diffusivity.
In higher dimensions, the diffusion equation can written using the
Expand Down Expand Up @@ -334,7 +334,7 @@ def _build_linear_operator(
# Add the necessary singleton channel axis
diffusion_operator = diffusion_operator[None, ...]

advection_operator = - build_gradient_inner_product_operator(
advection_operator = -build_gradient_inner_product_operator(
derivative_operator, self.velocity, order=1
)

Expand Down Expand Up @@ -387,7 +387,7 @@ def __init__(
In higher dimensions, the dispersion equation can be written as
```
uₜ = 𝒸 ⋅ (∇⊙∇⊙(∇u))
uₜ = 𝒸 ⋅ (∇⊙∇⊙(∇u))
```
or
Expand All @@ -396,7 +396,7 @@ def __init__(
uₜ = 𝒸 ⋅ ∇(Δu)
```
with `𝒸 ∈ ℝᵈ` being the dispersivity vector
with `𝒸 ∈ ℝᵈ` being the dispersivity vector
**Arguments:**
- `num_spatial_dims`: The number of spatial dimensions `d`.
Expand Down Expand Up @@ -483,7 +483,7 @@ def __init__(
num_points: int,
dt: float,
*,
hyper_diffusivity: float = 1.0,
hyper_diffusivity: float = 0.0001,
diffuse_on_diffuse: bool = False,
):
"""
Expand Down Expand Up @@ -530,7 +530,7 @@ def __init__(
- `dt`: The timestep size `Δt` between two consecutive states.
- `hyper_diffusivity` (keyword-only): The hyper-diffusivity `ν`.
This stepper only supports scalar (=isotropic)
hyper-diffusivity. Default: 1.0.
hyper-diffusivity. Default: 0.0001.
- `diffuse_on_diffuse` (keyword-only): If `True`, the second form
of the hyper-diffusion equation in higher dimensions is used. As
a consequence, there will be mixing in the spatial derivatives.
Expand Down

0 comments on commit 40521ed

Please sign in to comment.