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

Solver - interFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 13, 2021, 03:16
Exclamation Solver - interFoam
  #1
New Member
 
Sohrab Askarli
Join Date: Jul 2021
Location: Saudi Arabia
Posts: 15
Rep Power: 5
askarli is on a distinguished road
Hi,

While running the solver, I receive such an error presented below:

Unable to set reference cell for field p
Please supply either pRefCell or pRefPoint


file: /home/sohrab/OpenFOAM/sohrab-7/run/mydraft/case/system/fvSolution.PIMPLE from line 78 to line 81.


Please be informed that I replaced the stl files in a given tutorial with my own stl file and I didn't change anything in the controldict, only the name of the patches.
askarli is offline   Reply With Quote

Old   July 13, 2021, 03:35
Default
  #2
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
The pressure needs a reference value, because the flow is equal at every level of p. You may add something like

Code:
    pRefCell        0;
    pRefValue       1;
to your solver in fvsolutions, for instance

Code:
PIMPLE {
    nOuterCorrectors 100;
    nNonOrthogonalCorrectors 1;
    nCorrectors         2;
    pRefCell        0;
    pRefValue       1;
}
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   July 13, 2021, 04:30
Default
  #3
New Member
 
Sohrab Askarli
Join Date: Jul 2021
Location: Saudi Arabia
Posts: 15
Rep Power: 5
askarli is on a distinguished road
Herlizchen Dank, Uwe!

I inserted those, however, now I'm receiving another error like:

Code:
/*---------------------------------------------------------------------------*\
  =========                 |
  \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox
   \\    /   O peration     | Website:  https://openfoam.org
    \\  /    A nd           | Version:  7
     \\/     M anipulation  |
\*---------------------------------------------------------------------------*/
Build  : 7-3bcbaf946ae9
Exec   : interFoam
Date   : Jul 13 2021
Time   : 10:28:12
Host   : "sohrab-VirtualBox"
PID    : 7284
I/O    : uncollated
Case   : /home/sohrab/OpenFOAM/sohrab-7/run/mydraft/case
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 10)
allowSystemOperations : Allowing user-supplied system call operations

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

Create mesh for time = 0

Selecting dynamicFvMesh staticFvMesh

PIMPLE: No convergence criteria found


PIMPLE: Operating solver in transient mode with 1 outer corrector
PIMPLE: Operating solver in PISO mode


Reading field p_rgh

Reading field U

Reading/calculating face flux field phi

Reading transportProperties

Selecting incompressible transport model Newtonian
Selecting incompressible transport model Newtonian
Selecting turbulence model type laminar
Selecting laminar stress model Stokes

Reading g

Reading hRef
Calculating field g.h

No MRF models present

No finite volume options present
#0  Foam::error::printStack(Foam::Ostream&) at ??:?
#1  Foam::sigFpe::sigHandler(int) at ??:?
#2  ? in "/lib/x86_64-linux-gnu/libc.so.6"
#3  Foam::adjustPhi(Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>&) at ??:?
#4  ? in "/opt/openfoam7/platforms/linux64GccDPInt32Opt/bin/interFoam"
#5  ? in "/opt/openfoam7/platforms/linux64GccDPInt32Opt/bin/interFoam"
#6  __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#7  ? in "/opt/openfoam7/platforms/linux64GccDPInt32Opt/bin/interFoam"
Floating point exception (core dumped)
askarli is offline   Reply With Quote

Old   July 13, 2021, 07:25
Default
  #4
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
From which tutorial did you take your case?
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Reply

Tags
cfd, interfoam


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
Divergence detected in AMG solver. VOF. Mr.Mister Fluent Multiphase 4 September 25, 2023 08:10
viscosity udf don't use correct temperature and strain rate rezvani Fluent UDF and Scheme Programming 8 May 27, 2021 06:40
Fail to converge when solving with a fabricated solution zizhou FLUENT 0 March 22, 2021 07:33
2D flow around a circular cylinder case with interFoam solver shuoxue OpenFOAM Running, Solving & CFD 2 January 14, 2020 14:23
Hybrid discretisation - blend factor gcoopermax CFX 5 September 23, 2016 09:05


All times are GMT -4. The time now is 08:04.