Generators
torchfsm.operator.generic._conservative_convection._ConservativeConvectionGenerator
¤
Bases: CoreGenerator
Generator of the Conservative Convection operator. It ensures that the operator is only applied to vector fields with the same dimension as the mesh.
Source code in torchfsm/operator/generic/_conservative_convection.py
30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
|
__call__
¤
__call__(
f_mesh: FourierMesh, n_channel: int
) -> Union[LinearCoef, NonlinearFunc]
Source code in torchfsm/operator/generic/_conservative_convection.py
36 37 38 39 40 41 42 43 |
|
torchfsm.operator.generic._convection._ConvectionGenerator
¤
Bases: CoreGenerator
Generator of the Convection operator. It ensures that the operator is only applied to vector fields with the same dimension as the mesh.
Source code in torchfsm/operator/generic/_convection.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 |
|
__call__
¤
__call__(
f_mesh: FourierMesh, n_channel: int
) -> Union[LinearCoef, NonlinearFunc]
Source code in torchfsm/operator/generic/_convection.py
57 58 59 60 61 62 63 64 |
|
torchfsm.operator.generic._curl._CurlGenerator
¤
Bases: CoreGenerator
Generator of the Curl operator. It ensure that curl only works for 2D or 3D vector field with the same dimension as the mesh.
Source code in torchfsm/operator/generic/_curl.py
58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 |
|
__call__
¤
__call__(
f_mesh: FourierMesh, n_channel: int
) -> Union[LinearCoef, NonlinearFunc]
Source code in torchfsm/operator/generic/_curl.py
64 65 66 67 68 69 70 71 72 73 74 75 76 |
|
torchfsm.operator.generic._div._DivGenerator
¤
Bases: CoreGenerator
Generator of the Divergence operator. It ensures that divergence only works for vector fields with the same dimension as the mesh.
Source code in torchfsm/operator/generic/_div.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|
__call__
¤
__call__(
f_mesh: FourierMesh, n_channel: int
) -> Union[LinearCoef, NonlinearFunc]
Source code in torchfsm/operator/generic/_div.py
33 34 35 36 37 38 39 40 |
|
torchfsm.operator.generic._grad._GradGenerator
¤
Bases: CoreGenerator
Generator of the Grad operator. It ensures that grad only works for scalar field.
Source code in torchfsm/operator/generic/_grad.py
18 19 20 21 22 23 24 25 26 27 |
|
__call__
¤
__call__(f_mesh: FourierMesh, n_channel: int) -> LinearCoef
Source code in torchfsm/operator/generic/_grad.py
24 25 26 27 |
|
torchfsm.operator.generic._spatial_derivative._SpatialDerivativeGenerator
¤
Bases: CoreGenerator
Generator of the SpatialDerivative operator. It ensures that spatial derivative only works for scalar field.
Source code in torchfsm/operator/generic/_spatial_derivative.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
|
__init__
¤
__init__(dim_index, order) -> None
Source code in torchfsm/operator/generic/_spatial_derivative.py
30 31 32 33 |
|
__call__
¤
__call__(f_mesh: FourierMesh, n_channel: int) -> LinearCoef
Source code in torchfsm/operator/generic/_spatial_derivative.py
35 36 37 38 39 40 |
|
torchfsm.operator.dedicated._ks_convection._KSConvectionGenerator
¤
Bases: CoreGenerator
Generator of the KSConvection operator. It ensures that the operator is only applied to scalar fields.
Source code in torchfsm/operator/dedicated/_ks_convection.py
41 42 43 44 45 46 47 48 49 50 51 52 |
|
__init__
¤
__init__(remove_mean: bool) -> None
Source code in torchfsm/operator/dedicated/_ks_convection.py
46 47 |
|
__call__
¤
__call__(
f_mesh: FourierMesh, n_channel: int
) -> NonlinearFunc
Source code in torchfsm/operator/dedicated/_ks_convection.py
49 50 51 52 |
|
torchfsm.operator.dedicated._navier_stokes._VorticityConvectionGenerator
¤
Bases: CoreGenerator
Generator of the VorticityConvection operator. It ensures that the operator is only applied to scalar vorticity fields in 2D.
Source code in torchfsm/operator/dedicated/_navier_stokes.py
49 50 51 52 53 54 55 56 57 58 59 |
|
__call__
¤
__call__(
f_mesh: FourierMesh, n_channel: int
) -> NonlinearFunc
Source code in torchfsm/operator/dedicated/_navier_stokes.py
56 57 58 59 |
|
torchfsm.operator.dedicated._navier_stokes._Vorticity2VelocityGenerator
¤
Bases: CoreGenerator
Generator of the Vorticity2Velocity operator. It ensures that the operator is only applied to scalar vorticity fields in 2D.
Source code in torchfsm/operator/dedicated/_navier_stokes.py
94 95 96 97 98 99 100 101 102 103 |
|
__call__
¤
__call__(
f_mesh: FourierMesh, n_channel: int
) -> NonlinearFunc
Source code in torchfsm/operator/dedicated/_navier_stokes.py
100 101 102 103 |
|
torchfsm.operator.dedicated._navier_stokes._Vorticity2PressureGenerator
¤
Bases: CoreGenerator
Generator of the Vorticity2Pressure operator. It ensures that the operator is only applied to scalar vorticity fields in 2D.
Source code in torchfsm/operator/dedicated/_navier_stokes.py
147 148 149 150 151 152 153 154 155 156 157 158 159 |
|
__init__
¤
__init__(
external_force: Optional[OperatorLike] = None,
) -> None
Source code in torchfsm/operator/dedicated/_navier_stokes.py
153 154 |
|
__call__
¤
__call__(
f_mesh: FourierMesh, n_channel: int
) -> NonlinearFunc
Source code in torchfsm/operator/dedicated/_navier_stokes.py
156 157 158 159 |
|