CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Why do we need pCorrTypes in interFoam?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 3, 2019, 04:55
Default Why do we need pCorrTypes in interFoam?
  #1
New Member
 
Join Date: Mar 2015
Posts: 1
Rep Power: 0
goguler is on a distinguished road
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
    );
Before that we have declaration of pCorrTypes as follows:

Code:
wordList pcorrTypes
    (
        pd.boundaryField().size(),
        zeroGradientFvPatchScalarField::typeName
    );

    forAll (pd.boundaryField(), i)
    {
        if (pd.boundaryField()[i].fixesValue())
        {
            pcorrTypes[i] = fixedValueFvPatchScalarField::typeName;
        }
    }
However, in pimpleDyMFoam pcorr is declared as follows:

Code:
volScalarField pcorr("pcorr", p);
pcorr *= 0;
I cannot get the idea why we cannot define pcorr in the same way with pimpleDyMFoam in interFoam.

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.
goguler is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 00:14.