CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Question about implementing "solve" in solvers (https://www.cfd-online.com/Forums/openfoam-solving/119449-question-about-implementing-solve-solvers.html)

liguifan June 17, 2013 19:16

Question about implementing "solve" in solvers
 
Dear Foamers,

I have been using OpenFOAM for more than a year, most of my case is about just use the exist solvers the software. Now, I want to get started about development my own solver.

It maybe a dull question to ask. But where can I find the code of "solve" function in the below sample code?

like
While(simple.loop())
{
Info<<"time= "<<runTime.timeName()<<nl<<endl;
while(simple.correctNonOrthogonal())
{
solve
(
fvm::ddt(T)
+fvm::div(phi,T)
-fvm::laplacian(DT,T)
);
}}

And how about laplacian, div?

Many thanks!

nimasam June 18, 2013 01:38

ddt, laplacian and so on are memebrs of fvm class


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