How to Solve an Algebraic Equation Involving an Integral in MOOSE #32269
-
Check these boxes if you have followed the posting rules.
QuestionI would like to solve the following algebraic equation in MOOSE: where there are two variables: $ c $ and $ \phi $ . The variable $ c $ is solved by other modules, while $ \phi $ is the unknown to be determined from this equation. Here, $ j_0(c) $ is a known function of $ c $ , $ f(\phi, c) $ is a given function of both $ \phi $ and $ c $ , and $ C $ is a constant. In COMSOL, such an equation can be handled using the ODE module. I am trying to use |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
|
Hello ODE kernel in MOOSE is meant for equations that live on a single node, possibly coupled to a term at varies (or is being solved for) across multiple nodes. This equation is living on all the nodes of a boundary at once. I would actually recommend creating an integrated boundary condition to represent this equation. |
Beta Was this translation helpful? Give feedback.
-
|
Hello, Due to the time elapsed since my last comment, I would like to reiterate and provide some supplementary information regarding my problem. Problem Description:
Attempts and Issues:
Governing Equation: For clarity, I omitted the specific expression in my initial inquiry. The equation I am trying to solve at the boundary is the Butler-Volmer equation, which couples the scalar where $E_eq(c)$is an interpolation function. This problem has consumed a significant amount of my time, and I have been unable to find a working solution within the MOOSE framework. Could you please provide some guidance on the correct approach to implement a scalar constraint driven by a boundary integral of a field variable? Thank you very much for your help. |
Beta Was this translation helpful? Give feedback.
Hello
I think an integrated boundary condition for the variable c remains the best option.
Phi should remain a scalar variable, not become a field variable
An integrated BC for variable c should be able to depend on a scalar variable