Class Curl
java.lang.Object
org.episteme.core.mathematics.analysis.vectorcalculus.Curl
Computes the curl of a 3D vector field.
The curl measures the rotation or circulation of a vector field.
Definition (3D only): ∇×F = (∂F₃/∂y - ∂Fâ‚‚/∂z, ∂Fâ‚Â/∂z - ∂F₃/∂x, ∂Fâ‚‚/∂x - ∂Fâ‚Â/∂y)
Physical interpretation: - Measures local rotation/vorticity - Fluid dynamics: vorticity É = ∇×v - Electromagnetism: Faraday's law ∇×E = -∂B/∂t - Ampère's law: ∇×B = μ₀J + μ₀ε₀∂E/∂t - Conservative fields have zero curl: ∇×(∇Æ) = 0
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VectorField<PointND> asField(VectorField<PointND> field, Real h) Returns a vector field representing the curl of the input field.compute(VectorField<PointND> field, PointND point, Real h) Computes the curl of a 3D vector field at a point.
-
Constructor Details
-
Curl
public Curl()
-
-
Method Details
-
compute
Computes the curl of a 3D vector field at a point.The curl is only defined for 3D vector fields.
- Parameters:
field- the vector field (must be 3D)point- the point at which to compute curlh- the step size for numerical differentiation- Returns:
- the curl vector
- Throws:
IllegalArgumentException- if field is not 3D
-
asField
Returns a vector field representing the curl of the input field.- Parameters:
field- the vector field (must be 3D)h- the step size for numerical differentiation- Returns:
- the curl as a vector field
-