How to solve ODEs with spatial variables coupled #28695
-
Check these boxes if you have followed the posting rules.
QuestionHi everyone, A(x,t) = A(x,t=0)exp(-y); |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 91 replies
-
Hello ODEs in moose are solved by:
Do you want to solve for A? It seems like it's entirely predetermined from its initial condition? |
Beta Was this translation helpful? Give feedback.
Hi @GiudGiud,
Thank you for your kind help. Could you please help me get the code below to display properly?
I hope this discussion will be helpful to others.
Here is the header files, source files and input file for the problem discussed:
A(x,t) = A0exp(-y);
dB(x,t) / dt = mA(x,t)B(x,t) + nB(x,t)C(x,t);
dC(x,t) / dt = qB(x,t)C(x,t)
// .h file for A(x,t)
// .C file for A(x,t)