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

Error in running cavitatingFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By maninthemail

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 8, 2015, 08:00
Default Error in running cavitatingFoam
  #1
New Member
 
Antonio
Join Date: Feb 2015
Posts: 4
Rep Power: 11
Antonio40 is on a distinguished road
Hello,

Can any one help me in running cavitatingFoam?
I have to simulate cavitation in a valve and I'm using OpenFoam 2.3.1 and when i try to run CavitatingFoam i get the following error:
--> FOAM FATAL ERROR:

request for surfaceScalarField phiv from objectRegistry region0 failed
available objects of type surfaceScalarField are

7
(
rhoPhi
rhof
((rhorAUf*magSf)*snGrad(p))
(rhorAUf*magSf)
phi
phi_0
rhorAUf
)


From function objectRegistry::lookupObject<Type>(const word&) const
in file /home/openfoam/OpenFOAM/OpenFOAM-2.3.1/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 198.

FOAM aborting

#0 Foam::error:rintStack(Foam::Ostream&) at ??:?
#1 Foam::error::abort() at ??:?
#2 Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const& Foam:bjectRegistry::lookupObject<Foam::Geometric Field<double, Foam::fvsPatchField, Foam::surfaceMesh> >(Foam::word const&) const at ??:?
#3 Foam::totalPressureFvPatchScalarField::updateCoeff s(Foam::Field<double> const&, Foam::Field<Foam::Vector<double> > const&) at ??:?
#4 Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>::GeometricBoundaryField::updateCoef fs() at ??:?
#5 Foam::fvMatrix<double>::fvMatrix(Foam::GeometricFi eld<double, Foam::fvPatchField, Foam::volMesh> const&, Foam::dimensionSet const&) at ??:?
#6 Foam::fv::gaussLaplacianScheme<double, double>::fvmLaplacianUncorrected(Foam::GeometricFi eld<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) at ??:?
#7 Foam::fv::gaussLaplacianScheme<double, double>::fvmLaplacian(Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const&, Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> const&) at ??:?
#8
at ??:?
#9
at ??:?
#10
at ??:?
#11 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#12
at ??:?
Maybe my question is silly but i'm new of openFoam. Thanks for your help.
Regards
Antonio
Antonio40 is offline   Reply With Quote

Old   February 9, 2015, 14:35
Default
  #2
New Member
 
Bill
Join Date: Jun 2011
Location: UK
Posts: 16
Rep Power: 15
maninthemail is on a distinguished road
Your error is coming from the total pressure boundary condition. 2.3.1 changed phiv to phi in cavitatingFoam. You need to remove the bit of the boundary condition entry that specifies the name of phi as phiv.

Code:
    inlet
    {
        type            totalPressure;
        U               U;
        phi             phiv; // <-- remove this entry
        rho             rho;
        psi             none;
        gamma           1;
        p0              uniform 300e5;
    }
Antonio40 and AndoniBM like this.
maninthemail is offline   Reply With Quote

Old   February 9, 2015, 15:12
Default
  #3
New Member
 
Antonio
Join Date: Feb 2015
Posts: 4
Rep Power: 11
Antonio40 is on a distinguished road
Great it works!! After this modification initially it showed an error but i've changed phiv with phi in divschemes and now it works well Thanks a lot, really!
Antonio40 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
Problem About Running Fluent In Linux mitra FLUENT 18 June 20, 2019 03:11
GUI crash and simulation engine still running RPJones FLOW-3D 2 November 9, 2010 09:18
cavitatingFoam error..... siddharameshwara Main CFD Forum 0 October 15, 2010 03:56
Running Multiple Simulations from Workbench 12.1 Josh CFX 3 August 10, 2010 20:51
Running 2 CFD jobs on one PC steve podleski Main CFD Forum 17 February 16, 2000 15:40


All times are GMT -4. The time now is 06:16.