The Geotherm
package
Geotherm.generate_trace
— Functiongenerate_trace(geothermal_gradient::AbstractDimMatrix, p0::Point2D, h=0.01, n=1000)
Generate a trace of Point
s specifiying pressure and temperature.
The Geotherm.Geometry
module
Geotherm.Geometry.Point2D
— TypePoint2D(x, y)
Generate a two-dimensional point.
Geotherm.Geometry.Point3D
— TypePoint3D(x, y, z)
Generate a three-dimensional point.
Geotherm.Geometry.Rectangle
— TypeRectangle(lx, rx, ly, uy)
Generate a rectangle from its four corner points.
Geotherm.Geometry.vertices
— Functionvertices(rec::Rectangle)
Return four corner points of a Rectangle
.
Base.in
— FunctionBase.in(p::Point2D, rec::Rectangle)
Test if point p
is in rectangle rec
.
The Geotherm.Interpolate
module
Geotherm.Interpolate.linear_interpolate
— Functionlinear_interpolate(a, b)
Return a function of the linear interpolation between any 2 points (x₁, f(x₁))
and (x₂, g(x₂))
.
Geotherm.Interpolate.bilinear_interpolate
— Functionbilinear_interpolate(q₁₁, q₁₂, q₂₁, q₂₂)
If 4 points consisting of a rectangle and their z-coordinates are known, return a bilinear interpolation of the 4 points.
The Geotherm.Integrate
module
Geotherm.Integrate.runge_kutta
— Functionrunge_kutta(p0::Point2D, f, h=0.01, n=1000)
Do a Runge–Kutta fourth-order integration of function f
with starting point p0
, step n
, and step-size h
.