CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

ddtSchemes, How Euler and CrankNicolson descritize?

Register Blogs Community New Posts Updated Threads Search

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   February 6, 2014, 06:12
Default ddtSchemes, How Euler and CrankNicolson descritize?
  #1
ooo
Member
 
Join Date: Feb 2012
Posts: 49
Rep Power: 14
ooo is on a distinguished road
I want to solve( ddt(U) == F ) in which both U and F are volVectorField.
I get three different results when i use these three approaches!
I expect that all of them should be same

1) forAll(U, cellI) U[cellI] += runTime.deltaTValue()*F[cellI];
2) solve(fvm::ddt(U)==F); //Euler descritization
3) solve(fvm::ddt(U)==F); //CrankNicolson descritization

Do you know why they don't give same result? Because i think all of them do this : ( Unew = Uold + F*dt)

Last edited by ooo; February 10, 2014 at 11:39.
ooo is offline   Reply With Quote

 


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 Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 09:58.