CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Projection method and mesh free (https://www.cfd-online.com/Forums/main/154416-projection-method-mesh-free.html)

Rime June 13, 2015 17:34

Projection method and mesh free
 
I have a problem in my code (diverge)
to solve navier stokes equation, i use mesh free method (uniform) and projection method; in the boundary condition I have Neumann boundary for pressure and for intermediate velocity u^*=2 and u^* =0,I use U^*.\hat{n} = U^{n+1}.\hat{n} but I don't update the velocity in boundary ie i give all time u=2 and 0 is correct???
I don't know what's the problem,
help please :( :( (sorry for my english)

FMDenaro June 13, 2015 18:01

Quote:

Originally Posted by Rime (Post 550260)
I have a problem in my code (diverge)
to solve navier stokes equation, i use mesh free method (uniform) and projection method; in the boundary condition I have Neumann boundary for pressure and for intermediate velocity u^*=2 and u^* =0,I use U^*.\hat{n} = U^{n+1}.\hat{n} but I don't update the velocity in boundary ie i give all time u=2 and 0 is correct???
I don't know what's the problem,
help please :( :( (sorry for my english)


Are you using an implicit method for diffusion in the momentum?

if the physical u at the boundaries is steady you can let the same value but u* = u_n+1 is first order accurate in time (read the paper of Kim and Moin on JCP).
However, that should not cause the divergence of the solution therefore check in the code for some bugs.

Rime June 13, 2015 18:09

I use Crank-Nicolson scheme for convective and diffusive terms

FMDenaro June 14, 2015 04:15

Quote:

Originally Posted by Rime (Post 550262)
I use Crank-Nicolson scheme for convective and diffusive terms


how do you treat the non-linear term in the matrix?

Rime June 14, 2015 05:33

thank you for your reply.
I supposed that the term u_n+1 is transported by u_n

FMDenaro June 14, 2015 05:39

Quote:

Originally Posted by Rime (Post 550279)
thank you for your reply.
I supposed that the term u_n+1 is transported by u_n


so you are linearizing at first order...but the method should be second order accurate in time..

I suggest:

1) Use CN only for the diffusion and the second order Adams-Bashforth for the convective term
2) Check if you satisfy the continuity constraint in each cell at machine accuracy. You can see that also after 1 time step

Rime June 14, 2015 05:54

thank you I'll try that.
can you give me more information on suggestion 2)

Rime June 15, 2015 14:43

Hi Sir
I have a variable density, to solve the pressure equation I use radial basis function,( its the mesh method that I use)
What is your advice?
Thank you


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