|
[Sponsors] |
OpenFoam crash when it needs to write output fields |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 20, 2021, 06:12 |
OpenFoam crash when it needs to write output fields
|
#1 |
Member
Join Date: Mar 2019
Posts: 31
Rep Power: 7 |
Hi,
I am using a modified scalarTransportFoam solver (in parallel computing) that has as input the U,nut internalfield and internalfield-BC of T and it resolve only the advection-convection equation for T, but when it reaches the first runtime when it need to write outputfield (it writes U,T,phi, nut, alphaphi (a field created for this solver)) there is an error and the solver stop, without writing output fields. I am pretty sure the problem is due to writing because if I change the writing time it always crash at first writing time. The error log is: Code:
DILUPBiCG: Solving for T, Initial residual = 3.85006e-05, Final residual = 7.27667e-07, No Iterations 10 Time = 290 DILUPBiCG: Solving for T, Initial residual = 3.85139e-05, Final residual = 3.75676e-07, No Iterations 13 [7] [7] [7] --> FOAM FATAL ERROR: [7] object of type N4Foam9Function1IdEE is not allocated [7] [7] From function const T& Foam::autoPtr<T>::operator()() const [with T = Foam::Function1<double>] [7] in file /home/ubuntu/OpenFOAM/OpenFOAM-8/src/OpenFOAM/lnInclude/autoPtrI.H at line 154. [7] FOAM parallel run aborting [7] [7] #0 Foam::error::printStack(Foam::Ostream&)[3] [3] [3] --> FOAM FATAL ERROR: [3] object of type N4Foam9Function1IdEE is not allocated [3] [3] From function const T& Foam::autoPtr<T>::operator()() const [with T = Foam::Function1<double>] [3] in file /home/ubuntu/OpenFOAM/OpenFOAM-8/src/OpenFOAM/lnInclude/autoPtrI.H at line 154. [3] FOAM parallel run aborting [3] [3] #0 Foam::error::printStack(Foam::Ostream&)[4] [4] [4] --> FOAM FATAL ERROR: [4] object of type N4Foam9Function1IdEE is not allocated [4] [4] From function const T& Foam::autoPtr<T>::operator()() const [with T = Foam::Function1<double>] [4] in file /home/ubuntu/OpenFOAM/OpenFOAM-8/src/OpenFOAM/lnInclude/autoPtrI.H at line 154. [4] FOAM parallel run aborting [4] [0] [0] [0] --> FOAM FATAL ERROR: [0] object of type N4Foam9Function1IdEE is not allocated [0] [0] From function const T& Foam::autoPtr<T>::operator()() const [with T = Foam::Function1<double>] [0] in file /home/ubuntu/OpenFOAM/OpenFOAM-8/src/OpenFOAM/lnInclude/autoPtrI.H at line 154. [0] FOAM parallel run aborting [0] [4] #0 Foam::error::printStack(Foam::Ostream&)[0] #0 Foam::error::printStack(Foam::Ostream&) at ??:? [7] #1 Foam::error::abort() at ??:? [3] #1 Foam::error::abort() at ??:? [4] #1 Foam::error::abort() at ??:? [0] #1 Foam::error::abort() at ??:? [7] #2 Foam::swirlFlowRateInletVelocityFvPatchVectorField::write(Foam::Ostream&) const at ??:? [3] #2 Foam::swirlFlowRateInletVelocityFvPatchVectorField::write(Foam::Ostream&) const at ??:? at ??:? [4] #2 Foam::swirlFlowRateInletVelocityFvPatchVectorField::write(Foam::Ostream&) const[0] #2 Foam::swirlFlowRateInletVelocityFvPatchVectorField::write(Foam::Ostream&) const[2] [2] [2] --> FOAM FATAL ERROR: [2] object of type N4Foam9Function1IdEE is not allocated [2] [2] From function const T& Foam::autoPtr<T>::operator()() const [with T = Foam::Function1<double>] [2] in file /home/ubuntu/OpenFOAM/OpenFOAM-8/src/OpenFOAM/lnInclude/autoPtrI.H at line 154. [2] FOAM parallel run aborting [2] [2] #0 Foam::error::printStack(Foam::Ostream&) at ??:? [7] #3 at ??:? [3] #3 at ??:? [2] #1 Foam::error::abort()Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::Boundary::writeEntry(Foam::word const&, Foam::Ostream&) constFoam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::Boundary::writeEntry(Foam::word const&, Foam::Ostream&) const at ??:? [4] #3 at ??:? [0] #3 Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::Boundary::writeEntry(Foam::word const&, Foam::Ostream&) const in "/home/andrea/OpenFOAM/andrea-8/platforms/linux64GccDPInt32Opt/bin/turbulentScalarTransportFoam" [7] #4 in "Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::Boundary::writeEntry(Foam::word const&, Foam::Ostream&) const/home/andrea/OpenFOAM/andrea-8/platforms/linux64GccDPInt32Opt/Foam::Ostream& Foam::operator<< <Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>(Foam::Ostream&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&)bin/ at ??:? tu in r"/home/andrea/OpenFOAM/andrea-8/platforms/linux64GccDPInt32Opt/bin/turbulentScalarTransportFoam" [4] #4 bulentScalar[2] #2 Foam::swirlFlowRateInletVelocityFvPatchVectorField::write(Foam::Ostream&) constT in "/home/andrea/OpenFOAM/andrea-8/platforms/linux64GccDPInt32Opt/bin/turbulentScalarTransportFoam" [0] #4 ransportFoam" [3] #4 Foam::Ostream& Foam::operator<< <Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>(Foam::Ostream&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&) in "/home/andrea/OpenFOAM/andrea-8/platforms/linux64GccDPInt32Opt/bin/turbulentScalarTransportFoam" [7] #5 Foam::Ostream& Foam::operator<< <Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>(Foam::Ostream&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&)Foam::Ostream& Foam::operator<< <Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>(Foam::Ostream&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&)[1] [1] [1] --> FOAM FATAL ERROR: [1] object of type N4Foam9Function1IdEE is not allocated [1] [1] From function const T& Foam::autoPtr<T>::operator()() const [with T = Foam::Function1<double>] [1] in file /home/ubuntu/OpenFOAM/OpenFOAM-8/src/OpenFOAM/lnInclude/autoPtrI.H at line 154. [1] FOAM parallel run aborting [1] Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::writeData(Foam::Ostream&) const[1] #0 Foam::error::printStack(Foam::Ostream&) in "/home/andrea/OpenFOAM/andrea-8/platforms/linux64GccDPInt32Opt/bin/turbulentScalarTransportFoam" [4] #5 in "/home/andrea/OpenFOAM/andrea-8/platforms/linux64GccDPInt32Opt/bin/turbulentScalarTransportFoam" [0] #5 in "/home/andrea/OpenFOAFoam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::writeData(Foam::Ostream&) constM/andrea-8/platformsFoam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::writeData(Foam::Ostream&) const/linux64GccDPInt32Opt/bin/turbulentScalarTransportFoam" [3] #5 in "/home/andrea/OpenFOAM/andrea-8/platforms/linux64GccDPInt32Opt/bin/turbulentScalarTransportFoam" [4] #6 Foam::fileOperation::writeObject(Foam::regIOobject const&, Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType, bool) const in "/home/andrea/OpenFOAM/andrea-8/platforms/linux64GccDPInt32Opt/bin/turbulentScalarTransportFoam" [0] #6 Foam::fileOperation::writeObject(Foam::regIOobject const&, Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType, bool) const in "/home/andrea/OpenFOAM/andrea-8/platforms/linux64GccDPInt32Opt/bin/turbulentScalarTransportFoam" [7] #6 Foam::fileOperation::writeObject(Foam::regIOobject const&, Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType, bool) const at ??:? [1] #1 Foam::error::abort()Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::writeData(Foam::Ostream&) const at ??:? [2] #3 in "/home/anFoam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::Boundary::writeEntry(Foam::word const&, Foam::Ostream&) constdrea/OpenFOAM/andrea-8/platforms/l at ??:? inux64G[4] #7 Foam::regIOobject::writeObject(Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType, bool) constccDPInt3 at ??:? 2Opt/bin[0] #7 Foam::regIOobject::writeObject(Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType, bool) const/turbulentS at ??:? calarTransportFoam" [3] #6 Foam::fileOperation::writeObject(Foam::regIOobject const&, Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType, bool) const[7] #7 Foam::regIOobject::writeObject(Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType, bool) const in "/home/andrea/OpenFOAM/andrea-8/platforms/linux64GccDPInt32Opt/bin/turbulentScalarTransportFoam" [2] #4 Foam::Ostream& Foam::operator<< <Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>(Foam::Ostream&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&) at ??:? at ??:? [1] #2 Foam::swirlFlowRateInletVelocityFvPatchVectorField::write(Foam::Ostream&) const[4] #8 Foam::objectRegistry::writeObject(Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType, bool) const in "/home/andrea/OpenFOAM/andrea-8/platforms/linux64GccDPInt32Opt/bin/turbulentScalarTransportFoam" [2] #5 at ??:? [0] #8 Foam::objectRegistry::writeObject(Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType, bool) const at ??:? at ??:? [3] #7 Foam::regIOobject::writeObject(Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType, bool) const[7] #8 Foam::objectRegistry::writeObject(Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType, bool) constFoam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::writeData(Foam::Ostream&) const in "/home/andrea/OpenFOAM/andrea-8/platforms/linux64GccDPInt32Opt/bin/turbulentScalarTransportFoam" [2] #6 Foam::fileOperation::writeObject(Foam::regIOobject const&, Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType, bool) const at ??:? [4] #9 Foam::objectRegistry::writeObject(Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType, bool) const at ??:? [0] #9 Foam::objectRegistry::writeObject(Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType, bool) const at ??:? at ??:? [3] #8 Foam::objectRegistry::writeObject(Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType, bool) const[7] #9 Foam::objectRegistry::writeObject(Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType, bool) const at ??:? at ??:? [1] #3 [2] #7 Foam::regIOobject::writeObject(Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType, bool) const at ??:? [4] #10 Foam::Time::writeObject(Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType, bool) constFoam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::Boundary::writeEntry(Foam::word const&, Foam::Ostream&) const at ??:? [0] #10 Foam::Time::writeObject(Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType, bool) const at ??:? [3] #9 Foam::objectRegistry::writeObject(Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType, bool) const at ??:? [7] #10 Foam::Time::writeObject(Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType, bool) const in "/home/andrea/OpenFOAM/andrea-8/platforms/linux64GccDPInt32Opt/bin/turbulentScalarTransportFoam" [1] #4 at ??:? [2] #8 Foam::objectRegistry::writeObject(Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType, bool) constFoam::Ostream& Foam::operator<< <Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>(Foam::Ostream&, Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh> const&) at ??:? [4] #11 at ??:? [0] #11 in "/home/andrea/OpenFOAM/andrea-8/platforms/linux64GccDPInt32Opt/bin/turbulentScalarTransportFoam" [1] #5 ? at ??:? [7] #11 at ??:? [3] #10 Foam::Time::writeObject(Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType, bool) const?Foam::GeometricField<Foam::Vector<double>, Foam::fvPatchField, Foam::volMesh>::writeData(Foam::Ostream&) const? in "/home/andrea/OpenFOAM/andrea-8/platforms/linux64GccDPInt32Opt/bin/turbulentScalarTransportFoam" [4] #12 __libc_start_main at ??:? [2] #9 Foam::objectRegistry::writeObject(Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType, bool) const in "/home/andrea/OpenFOAM/andrea-8/platforms/linux64GccDPInt32Opt/bin/turbulentScalarTransportFoam" [0] #12 __libc_start_main in "/home/andrea/OpenFOAM/andrea-8/platforms/linux64GccDPInt32Opt/bin/turbulentScalarTransportFoam" [1] #6 Foam::fileOperation::writeObject(Foam::regIOobject const&, Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType, bool) const in "/home/andrea/OpenFOAM/andrea-8/platforms/linux64GccDPInt32Opt/bin/turbulentScalarTransportFoam" [7] #12 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" [4] #13 in "/lib/x86_64-linux-gnu/libc.so.6" [0] #13 at ??:? [3] #11 ? in "/lib/x86_64-linux-gnu/libc.so.6" [7] #13 ??? at ??:? in "/home/andrea/OpenFOAM/andrea-8/platforms/linux64GccDPInt32Opt/bin/turbulentScalarTransportFoam" [2] #10 Foam::Time::writeObject(Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType, bool) const-------------------------------------------------------------------------- MPI_ABORT was invoked on rank 4 in communicator MPI COMMUNICATOR 3 SPLIT FROM 0 with errorcode 1. NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes. You may or may not see output from other processes, depending on exactly when Open MPI kills them. -------------------------------------------------------------------------- [5] [5] [5] --> FOAM FATAL ERROR: [5] object of type N4Foam9Function1IdEE is not allocated [5] [5] From function const T& Foam::autoPtr<T>::operator()() const [with T = Foam::Function1<double>] [5] in file /home/ubuntu/OpenFOAM/OpenFOAM-8/src/OpenFOAM/lnInclude/autoPtrI.H at line 154. [5] FOAM parallel run aborting [5] [5] #0 Foam::error::printStack(Foam::Ostream&) in "/home/andrea/OpenFOAM/andrea-8/platforms/linux64GccDPInt32Opt/bin/turbulentScalarTransportFoam" [andrea-VirtualBox:12791] PMIX ERROR: UNREACHABLE in file ../../../src/server/pmix_server.c at line 2193 [andrea-VirtualBox:12791] PMIX ERROR: UNREACHABLE in file ../../../src/server/pmix_server.c at line 2193 [andrea-VirtualBox:12791] PMIX ERROR: UNREACHABLE in file ../../../src/server/pmix_server.c at line 2193 at ??:? [5] #1 Foam::error::abort() at ??:? [5] #2 Foam::swirlFlowRateInletVelocityFvPatchVectorField::write(Foam::Ostream&) const at ??:? [2] #11 ? in "/home/andrea/OpenFOAM/andrea-8/platforms/linux64GccDPInt32Opt/bin/turbulentScalarTransportFoam" [2] #12 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" [2] #13 ? in "/home/andrea/OpenFOAM/andrea-8/platforms/linux64GccDPInt32Opt/bin/turbulentScalarTransportFoam" [6] [6] [6] --> FOAM FATAL ERROR: [6] object of type N4Foam9Function1IdEE is not allocated [6] [6] From function const T& Foam::autoPtr<T>::operator()() const [with T = Foam::Function1<double>] [6] in file /home/ubuntu/OpenFOAM/OpenFOAM-8/src/OpenFOAM/lnInclude/autoPtrI.H at line 154. [6] FOAM parallel run aborting [6] [6] #0 Foam::error::printStack(Foam::Ostream&) at ??:? [6] #1 Foam::error::abort() at ??:? [6] #2 Foam::swirlFlowRateInletVelocityFvPatchVectorField::write(Foam::Ostream&) const in "/home/andrea/OpenFOAM/andrea-8/platforms/linux64GccDPInt32Opt/bin/turbulentScalarTransportFoam" [3] #12 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6" [3] #13 ? in "/home/andrea/OpenFOAM/andrea-8/platforms/linux64GccDPInt32Opt/bin/turbulentScalarTransportFoam" at ??:? [1] #7 Foam::regIOobject::writeObject(Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType, bool) const at ??:? [1] #8 Foam::objectRegistry::writeObject(Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType, bool) const at ??:? [1] #9 Foam::objectRegistry::writeObject(Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType, bool) const at ??:? [1] #10 Foam::Time::writeObject(Foam::IOstream::streamFormat, Foam::IOstream::versionNumber, Foam::IOstream::compressionType, bool) const in "/home/andrea/OpenFOAM/andrea-8/platforms/linux64GccDPInt32Opt/bin/turbulentScalarTransportFoam" [andrea-VirtualBox:12791] 4 more processes have sent help message help-mpi-api.txt / mpi-abort [andrea-VirtualBox:12791] Set MCA parameter "orte_base_help_aggregate" to 0 to see all help / error messages Code:
2 Foam::swirlFlowRateInletVelocityFvPatchVectorField::write(Foam::Ostream&) const[0] #2 Foam::swirlFlowRateInletVelocityFvPatchVectorField::write(Foam::Ostream&) const[2] as Bc, so probably this is the cause of the crash? To bypass this problem I have tried to use wirteObjects in controlDict: Code:
writeObjects1 { type writeObjects; libs ("libutilityFunctionObjects.so"); objects (U nut phi phiAlpha Vdj); writeOption noWrite; writeControl runTime; writeInterval 145; } writeObjects2 { type writeObjects; libs ("libutilityFunctionObjects.so"); objects (T); writeOption autoWrite; writeControl runTime; writeInterval 145; } I have used this solver in different simulations (but without swirlFlowRateInletVelocity BC) and never had a problem similar to this. Do you know how to resolve this issue or how to by pass it with a working writeobject for all writeInterval? I hope I have been clear with the issue,if you have doubt do not esitate to ask |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
OpenFOAM course for beginners | Jibran | OpenFOAM Announcements from Other Sources | 2 | November 4, 2019 09:51 |
disable solver output openfoam..use writeRegisteredObject to write only certain field | New-to-CFD | OpenFOAM Running, Solving & CFD | 1 | November 16, 2018 16:56 |
how to sample / output only certain fields openfoam | New-to-CFD | OpenFOAM Running, Solving & CFD | 1 | August 20, 2018 18:22 |
OpenFOAM 5.0 Released | CFDFoundation | OpenFOAM Announcements from OpenFOAM Foundation | 11 | June 6, 2018 00:48 |
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 | cfd.direct | OpenFOAM Announcements from Other Sources | 2 | August 31, 2015 14:36 |