|
[Sponsors] |
June 25, 2023, 11:42 |
|
#21 |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
I'm seeing that. I'll do the stability analysis to see if I can't get an answer.
|
|
June 25, 2023, 12:11 |
|
#22 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,753
Rep Power: 66 |
Sure, it is a system of equations with a trivial method to solve it. I just wanted to make sure whether you have a system like Ax=B (this to me is a linear system of equations) or a system like X=C (this to me is an assignment operation).
I don't know elastic beams well enough to know whether your Peclet number is greater or less than 1. But for high Peclet numbers I don't recommend forward differencing on advection terms (this is downwinding). I would recommend central differencing or backward differencing (backwinding) unless you have Peclet number around 0. Central differencing on the diffusion terms is reasonable. As hinted earlier, for Peclet numbers not greater than 1, diffusion terms are unstable with Fourier number. Have you considered debugging on a trivial case? I.e. homogeneous BCs, zero U, and showing that you recover the expected solution and that there is no silly typo? This test case would also be helpful since you can arbitraily coarsen your grid to make the problem more stable to find such bugs. |
|
June 26, 2023, 07:39 |
|
#23 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73 |
||
July 3, 2023, 10:47 |
|
#24 |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
I am now examining stability conditions using the Lax equivalence theorem and I am getting some difficult conditions that don't seem to be consistent which is very worrying.
I've included the beginning of my analysis. |
|
July 3, 2023, 12:55 |
|
#25 | |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
Quote:
I'm currently trying to derive such conditions through a stability analysis using the Lax equivalence theorem. I do not have an analytical solution, it would have to be through a Fourier series. You can't do a separation of variables in this case as the system is coupled. I think that even looking for an analytical solution may be difficult. I could look for the case for a constant temperature, this would still be physically realistic and the analytical solution might be easier to obtain. |
||
July 3, 2023, 12:56 |
|
#26 |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
||
July 4, 2023, 16:24 |
|
#27 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,753
Rep Power: 66 |
Look man, we all know this is a linearized form of a more complex set of governing equations. I would hope that your linearized system is indeed linear. From the start I've made it clear that I was asking whether you have an implicit system of algebraic equations that need to be solved using gaussian elimination or if you have an explicit time-marching scheme. Anyway, thank you for confirming that you have both.
a5/a4 is your Peclet number |
|
July 4, 2023, 17:04 |
|
#28 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73 |
Quote:
|
||
July 5, 2023, 06:32 |
|
#29 | |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
Quote:
I'm begnning to lean on my original was inconsistent. |
||
July 5, 2023, 07:48 |
|
#30 | |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
Quote:
a>c and a<1/2 gave a stable solution along with c>a and a<1. I found this out by examining the norm of the matrix and setting it to be less than 1 for stability. |
||
July 5, 2023, 09:04 |
|
#31 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73 |
Quote:
|
||
July 5, 2023, 10:37 |
|
#32 |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
Why do you think using the Lax equivalency theorem is wrong in this situation?
|
|
July 5, 2023, 11:10 |
|
#33 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73 |
Quote:
Consider that single equation, you have df/dt+u*df/fx=d*d^2 f/dx2 + k*f The stability region is obtained as the isosurface: |G|(cfl, Re_h, gamma)=1 G being the amplification factor of the scheme. That is you have a functional relation between the various parameters. |
||
July 5, 2023, 12:20 |
|
#34 | |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
Quote:
|
||
July 5, 2023, 12:25 |
|
#35 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73 |
Quote:
For a single 1d equation is very very easy to do using matlab or maple software, just few lines of code. See https://www.researchgate.net/publica...tion_Equations |
||
July 5, 2023, 13:18 |
|
#36 | |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
Quote:
|
||
July 5, 2023, 13:33 |
|
#37 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73 |
Quote:
Indeed, the complex amplification factor depends on 4 independent variables. Are you able to generate that algebrically ? Let us see … |
||
July 5, 2023, 13:42 |
|
#38 | |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
Quote:
|
||
July 5, 2023, 13:57 |
|
#39 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73 |
Quote:
No, not this way. Let me consider a simple FTUS scheme f(i,n+1)=f(i,n)-cfl*[f(i,n)-f(i-1,n)]+(cfl/Re_h)*[f(i+1,n)-2*f(i,n)+f(i-1,n)]+gamma*f(i,n) cfl=u*dt/h, Re_h=u*h/ni, gamma=dt*k That is f(i,n+1)=[1-cfl-2*(cfl/Re_h)+gamma]*f(i,n) +[cfl+(cfl/Re_h)]f(i-1,n)+(cfl/Re_h)*f(i+1,n) Hence G=[1-cfl-2*(cfl/Re_h)+gamma]+[cfl+(cfl/Re_h)]*exp(-i*k*h)+(cfl/Re_h)*exp(-i*k*h) From this expression you evaluate the expression for the modulus |G|(cfl,Re_h,gamma,k*h) so that you can simply code the research for all -pi<=k*h<=+pi for the most critical value of |G| at values clf,Re_h,gamma. That can be easily done by saving the max value of |G| in a 3d matrix and then extracting the isosurface at |G|max=1 value. Slices can help to see the 2D maps. Very easy to code. |
||
July 5, 2023, 16:08 |
|
#40 | |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
Quote:
|
||
Tags |
1dfluid, cfd |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compressible nozzle flow - no problem for fluent but impossible with openFOAM? | flar.t | OpenFOAM Running, Solving & CFD | 10 | March 30, 2022 02:21 |
Compressible flow, no data at the outlet | mireis | FLUENT | 6 | September 3, 2015 03:10 |
Natural Convection using Compressible Flow (chtMultiRegionFOAM) | msarkar | OpenFOAM | 2 | September 7, 2010 01:13 |
help with compressible flow BC's (need subsonic flow) | meangreen | Main CFD Forum | 5 | July 24, 2010 14:16 |
Solving unsteady compressible low speed flow | atit | Main CFD Forum | 8 | July 31, 2000 14:19 |