I started exploring this in response to some questions about feasibility of deep-learning based inverse modeling techniques for a much more complex topic. Disregarding all of that context, I'm aiming to understand some limitations and possibilities for using numerical forward modeling, deep-learning inverse modeling, and physically guided constraints.
The 1D heat equation is a partial differential equation that describes the distribution of heat in a system over time. The equation is given by:
where
For the sake of simplicity we will tie the boundary conditions and form of the diffusivity function together, making it easy to generate random instances. To generate the diffusivity functions we simply sample a number of Gaussian distributions with random mean and variance terms which will be used as the diffusivity. When sampling more than a single Gaussian, the overal result is averaged for each point in the domain. The boundary conditions are set by the min and max of the diffusivity, so that
We solve the heat equation via the Crank-Nicholson implicit method, with a timestep of
To set up the baseline model we will use a simple 1 dimentionsl CNN with nothing special going on. The inverse model that we wish to construct is:
The learning process set up in the second notebook highlights the first attempt at this, and works quite well.