|
[Sponsors] |
August 31, 2015, 13:33 |
Black box testing
|
#1 |
Senior Member
Join Date: May 2012
Posts: 546
Rep Power: 15 |
Hey,
If I have an incompressible black box code that gives good results compared to existing benchmarks, how can I verify that the solution method produces a divergence free flow? There is no information as to which solver and/or method (FD,FV,FE) is being used in the code. Would you say that if the incompressible code preforms well with regards to benchmarks it is likely that those solutions are divergence free? |
|
September 1, 2015, 15:33 |
|
#2 |
Senior Member
Join Date: May 2012
Posts: 546
Rep Power: 15 |
So I ran a test with a guessed residual R = (U_w - U_e + V_n - V_s) and ended up with an average L1 norm of the residual vector of about 1e-6
Should I normalize the velocities before the analysis? |
|
September 1, 2015, 15:40 |
|
#3 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,764
Rep Power: 71 |
but you should know what discrete divergence operator is used in your black-box code... otherwise what you are testing is not what is resolved...
|
|
September 1, 2015, 17:02 |
|
#4 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,666
Rep Power: 65 |
Wouldn't a true incompressible code have to guarantee that the flow is divergence free? Else, how do you know it is an incompressible code?
However, I second the previous statement. You're dealing with a discrete numerical solution. You can't discuss whether your discrete solution is divergence free without discretizing the divergence operation. If your code is a black box, you wouldn't know this discretization and therefore can't talk about divergence. You need to know the discretization scheme used by the code to test this. You can arbitrarily define your own method to evaluate whether the numerical solution is divergence free, but you have the risk that your discretization is not the same scheme as the one used by the solver and is therefore inconsistent. A field may be divergence free in one discretization scheme and not another. |
|
September 2, 2015, 01:46 |
|
#5 | |
Senior Member
Join Date: May 2012
Posts: 546
Rep Power: 15 |
Quote:
If there are no ways of verifying if the code is incompressible then I wonder what significance the verification has. The code performs well with regards to standard test cases and if I have an inlet and outlet the fluxes at those boundaries also cancel to machine precision. What do you think? |
||
September 2, 2015, 03:25 |
|
#6 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,764
Rep Power: 71 |
Quote:
Testing the mass conservation by integrating the fluxes along the boundary is a good indicator but does not ensure the local divergence constraint |
||
September 2, 2015, 03:29 |
|
#7 | |
Senior Member
Join Date: May 2012
Posts: 546
Rep Power: 15 |
Quote:
What happens if the divergence-free requirement is not satisfied locally? |
||
September 2, 2015, 04:07 |
|
#8 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,764
Rep Power: 71 |
Div v is a term appearing in the kinetic energy equation as additional work, therefore you would get in the solution a spurious source of kinetic energy
|
|
September 2, 2015, 04:30 |
|
#9 |
Senior Member
Join Date: May 2012
Posts: 546
Rep Power: 15 |
I imagine that this spurious source would affect the solution. Do we have any test case that certainly would produce a poor solution (or even better - divergence in the linear solver) if such spurious sources are indeed present?
|
|
September 2, 2015, 04:42 |
|
#10 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,764
Rep Power: 71 |
Quote:
generally, you have to check for papers based on the approximate projection method where the divergence-free constraint is quite relaxed, being satisfied only up to the magnitude of the local truncation error. The effect of such source term can be relevant in simulation of turbulence where you can have effects in the energy spectrum. You can also find in literature reported cases where the spurious production of kinetic energy causes a numerical instability (long-time simulation) |
||
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[DesignModeler] simply model, empty box | conquer | ANSYS Meshing & Geometry | 0 | March 28, 2014 18:26 |
Black Box Algebraic Multigrid | Neazen | Main CFD Forum | 0 | June 4, 2007 07:10 |
Junction Box | Anil | CFX | 2 | June 27, 2006 10:18 |
Immersol Simulation of a Heated Box | Dong | Phoenics | 0 | March 2, 2006 21:20 |
Convergence | Tudi Xiao | Main CFD Forum | 4 | July 2, 1999 16:33 |