|
[Sponsors] |
All Mach number implicit solver with Kurganov-Tadmore scheme - pisoCentralFoam |
![]() |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
![]() |
![]() |
#101 | |
Senior Member
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 20 ![]() |
slicedSurfaceScalarField works as pointer to data of array (field) that was specified during construction.
Quote:
__________________
MDPI Fluids (Q2) special issue for OSS software: https://www.mdpi.com/journal/fluids/..._modelling_OSS GitHub: https://github.com/unicfdlab Linkedin: https://linkedin.com/in/matvey-kraposhin-413869163 RG: https://www.researchgate.net/profile/Matvey_Kraposhin |
||
![]() |
![]() |
![]() |
![]() |
#102 | |
Senior Member
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 20 ![]() |
Quote:
Hi, Pete! This is how MULES algorithm for multicomponent flow was designed. To make approximation of transport equations consistent between different phases, it takes minimum value of lambdaCoeff (the same approach is used for V-version of limited schemes in OpenFOAM, such as vanLeerV, MinmodV, etc): \phi_f = \phi_f^{Upwind} + \lambda \times (\phi_f^{TVD} - \phi_f^{Upwind}) . However, if \phi = 0, then MULES sets lambda to 0 and all other fields are transported with upwind. This is a very diffusive, but at the same time robust approach. I think, this is rather technical issue, but it's solution requires some efforts. Maybe you will find time to solve it
__________________
MDPI Fluids (Q2) special issue for OSS software: https://www.mdpi.com/journal/fluids/..._modelling_OSS GitHub: https://github.com/unicfdlab Linkedin: https://linkedin.com/in/matvey-kraposhin-413869163 RG: https://www.researchgate.net/profile/Matvey_Kraposhin |
||
![]() |
![]() |
![]() |
![]() |
#103 |
New Member
Pete
Join Date: Feb 2016
Posts: 7
Rep Power: 9 ![]() |
Matvey - I'm working on this but haven't found a good way to fix this problem without going into the MULESTemplates.C code and I was hoping to not have to mess with that.
Also, I think I found a bug in your Y.eqn (dev-2112) code on line 187: Code:
owner = mesh.owner()[iFace]; neighbour = mesh.owner()[iFace]; Code:
neighbour = mesh.neighbour()[iFace]; Thanks Pete |
|
![]() |
![]() |
![]() |
![]() |
#104 | |
Senior Member
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 20 ![]() |
Yes, you are right. This is a bug, thank you.
To circumvent indexing problem, wrap next code into if (mesh.isInternalFace(iFace)): Code:
if (mesh.isInternalFace(iFace)) { owner = mesh.owner()[iFace]; neighbour = mesh.neighbour()[iFace]; deltaY = mag(Y[iCmpt][owner] - Y[iCmpt][neighbour]); if (deltaY > maxDeltaY.primitiveField()[iFace]) { maxDeltaY.primitiveFieldRef()[iFace] = deltaY; } } Quote:
__________________
MDPI Fluids (Q2) special issue for OSS software: https://www.mdpi.com/journal/fluids/..._modelling_OSS GitHub: https://github.com/unicfdlab Linkedin: https://linkedin.com/in/matvey-kraposhin-413869163 RG: https://www.researchgate.net/profile/Matvey_Kraposhin |
||
![]() |
![]() |
![]() |
![]() |
#105 |
New Member
Pete
Join Date: Feb 2016
Posts: 7
Rep Power: 9 ![]() |
Thanks, that did the trick with the indexing error. Now I am seeing realistic values of hLambdaCoeffs and they are much better behaved than the lambdaCoeffs (only less than 1 in regions of steep phi gradients).
What I am testing now is moving the section of code: "Solve for Components" below the calculation of hLambdaCoeffs and using hLabmdaCoeffs on the Y equations (instead of lamdaCoeffs) as well as h. That way everything is using the same limiter and it seems to get around the phi=0 issue with MULES. I'll keep you posted. Pete |
|
![]() |
![]() |
![]() |
![]() |
#106 |
Senior Member
Matvey Kraposhin
Join Date: Mar 2009
Location: Moscow, Russian Federation
Posts: 355
Rep Power: 20 ![]() |
Please write if you get any progress
__________________
MDPI Fluids (Q2) special issue for OSS software: https://www.mdpi.com/journal/fluids/..._modelling_OSS GitHub: https://github.com/unicfdlab Linkedin: https://linkedin.com/in/matvey-kraposhin-413869163 RG: https://www.researchgate.net/profile/Matvey_Kraposhin |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
DPMFoam - Serious Error --particle-laden flow in simple geometric config | benz25 | OpenFOAM Running, Solving & CFD | 27 | December 19, 2017 20:47 |
foam-extend_3.1 decompose and pyfoam warning | shipman | OpenFOAM | 3 | July 24, 2014 08:14 |
Solver is finishing with huge Mach number | Fonzie | CFX | 1 | March 12, 2007 14:15 |
High Mach number solver error | Luke | CFX | 3 | January 31, 2007 22:26 |
TVD scheme at low Mach number | Axel Rohde | Main CFD Forum | 5 | August 6, 1999 02:01 |