learn-physics-0.6.4: Haskell code for learning physics

Physics.Learn.Volume

Contents

Description

This module contains functions for working with Volumes and volume integrals over Volumes.

Synopsis

Volumes

data Volume Source #

Volume is a parametrized function from three parameters to space, lower and upper limits on the first parameter, lower and upper limits for the second parameter (expressed as functions of the first parameter), and lower and upper limits for the third parameter (expressed as functions of the first and second parameters).

Constructors

 Volume FieldsvolumeFunc :: (Double, Double, Double) -> Positionfunction from 3 parameters to spaceloLimit :: Doubles_aupLimit :: Doubles_bloCurve :: Double -> Doublet_a(s)upCurve :: Double -> Doublet_b(s)loSurf :: Double -> Double -> Doubleu_a(s,t)upSurf :: Double -> Double -> Doubleu_b(s,t)

A unit ball, centered at the origin.

A unit ball, centered at the origin. Specified in Cartesian coordinates.

A ball with given radius, centered at the origin.

Arguments

 :: Double radius -> Position center -> Volume ball with given radius and center

Ball with given radius and center.

Upper half ball, unit radius, centered at origin.

Cylinder with given radius and height. Circular base of the cylinder is centered at the origin. Circular top of the cylinder lies in plane z = h.

Shift a volume by a displacement.

Volume Integral

Arguments

 :: (VectorSpace v, Scalar v ~ Double) => Int number of intervals for first parameter (s) -> Int number of intervals for second parameter (t) -> Int number of intervals for third parameter (u) -> Field v scalar or vector field -> Volume the volume -> v scalar or vector result

A volume integral