DedalusProject / dedalus

A flexible framework for solving PDEs with modern spectral methods.
http://dedalus-project.org/
GNU General Public License v3.0
513 stars 121 forks source link

GeneralFunction capabilities for d3 #227

Closed lecoanet closed 1 year ago

lecoanet commented 2 years ago

This is a first attempt to get GeneralFunction working in d3. I have used it to add stochastic forcing to an equation. Right now the user needs to pass in a distributor, domain, tensorsig and dtype -- normally these would come from the operand, but the GeneralFunction does not necessarily have any operand! I'm not sure if there is any better way to get these. I also need to make unit tests (and make sure it works for more sophisticated functions!).

kburns commented 1 year ago

Sorry for the delay. Is this good to go as far as we know?