๐ Reference guide
Fields play a central role in the Helion library.
Field: sample(u, ,v, target) โ โโ VectorField: sample(positionVector, target) โ โโ Surface โ โโ ParametricSurface โ โ โโ MultivariateFunctionSurface โ โ โ โโ ComplexSurface โ โโ DiscreteFieldSurface โ โโ ComplexSurface โ โโ ScalarFieldOnSurface โ โโ HeightScalarField โ โโ MeanCurvatureField โ โโ GaussianCurvatureField โโ ... โ โโ DiscreteScalarFieldMVC:
Simulation updates solverSolver updates fieldSurfaceView samples fieldnumerics/โโโ solvers/โ โโโ JacobiSolverโ โโโ GaussSeidelSolverโ โโโ MultigridSolverโ โโโ FiniteDifferenceWaveSolverโโโโ operators/โ โโโ Laplacian2Dโ โโโ Gradient2Dโ โโโ Divergence2Dโโโโ boundaryconditions/โ โโโ Dirichletโ โโโ Neumannโ โโโ PeriodicSurfaceView โSurface.sample() โScalarField.scalarValueAt()const field = new ScalarGridField(...);
const solver = new WaveEquationSolver({ field, boundaryCondition: BoundaryCondition.Dirichlet});
simulation.onClockTick((_, dt) => solver.step(dt));Introduction
Section titled โIntroductionโIn jouw architectuur (zoals je die nu gebruikt)
Je hebt 3 lagen:
- Physics layer Dipole, Particle, VectorField
โ puur fysica in meters (of SI units)
- Simulation layer Simulation
โ tijd, substeps, integratie
โ hoort NIETS te weten over visual scale
- Render layer ThreeJsRenderer._world ArrowField2 Sphere etc.
โ mapping physics โ visuals
Getting started
Section titled โGetting startedโ๐ My first simulation
Section titled โ๐ My first simulationโTODO
The physics layer
Section titled โThe physics layerโThe simulation layer
Section titled โThe simulation layerโThe rendering layer
Section titled โThe rendering layerโSurfaces
Section titled โSurfacesโSurfaceโScalarField (ruwe waarde)โNormalizedScalarField (altijd [0,1])โColorMapper (blind voor fysica)โView (alleen rendering)/*** Scalar field on a surface.* โ* โโโ MeanCurvatureField* โโโ GaussianCurvatureField* โโโ PrincipalCurvatureField* โโโ GeodesicDistanceField* โโโ UserDefinedField */ export class SurfaceScalarField