CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Question about implementing "solve" in solvers

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   June 17, 2013, 19:16
Default Question about implementing "solve" in solvers
  #1
Member
 
Guifan Li
Join Date: Apr 2011
Location: New York City, U.S.
Posts: 96
Rep Power: 6
liguifan is on a distinguished road
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!
liguifan is offline   Reply With Quote

Old   June 18, 2013, 01:38
Default
  #2
Senior Member
 
Nima Sam
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,123
Blog Entries: 1
Rep Power: 14
nimasam is on a distinguished road
Send a message via Yahoo to nimasam
ddt, laplacian and so on are memebrs of fvm class
__________________
Training Course on OpenFOAM at (http://www.isme.ir/)
My Weblog (http://openfoam.blogfa.com/)
nimasam is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
question about uds tanven FLUENT 2 July 5, 2015 11:22
Definition of Residuals in pressure-based and density-based solvers gravis FLUENT 2 April 21, 2010 04:08
Question about Table applicaiton. universez OpenFOAM Running, Solving & CFD 0 January 12, 2010 21:31
Question About solvers and interpolation schemes titio OpenFOAM Running, Solving & CFD 0 July 9, 2009 11:41
Iterative equation solvers in CFD Vitaly Bulgakov Main CFD Forum 32 March 1, 1999 12:11


All times are GMT -4. The time now is 22:19.