|
[Sponsors] |
October 3, 2019, 04:55 |
Why do we need pCorrTypes in interFoam?
|
#1 |
New Member
Join Date: Mar 2015
Posts: 1
Rep Power: 0 |
Dear All,
I have been working on an interFoam based solver nowadays. I cannot understand why do we need pCorrTypes in interFoam. Because, we do not have pCorrTypes for example in pimpleDyMFoam. Let me write the details. In interFoam pcorr is defined in correctPhi.H as Code:
volScalarField pcorr ( IOobject ( "pcorr", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE ), mesh, dimensionedScalar("pcorr", pd.dimensions(), 0), pcorrTypes ); Code:
wordList pcorrTypes ( pd.boundaryField().size(), zeroGradientFvPatchScalarField::typeName ); forAll (pd.boundaryField(), i) { if (pd.boundaryField()[i].fixesValue()) { pcorrTypes[i] = fixedValueFvPatchScalarField::typeName; } } Code:
volScalarField pcorr("pcorr", p); pcorr *= 0; It might be related to definition of pressure in interFoam vs pimpleDyMFoam. In the first one it is pd and in the second one it is p. I would be happy to read your comments. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
interFoam vs. simpleFoam channel flow comparison | DanM | OpenFOAM Running, Solving & CFD | 12 | January 31, 2020 16:26 |
Question about interFoam Solver | Kahnbein.Kai | OpenFOAM Running, Solving & CFD | 2 | August 26, 2019 16:36 |
interFoam (HELYX-OS) pressure boundary conditions | SFr | OpenFOAM Running, Solving & CFD | 8 | June 23, 2016 17:36 |
k-e & GAMG interFoam Schemitisation Stability Issue | JFM | OpenFOAM Running, Solving & CFD | 3 | December 1, 2015 06:58 |
Open Channel Flow using InterFoam type solver | sxhdhi | OpenFOAM Running, Solving & CFD | 3 | May 5, 2009 22:58 |