idaholab / moose

Multiphysics Object Oriented Simulation Environment
https://www.mooseframework.org
GNU Lesser General Public License v2.1
1.77k stars 1.05k forks source link

Geochemistry temperature interpolator #14950

Closed WilkAndy closed 4 years ago

WilkAndy commented 4 years ago

Reason

Equilibrium constants and certain other things are evaluated at certain temperature points. These things need to be interpolated to arbitrary temperature.

Design

GWB uses a 4th-order polynomial fit. I think @cpgr told me that other databases use other interpolations. I'm not sure of the best design, but note that this function will be hit at least once for every node for every secondary species, so can't be too slow. Perhaps we instantiate one of these interpolator objects for each secondary species at each node (memory!) or maybe just once for each equilibrium species over the entire mesh (but what about if we have different equilibrium species at each node). I'm not sure. Do you think you could do this, @cpgr ?

Impact

Ability to interpolate.

cpgr commented 4 years ago

You're on fire Andy! I'll do this

WilkAndy commented 4 years ago

Thanks Chris. I think we'll be churning out code much faster than the MOOSE guys can review it.

a

WilkAndy commented 4 years ago

Hey Chris - can you make the interpolator also produce derivative information? It'll be useful when we have to do Newton stuff.

cpgr commented 4 years ago

I'm pretty sure it will

WilkAndy commented 4 years ago

This is closed by the PR #14982