HeatConductivityInverseProblem<T>

Models & Types · AiDotNet.PhysicsInformed.PDEs

Recovers an unknown thermal conductivity from measurements: given where and when you probed, and what you read, find the coefficient that explains it.

Implements: IInverseProblem<T>

For Beginners

A forward problem asks “given the conductivity, what temperatures do I see?”. An inverse problem runs it backwards: you have the thermometer readings and want the conductivity, which is the thing you could not measure directly. That is most of experimental science.

How It Works

This is the reference IInverseProblem, and until it existed there was none: InverseProblemPINN takes one in its constructor and the library implemented the interface zero times, so the type could not be constructed at all (#2105).

The forward model is the shipped HeatEquation with the current parameter guess substituted in, so the search is over one number: the conductivity itself.

Example

var architecture = new NeuralNetworkArchitecture<double>(
    InputType.OneDimensional, NeuralNetworkTaskType.Regression, inputSize: 2, outputSize: 1);
            
// What you measured: a temperature at each (x, t) you probed.
var observations = new[]
{
    (location: new[] { 0.25, 0.1 }, value: new[] { 0.82 }),
    (location: new[] { 0.50, 0.1 }, value: new[] { 0.95 }),
    (location: new[] { 0.75, 0.1 }, value: new[] { 0.80 })
};
            
var problem = new HeatConductivityInverseProblem<double>(observations, initialGuess: 0.5);
var pinn = new InverseProblemPINN<double>(
    architecture, problem, new IBoundaryCondition<double>[] { new DirichletBoundaryCondition<double>() });

Constructors

Constructor Summary
HeatConductivityInverseProblem(IEnumerable<ValueTuple<double[], double[]>> observations, double initialGuess, double lowerBound, double upperBound, double? measurementNoiseLevel) Initializes the problem from what was measured.

Properties

Property Summary
IReadOnlyList<ValueTuple<T[], T[]>> Observations { get; }
T MeasurementNoiseLevel { get; }
T[] InitialParameterGuesses { get; }
T[] ParameterLowerBounds { get; }
T[] ParameterUpperBounds { get; }
bool HasMeasurementNoiseLevel { get; }
int NumberOfParameters { get; }
string[] ParameterNames { get; }

Methods

Method Summary
IPDESpecification<T> CreateParameterizedPDE(T[] parameters)
bool ValidateParameters(T[] parameters)