package
1.2.12
Repository: https://github.com/cpmech/gosl.git
Documentation: pkg.go.dev

# README

Gosl. pde. Partial Differential Equations

Go Reference

Package pde implements structures and algorithms for solving partial differential equations.

TODO

  1. Explain how to use the FDM (Finite Difference Method) solver
  2. Explain how to use the SPC (Spectral Collocation) solver
  3. Implement the FEM (Finite Element Method) solver
  4. Add more tests

API

Please see the documentation here

# Functions

NewBoundaryCondsGrid returns a new structure using Grid.
NewBoundaryCondsMesh returns a new structure using Mesh.
NewFdmLaplacian creates a new FDM Laplacian operator with given parameters.
NewSpcLaplacian creates a new SPC Laplacian operator with given parameters NOTE: params is not used at the moment.

# Structs

BoundaryConds holds data for prescribing a SET of boundary conditions.
FdmLaplacian implements the Finite Difference (FDM) Laplacian operator (2D or 3D) ∂²u ∂²u ∂²u L{u} = kx ——— + ky ——— + kz ——— ∂x² ∂y² ∂z² .
SpcLaplacian implements the Spectral Collocation (SPC) Laplacian operator (2D or 3D) ∂²φ ∂²φ ∂²φ ∂φ ∂φ L{φ} = ∇²φ = ——— g¹¹ + ——— g²² + ———— 2g¹² - —— L¹ - —— L² ∂a² ∂b² ∂a∂b ∂a ∂b with a=u[0]=r and b=u[1]=s .