2. pde
torchfsm.pde.Burgers
¤
Burgers(nu: float) -> Operator
Burgers equation
Parameters:
Name | Type | Description | Default |
---|---|---|---|
nu
|
float
|
Viscosity coefficient. |
required |
Returns:
Name | Type | Description |
---|---|---|
Operator |
Operator
|
The operator representing the Burgers equation. |
Source code in torchfsm/pde.py
13 14 15 16 17 18 19 20 21 22 23 24 25 |
|
torchfsm.pde.KortewegDeVries
¤
KortewegDeVries(
dispersion_coef=1, convection_coef: float = 6.0
) -> Operator
Korteweg-De Vries equation
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dispersion_coef
|
float
|
Dispersion coefficient. Default is 1. |
1
|
convection_coef
|
float
|
Convection coefficient. Default is 6.0. |
6.0
|
Returns:
Name | Type | Description |
---|---|---|
Operator |
Operator
|
The operator representing the Korteweg-De Vries equation. |
Source code in torchfsm/pde.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
|
torchfsm.pde.KuramotoSivashinsky
¤
KuramotoSivashinsky() -> Operator
1D Kuramoto-Sivashinsky equation
Returns:
Name | Type | Description |
---|---|---|
Operator |
Operator
|
The operator representing the Kuramoto-Sivashinsky equation. |
Source code in torchfsm/pde.py
27 28 29 30 31 32 33 34 35 36 37 38 39 |
|
torchfsm.pde.KuramotoSivashinskyHighDim
¤
KuramotoSivashinskyHighDim() -> Operator
High dimensional Kuramoto-Sivashinsky equation
Returns:
Name | Type | Description |
---|---|---|
Operator |
Operator
|
The operator representing the Kuramoto-Sivashinsky equation. |
Source code in torchfsm/pde.py
41 42 43 44 45 46 47 48 49 |
|
torchfsm.pde.NavierStokesVorticity
¤
NavierStokesVorticity(
Re: float, force: Optional[Operator] = None
) -> Operator
Parameters:
Name | Type | Description | Default |
---|---|---|---|
Re
|
float
|
Reynolds number. |
required |
force
|
Optional[Operator]
|
Optional external force term. Default is None. If provided, it will be added to the vorticity equation. Note that the provided force should be \(\nabla \times \mathbf{f}\) rather than \(\mathbf{f}\) itself. |
None
|
Returns:
Name | Type | Description |
---|---|---|
Operator |
Operator
|
The operator representing the Navier-Stokes equation in vorticity form. |
Source code in torchfsm/pde.py
66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 |
|
torchfsm.pde.NavierStokes
¤
NavierStokes(
Re: float, force: Optional[Operator] = None
) -> Operator
Parameters:
Name | Type | Description | Default |
---|---|---|---|
Re
|
float
|
Reynolds number. |
required |
force
|
Optional[Operator]
|
Optional external force term. Default is None. If provided, it will be added to the vorticity equation. |
None
|
Returns:
Name | Type | Description |
---|---|---|
Operator |
Operator
|
The operator representing the Navier-Stokes equation. |
Source code in torchfsm/pde.py
85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
|