CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   How to solve 1st step of semi implicit mtd (https://www.cfd-online.com/Forums/main/11203-how-solve-1st-step-semi-implicit-mtd.html)

newbie April 10, 2006 04:41

How to solve 1st step of semi implicit mtd
 
I'm trying to write a ns code using fractional step. I've read that most people use semi-implicit method ie CN2+AB2. AB2 requires info at 2 time steps. But in the beginning, how is the answer to the 1st step obtained?

Thank you

Darren April 10, 2006 05:47

Re: How to solve 1st step of semi implicit mtd
 
In my very humble opinion...

You can use a 1st order method (forward Euler) in step 1 and then switch over to CN/AB2 in the following steps.

But,

maybe a better way is to just use an RK method for the whole simulation, (like TVD RK2) which doesn't rely on old time step info, is 2nd order accurate and has better stability properties.

Hope this helps

versi April 15, 2006 04:44

Re: How to solve 1st step of semi implicit mtd
 
Crank-Nicolson (CN) is for diffusion terms and better numerical statbility. TVD RK2 has worse stability, I do not recommend it for diffusion problems.

Darren April 15, 2006 06:51

Re: How to solve 1st step of semi implicit mtd
 
Sorry, I didn't make it very clear in my first post.

You can do an operator split and treat the non-linear terms with TVD RK2 and the viscous terms with CN, because as Versi said you need to treat diffusion implicitly to get accetable stability.

There are loads of ways to do the time stepping though, so I'm not trying to say this is the "best" or anything although I would be interested to hear what other people do.

Darren


Fuka May 3, 2006 08:46

Re: How to solve 1st step of semi implicit mtd
 
Forward Euler is sufficient for starting a second order multistep method, because local error is second order.


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