Coder Social home page Coder Social logo

Comments (5)

fppimenta avatar fppimenta commented on August 25, 2024

The time derivative of the 2nd eq seems a little strange. Should it be in T2? Assuming that the equations are correctly typed, there are wrong signs in the eqs inserted. Are there additional coupling terms in sources S1_2?

from rheotool.

FoamScience avatar FoamScience commented on August 25, 2024

Thanks for the super-quick reply.

  1. The time derivative of the 2nd eq is indeed in "T1"
  2. No additional coupling terms in S1 and S2. They are matrices for T2

Should S1 in T2InT1Eqn have a negative sign? auto T2InT1Eqn ( - fvm::laplacian(-M1, T2) - S1 );?
or should it be auto T2InT1Eqn ( fvm::laplacian(-M1, T2) + S1 );

I was under the impression I need to insert the opposite of the coupled terms.

from rheotool.

fppimenta avatar fppimenta commented on August 25, 2024

When the equations are equated to 0 on the same side, they should be inserted as they are written, as in your case.

I was asking about the source terms, because you may achieve additional implicit coupling through them.

from rheotool.

FoamScience avatar FoamScience commented on August 25, 2024

Thanks for clarifying things; I must have messed with something else then. I'll have to debug the coupled system :)

Yes, I know about coupling the source terms (some experience from foam-extend), in my case though, they both depend on T2 only but I would love to find examples on how to achieve implicit coupling through them (would be useful for future equations).
The rheo* solvers don't seem to present examples.

from rheotool.

fppimenta avatar fppimenta commented on August 25, 2024

The Nernst-Planck equations are the closer I can see in rheoTool from your case. Take a look at this (you will find theory in the user-guide; you can also check the signs of these equations):

https://github.com/fppimenta/rheoTool/tree/master/of70/src/libs/EDFModels/models/NernstPlanck/NernstPlanckCoupled

There are additional cases of coupling, but they are more complex and related with new operators. The theory is here: https://www.sciencedirect.com/science/article/abs/pii/S0045793019302427 and you can find the code in the repo (look inside classes, not only inside solvers).

Re-open issue if needed.

from rheotool.

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.