Giter Site home page Giter Site logo

advection-diffusion-reaction about fvtool HOT 7 OPEN

simulkade avatar simulkade commented on May 30, 2024
advection-diffusion-reaction

from fvtool.

Comments (7)

simulkade avatar simulkade commented on May 30, 2024

from fvtool.

SA8416 avatar SA8416 commented on May 30, 2024

Here is my first attempt, with the correct BC for the case without a maximum concentration. I would like to impose a maximum possible concentration (say for this case phi_max=2.5), and not allow the concentration to surpass this value. I'm having some difficulty with the sink term and the boundary conditions at the right side.

1DconvdiffPPT.m.txt

from fvtool.

SA8416 avatar SA8416 commented on May 30, 2024

update: I have obtained what appears to be the correct profile for the steady state by explicitly stating where the source becomes active in the mesh, in the steady file.

The transient file is what I'm trying to fix, where the source becomes active at a certain value of "phi", but I think the BC need to be changed at each time step. Is there a way to do this?

Thanks!
C_1D_PPT_steady.m.txt
C_1D_PPT_trans.m.txt

from fvtool.

SA8416 avatar SA8416 commented on May 30, 2024

I seem to have gotten the concentration profile I was expecting with this code, but am still unsure if the boundary conditions are correct.
C_1D_PPT_trans_newest.m.txt

from fvtool.

iftikhar8 avatar iftikhar8 commented on May 30, 2024

Does this tool work if the reaction term is nonlinear? I am trying to solve an advection-diffusion PDE which also has a nonlinear reaction term in it. Thanks for your help.

from fvtool.

simulkade avatar simulkade commented on May 30, 2024

It is possible to solve nonlinear equations, but first you it has to be linearised using Taylor expansion. I'll write about it soon.

from fvtool.

iftikhar8 avatar iftikhar8 commented on May 30, 2024

Thank you!

from fvtool.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.