|
[Sponsors] |
September 15, 2023, 05:13 |
|
#141 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
So, you confirm that x=0 is a face location, not a cell-centre location. How do you compute (in both equations) the diffusive fluxes at x=0? |
||
September 15, 2023, 06:20 |
|
#142 |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
The flux for the mass equation, the fluxes are just the velocity, and that's 0 at x=0. For the momentum, I use the same gradient from 0 to dx/2, as I do from dx/2 to 3dx/2.
|
|
September 15, 2023, 06:53 |
|
#143 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
||
September 15, 2023, 07:04 |
|
#144 |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
||
September 15, 2023, 07:07 |
|
#145 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
||
September 18, 2023, 07:54 |
|
#146 |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
||
September 18, 2023, 08:22 |
|
#147 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
||
September 18, 2023, 09:34 |
|
#148 |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
||
September 18, 2023, 10:20 |
|
#149 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
||
September 18, 2023, 11:17 |
|
#150 |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
The 1 and 2 are at the cell centres and the node at i=1 is at dh_1/2. The equation you provided does not solve the problem I mentioned.
|
|
September 18, 2023, 12:04 |
|
#151 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
What if you set to zero the diffusive flux at x=0? I suspect that u=0 as BC is not congruent. Physically you will have an increasing of the kinetic energy in the domain. |
||
September 18, 2023, 12:44 |
|
#152 |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
So that means I have two boundary conditions at h=0. Won't this be unstable?
|
|
September 18, 2023, 12:56 |
|
#153 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
From a mathematical point, you have two equations, each one has its suitable BC depending on the mathematical classification. From a physical point of view, I see that you let mass entering for the right side (u is negative), that means you have also kinetic energy (rho*u^2/2) increasing into the domain. If u=0 at the left side, there is no mass leaving the domain, right? |
||
September 18, 2023, 13:04 |
|
#154 | |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
Quote:
|
||
September 18, 2023, 13:25 |
|
#155 | |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
Quote:
|
||
September 18, 2023, 13:29 |
|
#156 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
Quote:
What should be the difference from the classic gasdynamics problem for the simple wave case as shown in Zucrow? |
||
September 18, 2023, 13:31 |
|
#157 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73 |
||
September 18, 2023, 17:09 |
|
#158 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66 |
Do you set gradients or fluxes to 0 at x=0?
du/dx=0 is setting the boundary/face gradient to 0 which will constrain both the advective and diffusive flux. You optionally can set the convective and diffusive fluxes individually to zero. This is the better way to go for FVM since FVM calls explicitly for face fluxes and not face gradients. But to answer your previous question, setting diffusive fluxes to zero does not give you too many constraints, it should have been one of the original constraints in the problem definition. |
|
September 19, 2023, 07:32 |
|
#159 | |
Senior Member
Matthew
Join Date: Mar 2022
Location: United Kingdom
Posts: 184
Rep Power: 4 |
Quote:
|
||
September 19, 2023, 09:53 |
|
#160 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,761
Rep Power: 66 |
Oh sorry, that's right you have only a diffusive flux in the lagrangian formulation. Now just keep in mind that you can set the flux to 0 without invoking any differencing scheme. This is the way.
The other way is to set the du/dx to zero and then interpolate it onto the face flux. This way introduces discretization errors and inconsistencies. |
|
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 |