Error in running cavitatingFoam
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::printStack(Foam::Ostream&) at ??:? #1 Foam::error::abort() at ??:? #2 Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const& Foam::objectRegistry::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 |
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 |
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 :D Thanks a lot, really!
|
All times are GMT -4. The time now is 17:04. |