CFD Online Discussion Forums

CFD Online Discussion Forums (
-   OpenFOAM (
-   -   Solving PDE time dependent (

DiracRules September 30, 2011 05:42

Solving PDE time dependent
Hi there!

I'm looking for a way to solve parabolic time dependent PDE (sth like Ut=Uxx).
Actually, I'm trying to write down my own solver since I need to perform some peculiar calculation, so what I'm asking is:

what kind of loop/iterative method should I use?

Since I'm quite new to CDF, I don't know all the possibilities and the different type of loops.

Thanks in advance!

nimasam September 30, 2011 05:53

hi firend
openFOAM solves pde equation for learning look into basic solver!

for example a syntax like this in OpenFOAM can solve ur problem


solve (fvm::ddt(U) == fvm:: laplacian (U))

for more information about openFoam syntax look at programmer guide chapter 2

DiracRules September 30, 2011 11:38

Thank you!
I am ashamed of my question. Just did not think enough. It was obvious. I had already written that line of code, I just thought I needed something more "complicated" -.-''

And can you give me some info about solving eigenvalue problems (like Uxx=lambda *U?
I need the solver to find both lambda and U.
I thought something like making a loop on lambda and see which solutions are non-zero, but I don't think it would work and I guess there are less expensive ways.


All times are GMT -4. The time now is 05:03.