CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (https://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   "--> FOAM FATAL ERROR:" by post processing by rhoPimpleFoam (https://www.cfd-online.com/Forums/openfoam-post-processing/251387-foam-fatal-error-post-processing-rhopimplefoam.html)

elbatawy August 13, 2023 07:34

"--> FOAM FATAL ERROR:" by post processing by rhoPimpleFoam
 
- I have created source codes to compile and use the lib in the post processing. I am using OpenFOAM-v1612+

- After investigations the error appearing by reaching this part of the code, where `Ru1` is volTensorField

Code:

volTensorField Ru1( IOobject("Ru1", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), mesh, dimensionedTensor("zero", dimensionSet(1, -1, -3, 0, 0), tensor::zero));
Code:

volVectorField divRu1 = fvc::div(Ru1);
- By using `rhoPimpleFoam` in post processing , i am getting always the below error , when i am using the `fvc::div()` function for volTensorField or volVectorField :
``````
--> FOAM FATAL ERROR: request for surfaceScalarField default from objectRegistry region0 failed available objects of type surfaceScalarField are
3 ( phi_0_0 phi phi_0 )
From function const Type& Foam::objectRegistry::lookupObject(const Foam::word&, bool) const [with Type = Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh>] in file /home/buzz2/pawan/OpenFOAM/OpenFOAM-v1612+/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 219. FOAM aborting #0 Foam::error::printStack(Foam::Ostream&) in "/opt/OpenFOAM/OpenFOAM-v1612+/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so" #1 Foam::error::abort() in "/opt/OpenFOAM/OpenFOAM-v1612+/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so" #2 Foam::GeometricField<double, Foam::fvsPatchField, Foam::surfaceMesh> const& Foam::objectRegistry::lookupObject<Foam::Geometric Field<double, Foam::fvsPatchField, Foam::surfaceMesh> >(Foam::word const&, bool) const in "/opt/OpenFOAM/OpenFOAM-v1612+/platforms/linux64GccDPInt32Opt/lib/libturbulenceModels.so" #3 Foam::surfaceInterpolationScheme<Foam::Vector<doub le> >::addMeshConstructorToTable<Foam::linearUpwind<Fo am::Vector<double> > >::New(Foam::fvMesh const&, Foam::Istream&) in "/opt/OpenFOAM/OpenFOAM-v1612+/platforms/linux64GccDPInt32Opt/lib/libfiniteVolume.so" #4 Foam::surfaceInterpolationScheme<Foam::Vector<doub le> >::New(Foam::fvMesh const&, Foam::Istream&) in "/opt/OpenFOAM/OpenFOAM-v1612+/platforms/linux64GccDPInt32Opt/lib/libturbulenceModels.so" #5 Foam::fv::divScheme<Foam::Vector<double> >::addIstreamConstructorToTable<Foam::fv::gaussDiv Scheme<Foam::Vector<double> > >::New(Foam::fvMesh const&, Foam::Istream&) in "/opt/OpenFOAM/OpenFOAM-v1612+/platforms/linux64GccDPInt32Opt/lib/libfiniteVolume.so" #6 Foam::fv::divScheme<Foam::Vector<double> >::New(Foam::fvMesh const&, Foam::Istream&) in "/opt/OpenFOAM/OpenFOAM-v1612+/platforms/linux64GccDPInt32Opt/lib/libfieldFunctionObjects.so" #7 Foam::tmp<Foam::GeometricField<Foam::innerProduct< Foam::Vector<double>, Foam::Vector<double> >::type, Foam::fvPatchField, Foam::volMesh> > Foam::fvc::div<Foam::Vector<double> >(Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&) in "/opt/OpenFOAM/OpenFOAM-v1612+/platforms/linux64GccDPInt32Opt/lib/libfieldFunctionObjects.so" #8 Foam::functionObjects::TransportTerm::calc() in "/root/OpenFOAM/-v1612+/platforms/linux64GccDPInt32Opt/lib/libMTSFunctionObjects.so" #9 Foam::functionObjects::fieldExpression::execute() in "/opt/OpenFOAM/OpenFOAM-v1612+/platforms/linux64GccDPInt32Opt/lib/libfieldFunctionObjects.so" #10 Foam::functionObjects::timeControl::execute() in "/opt/OpenFOAM/OpenFOAM-v1612+/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so" #11 Foam::functionObjectList::execute() in "/opt/OpenFOAM/OpenFOAM-v1612+/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so" #12 Foam::Time::run() const in "/opt/OpenFOAM/OpenFOAM-v1612+/platforms/linux64GccDPInt32Opt/lib/libOpenFOAM.so" #13 ? in "/opt/OpenFOAM/OpenFOAM-v1612+/platforms/linux64GccDPInt32Opt/bin/rhoPimpleFoam" #14 __libc_start_main in "/lib64/libc.so.6" #15 ? in "/opt/OpenFOAM/OpenFOAM-v1612+/platforms/linux64GccDPInt32Opt/bin/rhoPimpleFoam" Aborted (core dumped)
``````

- any suggestion or help would so appreciated.


All times are GMT -4. The time now is 14:45.