Constructors
Properties
Methods
CreateFromMesh
#GradAt
#Compute the magnitude of the normalised temperature gradient going into the volume.
public double GradAt()
location,
Sampling location.
normal
Normal at location (sampling will happen in the reverse direction). The normal ought to have unit length, although a scaled normal would also affect the depth at which sampling happens, exposing another level of control to the caller.
SolveHeatDispersion
#Run a cooling simulation. All interior voxels are set to 1.0, all exterior ones to 0.0 and then an iterative smoothing is applied until the average temp drops below 'coolingLimit'.
public void SolveHeatDispersion()
targetTemperature,
Use 0.5 when in doubt.
maximumIterations,
Maximum number of iterations.
token
Cancellation token.
TempAt
#Gets the temperature at the given voxel indices.
Returns: Temp at voxel, or double.NaN if undefined.