|
[Sponsors] |
August 8, 2023, 19:43 |
|
#21 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66 |
You can pull the dh out of the time derivative when you apply the temporal discretization. Presenting it this way just obfuscates how, what, and when things are being discretized. You are calling it an "approximation" when really you have invoked a discretization. Just keep it neat.
|
|
August 9, 2023, 07:04 |
|
#22 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
After some further reading of your notes I still do not understand why you do not put directly Eqs.(1) in divergence form and integrate them over Eulerian FVs to solve. That is drho/dt + d/dx(u*rho)=0 du/dt + d/dx(u^2/2-D*du/dx)=0 and then drho_bar/dt + (1/h)[(u*rho)|x+h/2-(u*rho)|x-h/2]=0 du_bar/dt + (1/h)[(u^2/2-D*du/dx)|x+h/2-(u^2/2-D*du/dx)|x-h/2]=0 with the second order approximation rho_bar=rho and u_bar=u. Do you really need to convert in a p-system like?? Why? |
|
August 9, 2023, 08:25 |
|
#23 | |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
Quote:
nu_t=u_h (nu*u)_t= ((D/nu)*u_h+u^2/2)_h These equations scream out for the finite volume method. The more general equations can be put into these form, so I want to solve the easier equations so I want to understand how to solve these, and the finite volume method seems to be the best method. Thanks to your explanation, I understand the method a lot better, but I need to understand how to apply the boundary conditions correctly. At the momen t, I'm a little confused about how it's done. |
||
August 9, 2023, 08:50 |
|
#24 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
The original is complicated? Are you kidding?? |
||
August 9, 2023, 08:54 |
|
#25 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66 |
For canonical BCs you simply insert them at the level of (20) & (21) directly as face fluxes on the boundary faces. Then you reconstruct missing values according to your interpolation scheme. Hence it's really important that you write out, entirely, the FVM system without any "approximations" and only apply the discretizations, term by term, when and where they are needed.
|
|
August 9, 2023, 10:34 |
|
#26 |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
They appear more complicated than first meets the eye. I tied to solve them using the method of lines and matlab's ode solvers, but this failed. I tried to simply do an Euler method, but this failed as well, as I got unphysical results.
I'm at a loss, but this seems to be the best way forward so far. |
|
August 9, 2023, 10:47 |
|
#27 | |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
Quote:
|
||
August 9, 2023, 11:09 |
|
#28 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
You have the 1d Burgers equations, the continuity equation can be solved later. |
||
August 9, 2023, 11:16 |
|
#29 | |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66 |
Quote:
Yes I understand you have boundary conditions just like every other person that has ever worked with a boundary value probem before you. BCs are exactly the fluxes you need to apply to (20) and (21), if not, then it is not a BC. At the face where you have u you apply u and at the face where you have u_h, the you apply u_h. You would encounter this exact same issue if you solve advection equation, diffusion equation, wave equation, etc. |
||
August 9, 2023, 11:19 |
|
#30 | |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
Quote:
You're missing the idea I think, it's not a viscous Burger's equation, it's linked to the other one. The separate when you linearise them, but that's a simple set of equations to solve the issue becomes when they're coupled. |
||
August 9, 2023, 11:21 |
|
#31 | |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
Quote:
|
||
August 9, 2023, 11:23 |
|
#32 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66 |
@Filippo, what mat calls complicated is the linearized Cauchy Stress equations not shown here. The motivation is they would like to solve this Berger's equation to learn how to solve slightly more complicated stress transport equation. We are all in agreement that what is shown, is a very simple equation.
|
|
August 9, 2023, 11:26 |
|
#33 | |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66 |
Quote:
2) You don't have enough constraints to fully define your boundary and need to go determine what additional boundary conditions you need. Consider in navier-stokes for example that we have no-slip at the wall which is u=0 at y=0. This leaves free v, w, and du, dv, and dw, just what you are asking. Yet another example is heat equation where you apply a heat flux dT/dx=a, this leaves T to be whatever it needs to be. |
||
August 9, 2023, 11:27 |
|
#34 | |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
Quote:
|
||
August 9, 2023, 11:29 |
|
#35 | |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66 |
Quote:
It's much simpler than the linearized navier-stokes which itself is much simpler than navier-stokes. At the same time, the fully Cauchy-Stress momentum transport equation itself is a more generalized form of the navier-stokes. I wouldn't say navier-stokes is difficult to solve, thousands of people do it daily. In your case however, there are some gaps in the know-how that you need to address. |
||
August 9, 2023, 11:32 |
|
#36 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
My opinion, as a CFD teacher, is that so far he lost time … |
||
August 9, 2023, 11:34 |
|
#37 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
Are you able to apply in conservative form on the single Burgers equation first using periodic BCs? |
||
August 9, 2023, 11:36 |
|
#38 |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
I can solve the viscous Burgers equation using backwards Euler and Newton raphson method.
|
|
August 9, 2023, 11:41 |
|
#39 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
Try first the explicit first order accurate upwind method in conservative form for the single viscous Burgers equation. Define a flux(i) on each face and store the convective and diffusive fluxes. Then the update of the velocity and the Bcs |
||
August 9, 2023, 12:10 |
|
#40 | |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
Quote:
|
||
Tags |
finite volume method |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
multiphaseEulerFoam FOAM FATAL IO ERROR | qutadah.r | OpenFOAM Running, Solving & CFD | 11 | December 10, 2021 21:18 |
SU2 7.0.7 Built on CentOS 7, parallel computation pyscript mpi exit error? | EternalSeekerX | SU2 | 3 | October 9, 2020 19:28 |
Problem of simulating of small droplet with radius of 2mm | liguifan | OpenFOAM Running, Solving & CFD | 5 | June 3, 2014 03:53 |
Gradient evaluation in Finite Volume Methods | yidongxia | Main CFD Forum | 7 | August 6, 2012 11:23 |
Unstructured grid finite volume methods | Marcus | Main CFD Forum | 3 | December 5, 2000 01:25 |