Copyright | (c) Scott N. Walck 2023 |
---|---|
License | BSD3 (see LICENSE) |
Maintainer | Scott N. Walck <walck@lvc.edu> |
Stability | stable |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Code from chapter 29 of the book Learn Physics with Functional Programming
Documentation
directionalDerivative :: Vec -> ScalarField -> ScalarField Source #
curl :: R -> VectorField -> VectorField Source #
type FieldState = (R, VectorField, VectorField) Source #
maxwellUpdate :: R -> R -> (R -> VectorField) -> FieldState -> FieldState Source #
maxwellEvolve :: R -> R -> (R -> VectorField) -> FieldState -> [FieldState] Source #
spaceStepsCE :: Int Source #
initialStateFDTD :: R -> StateFDTD Source #
stateUpdate :: R -> (R -> VectorField) -> StateFDTD -> StateFDTD Source #
jGaussian :: R -> VectorField Source #