CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   pimpleDyMFoam (http://www.cfd-online.com/Forums/openfoam/107163-pimpledymfoam.html)

samiam1000 September 19, 2012 06:41

pimpleDyMFoam
 
Dear All,

I have a problem while I am trying to use the pimpleDyMFoam solver.

As soon as I launch the simulation, I get this error:

Code:

rduser@slnxepmi05:/OPENFOAM/cases/moving_door_def_flow/test/openingNoEnergy$ pimpleDyMFoam
/*---------------------------------------------------------------------------*\
| =========                |                                                |
| \\      /  F ield        | OpenFOAM: The Open Source CFD Toolbox          |
|  \\    /  O peration    | Version:  2.1.0                                |
|  \\  /    A nd          | Web:      www.OpenFOAM.org                      |
|    \\/    M anipulation  |                                                |
\*---------------------------------------------------------------------------*/
Build  : 2.1.0-0bc225064152
Exec  : pimpleDyMFoam
Date  : Sep 19 2012
Time  : 12:34:52
Host  : "slnxepmi05"
PID    : 23739
Case  : /OPENFOAM/cases/moving_door_def_flow/test/openingNoEnergy
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Selecting dynamicFvMesh dynamicMotionSolverFvMesh
Selecting motion solver: displacementSBRStress
Selecting motion diffusion: quadratic
Selecting motion diffusion: inverseDistance
Reading field p

Reading field U

Reading/calculating face flux field phi



--> FOAM FATAL IO ERROR:
Unable to set reference cell for field p
    Please supply either pRefCell or pRefPoint


file: /OPENFOAM/cases/moving_door_def_flow/test/openingNoEnergy/system/fvSolution::PIMPLE from line 69 to line 72.

    From function void Foam::setRefCell
(
    const volScalarField&,
    const volScalarField&,
    const dictionary&,
    label& scalar&,
    bool
)
    in file cfdTools/general/findRefCell/findRefCell.C at line 125.

FOAM exiting

What can I do?

Thanks a lot,
Samuele

fsaltara September 19, 2012 09:06

In the fvSolution file, located in the system folder, write the options for pRefCell and pRefValue in the PIMPLE section, below the nNonOrthogonalCorrectors option:


PIMPLE
{
nOuterCorrectors ....
nCorrectors ......
nNonOrthogonalCorrectors ....
pRefCell 0;
pRefValue 0;
}

samiam1000 September 19, 2012 10:11

Oh, that's right.

Sorry for the question,

Samuele


All times are GMT -4. The time now is 20:44.