|
[Sponsors] |
December 31, 2009, 09:58 |
interFoam error
|
#1 |
Member
Join Date: Dec 2009
Posts: 46
Rep Power: 17 |
Hello foamers ;
I'm trying to solve free surface problem using interFoam solver after setting fields and specify the boundary conditions alpha1 , p , and U i executed the interFoam solver and got that error ; Create time Create mesh for time = 0 Reading g Reading field p Reading field alpha1 Reading field U Reading/calculating face flux field phi Reading transportProperties Selecting incompressible transport model Newtonian Selecting incompressible transport model Newtonian --> FOAM FATAL IO ERROR: Unable to set reference cell for field p Please supply either pRefCell or pRefPoint file: /home/openfoam1/Desktop/damBreakTest/system/fvSolution::PISO from line 55 to line 60. From function void Foam::setRefCell ( const volScalarField&, const dictionary&, label& scalar&, bool ) in file cfdTools/general/findRefCell/findRefCell.C at line 112. FOAM exiting thank you very much |
|
January 1, 2010, 11:25 |
|
#2 |
Member
santhosh
Join Date: Apr 2009
Location: India
Posts: 70
Rep Power: 17 |
From the error u can say that you have mentioned pRefValue and pRefPoint in the PISO loop in the system/fvSolution dictionary. adding both in the PISO loop u can solve the problem.
|
|
January 1, 2010, 12:12 |
|
#3 | |
Member
Join Date: Dec 2009
Posts: 46
Rep Power: 17 |
Quote:
i did , i put pRefPoint 0 ; pRefValue 0 in the PISO loop and got again an error Create time Create mesh for time = 0 Reading g Reading field p Reading field alpha1 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 time step continuity errors : sum local = 3.00873e-19, global = -1.87935e-19, cumulative = -1.87935e-19 --> FOAM FATAL ERROR: incompatible dimensions for operation [pcorr[-1 3 -1 0 0 0 0] ] == [div(phi)[0 0 -1 0 0 0 0] ] From function checkMethod(const fvMatrix<Type>&, const GeometricField<Type, fvPatchField, volMesh>& in file /home/openfoam1/OpenFOAM/OpenFOAM-1.6.x/src/finiteVolume/lnInclude/fvMatrix.C at line 1219. FOAM aborting #0 Foam::error:rintStack(Foam::Ostream& in "/home/openfoam1/OpenFOAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt/libOpenFOAM.so" #1 Foam::error::abort() in "/home/openfoam1/OpenFOAM/OpenFOAM-1.6.x/lib/linuxGccDPOpt/libOpenFOAM.so" #2 void Foam::checkMethod<double>(Foam::fvMatrix< double> const&, Foam:imensionedField<double, Foam::volMesh> const&, char const*) in "/home/openfoam1/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linuxGccDPOpt/interFoam" #3 Foam::tmp<Foam::fvMatrix<double> > Foam:perator==<double>(Foam::tmp<Foam:: fvMatrix<double> > const&, Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > const& in "/home/openfoam1/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linuxGccDPOpt/interFoam" #4 main in "/home/openfoam1/OpenFOAM/OpenFOAM-1.6.x/applications/bin/linuxGccDPOpt/interFoam" #5 __libc_start_main in "/lib/tls/i686/cmov/libc.so.6" #6 _start at /build/buildd/glibc-2.9/csu/../sysdeps/i386/elf/start.S:122 Aborted Last edited by openfoam1; January 1, 2010 at 12:32. |
||
January 1, 2010, 13:01 |
|
#4 |
Member
santhosh
Join Date: Apr 2009
Location: India
Posts: 70
Rep Power: 17 |
sorry, it is pRefCell not pRefPoint. You can check the variable declarations in createFields.C in interFoam source directory.
Regarding pcorr error, have a look at the "continuityErrs.H" file in source directory. What I feel from the error, you might messed up with dimension, try to see one-to-one matching with tutorial case, if you are doing for the first time. All the best. Regards Santosh... |
|
January 1, 2010, 13:19 |
|
#5 |
Member
Join Date: Dec 2009
Posts: 46
Rep Power: 17 |
yes i do that for the first time ,, I'm trying to simulate the behavior of a water droplet on a hydrophobic flat plate under wind drag and the plate have to rotate
how can i make the flat plat rotates, is it possible in openfoam ? thank you |
|
January 1, 2010, 13:31 |
|
#6 |
Member
santhosh
Join Date: Apr 2009
Location: India
Posts: 70
Rep Power: 17 |
Yeah u can model plate rotation using derived BC, i.e, rotatingWallVelocity.
Santosh. |
|
January 1, 2010, 13:37 |
|
#7 |
Member
Join Date: Dec 2009
Posts: 46
Rep Power: 17 |
||
May 12, 2010, 19:38 |
|
#8 |
Member
Join Date: Nov 2009
Posts: 48
Rep Power: 17 |
Hello,
I am kind of new user in openfoam. I want to simulate such problem that you mentioned in forum( simulating a droplet on hydrophobic surface). would you please help to simulate this.or can u send me your setup..I would be so grateful if you help me through this . thanks Mehran |
|
May 2, 2011, 18:10 |
|
#9 |
Member
Arnout
Join Date: Nov 2010
Posts: 46
Rep Power: 16 |
Regarding the error:
The solver needs to know what and where the reference pressure is. Add the following to your fvsolution file: PISO { ... pRefPoint (-0.081 -0.0257 8.01); pRefValue 1e5; } |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Compile problem | ivanyao | OpenFOAM Running, Solving & CFD | 1 | October 12, 2012 10:31 |
Problem with compile the setParabolicInlet | ivanyao | OpenFOAM Running, Solving & CFD | 6 | September 5, 2008 21:50 |
Compiling problems with hello worldC | fw407 | OpenFOAM Installation | 21 | January 6, 2008 18:38 |
DecomposePar links against liblamso0 with OpenMPI | jens_klostermann | OpenFOAM Bugs | 11 | June 28, 2007 18:51 |
user subroutine error | CFDUSER | CFX | 2 | December 9, 2006 07:31 |