fluidsim.solvers.sphere.ns2d.solver
NS2D equations over a sphere (fluidsim.solvers.sphere.ns2d
)
- class fluidsim.solvers.sphere.ns2d.solver.InfoSolverSphereNS2D(only_root=False, **kargs)[source]
Bases:
InfoSolverSphericalHarmo
Contain the information on a base pseudo-spectral solver.
- class fluidsim.solvers.sphere.ns2d.solver.SimulSphereNS2D(params)[source]
Bases:
SimulSphericalHarmo
Pseudo-spectral base solver.
- InfoSolver
alias of
InfoSolverSphereNS2D
- tendencies_nonlin(state_spect=None, old=None)[source]
Compute the nonlinear tendencies.
- Parameters:
- state_spect
fluidsim.base.setofvariables.SetOfVariables
optional
Array containing the state, i.e. the vorticity, in Fourier space. If state_spect, the variables vorticity and the velocity are computed from it, otherwise, they are taken from the global state of the simulation, self.state.
These two possibilities are used during the Runge-Kutta time-stepping.
- state_spect
- Returns:
- tendencies_sh
fluidsim.base.setofvariables.SetOfVariables
An array containing the tendencies for the vorticity.
- tendencies_sh
Notes
The 2D Navier-Stokes equation can be written
\[\partial_t \hat\zeta = \hat N(\zeta) - \sigma(k) \hat \zeta,\]This function compute the nonlinear term (“tendencies”) \(N(\zeta) = - \mathbf{u}\cdot \mathbf{\nabla} \zeta\).
Classes
|
Contain the information on a base pseudo-spectral solver. |
|
alias of |
|
Pseudo-spectral base solver. |