Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling integral terms with FiPy #824

Closed
pavaninguva opened this issue Oct 1, 2021 · 5 comments
Closed

Handling integral terms with FiPy #824

pavaninguva opened this issue Oct 1, 2021 · 5 comments

Comments

@pavaninguva
Copy link

Hi

I was wondering if it is FiPy currently includes any support for PDEs with integral terms e.g. population balance models with integral terms to account for breakage etc (see https://aiche.onlinelibrary.wiley.com/doi/full/10.1002/aic.11484 for a bit more detail). If not, would it be possible to use a scipy function call and supply that result as an explicit source term?

Thanks for the help!

@wd15
Copy link
Contributor

wd15 commented Oct 1, 2021 via email

@pavaninguva
Copy link
Author

Hi Daniel, thanks for the quick reply.

It is also possible to include a diffusion term with those models, hence I wasnt too focused on the fact that many of these models are violently hyperbolic. How would you suggest I go about implementing those integral terms? Would the scipy route be a good first guess?

Best
Pavan

@guyer
Copy link
Member

guyer commented Oct 1, 2021 via email

@pavaninguva
Copy link
Author

Hi! Would like to ask a follow-up question.

How would I go about implementing the Mckendrick-von Foerster equation which has a funky bc

df/dt + df/da = -k(a) f, f(t,0) = \int_{0}^{\infty} b(a) f(t,a) da,

where b(a) is some sort of analytical function with respect to a.

I guess one strategy could be to include a explicit source term at the first node of the domain and compute the integral and pass it to the source? But that seems like quite an unelegant implementation. I am aware of the hyperbolic nature of this PDE, but the Van-Leer scheme seems to work quite well with this, so I would think FiPy should be able to handle it.

Thanks for the help!

@guyer
Copy link
Member

guyer commented May 13, 2022

No activity in 6 months

@guyer guyer closed this as completed May 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants