CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   PotentialFoam configuration for rhoPimpleFoam (https://www.cfd-online.com/Forums/openfoam-solving/234126-potentialfoam-configuration-rhopimplefoam.html)

OisinOC February 24, 2021 05:25

PotentialFoam configuration for rhoPimpleFoam
 
Hi,

I am trying to use potentialFoam to initialise the flow for a rhoPimpleFoam simulation but I get the following error.

Code:

--> FOAM FATAL ERROR:

    request for volScalarField thermo:psi from objectRegistry region0 failed
    available objects of type volScalarField are

4
(
div(((sqr(U)|(magSqr(U)+(1e-015*average(magSqr(U)))))&convection(phi,U)))
Phi
magSqr(U)
p
)

From reading other posts I think it relates to the thermo:psi present in waveTransmissive boundary from the p initial conditions file and that I need to use one of the four options it has suggested but I'm not sure how to implement it and be confident I've not impacted the rhoPimpleFoam model. I started with the LES Pitzdaily tutorial for rhoPimpleFoam in case that is relevant.

Could anyone explain how to fix this potentialFoam error? Or do I need to create a separate model to initialise the flow and then copy the solutions latest time files into the 0 directory for the rhoPimpleFoam?


Code:

/*--------------------------------*- C++ -*----------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  5                                    |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
FoamFile
{
    version    2.0;
    format      ascii;
    class      volScalarField;
    object      p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dimensions      [1 -1 -2 0 0 0 0];

internalField  uniform 1e5;

boundaryField
{
    inlet
    {
        type            zeroGradient;
    }
    outlet
    {
        type            waveTransmissive;
        psi            thermo:psi;
        gamma          1.3;
        fieldInf        1e5;
        lInf            0.3;
        value          $internalField;
    }
    wall
    {
        type            zeroGradient;
    }
    defaultFaces
    {
        type        zeroGradient;
    }
}

// ************************************************************************* //



All times are GMT -4. The time now is 01:05.