CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   Main CFD Forum (https://www.cfd-online.com/Forums/main/)
-   -   Problems with own CFD (https://www.cfd-online.com/Forums/main/173447-problems-own-cfd.html)

Peszkow June 20, 2016 06:07

Problems with own CFD
 
Hello everyone!
I am creating my own solver of unsteady Stokes flow in 2D(pressure at the inlet rises linearly and stop after few seconds). At first I solve \nabla^{2}p=0 and then computed pressure is put into Stokes equations. It bases on finite difference method and uses Conjugate Gradient Method to solve the pressure equation. Next the stokes equations are solved using ADI algorithm and CGM. First step of time is okey, because the solution is zero(so it is put during initiazation). Unfortunately in next step when pressure at the inlet rises pressure don't want to converge. It is linear problem and theoritically it should converge(matrix from laplace equation is symmetricall and PDM) in some cases slowly but still it should converge. Unfortunately in my case calculations are diverging. I have checked everything but I wasn't able to find an error. Have anyone got some ideas how to find where is the problem ?

FMDenaro June 20, 2016 07:07

I don't understand the Laplace equation for the pressure...

Peszkow June 20, 2016 07:26

If take a divergence of Stokes Equation(incompressible), you will get Laplace equation for pressure.

FMDenaro June 20, 2016 08:05

be carefull, numerically the diffusive terms in the momentum equation produce a source term into the pressure equation, that is Div (1/Re Div Grad v). The bc for the normal derivative of the pressure must ensure the compatibility

Peszkow June 20, 2016 09:50

Problem found, my matrix turn out to be not symmetricall. Thank you for advice.

AHMEDLAOUARI June 21, 2016 06:25

solver controle
 
hi everyone
I have a question concerning the difference between conservative and aggresive length scale option for simulation

hossein3975 January 18, 2020 12:31

Dpm
 
Hi Dears

could you please help me about solid particle injection in liquid phase? particles have injected to inlet but why they don't escape from outlet?


All times are GMT -4. The time now is 03:12.