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

nonlinear source term #498

Closed
rahafrouz opened this issue Jul 5, 2016 · 1 comment
Closed

nonlinear source term #498

rahafrouz opened this issue Jul 5, 2016 · 1 comment

Comments

@rahafrouz
Copy link

Hi!
In a diffusion term process, does the source term should only be a linear term of diffusion variable (phi)? My diffusion simulation has a kind of wasting term and a noise term, which are not linear and I was wondering how should I implement that.
thank you.

@wd15
Copy link
Contributor

wd15 commented Jul 5, 2016

@rahafrouz, no the source term does not have to be linear. You can make the source terms functions of "phi". As long as "phi" is a CellVariable the source terms will be updated during the time steps and sweeps. See the following for an example of how to deal with non-linear source terms:

http://www.ctcms.nist.gov/fipy/examples/phase/generated/examples.phase.simple.html

@wd15 wd15 closed this as completed Jul 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants