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

--> FOAM FATAL ERROR: object of type N4Foam19basicChemistryModelE is not allocated

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 8, 2021, 11:06
Question --> FOAM FATAL ERROR: object of type N4Foam19basicChemistryModelE is not allocated
  #1
Senior Member
 
Kumaresh
Join Date: Oct 2016
Posts: 349
Rep Power: 11
Kummi is on a distinguished road
Send a message via Yahoo to Kummi
Hello Foamers,
I'm using fireFOAM model to simulate the pyrolysis in OpenFOAM. In order to include the effect of gaseous species in pyrolysis model, I need to extract the data from another class and implement in the current model as a source term.
The gaseous species are extracted from the class called "basicChemistryModel"

(i) In reactinOneDim.H file, I included,
autoPtr<basicChemistryModel> newChemistry_; //basicChemistryModel is the class from where data need to be extracted

(ii) In reactinOneDim.C file, I added,
dataExtracted_ = newChemistry_->Sh()(); // Sh()() is the data extracted from the class basicChemistryModel

(iii) In energy equation, the source file is summed up as,

fvScalarMatrix hEqn
(
fvm::ddt(rho_, h_)
- fvm::laplacian(alpha, h_)
==
dataExtracted_ //SOURCE TERM
);

There found no issues with compilations. But while running the case, I got this following error as,

//************************************************** ******//
--> FOAM FATAL ERROR:
object of type N4Foam19basicChemistryModelE is not allocated

From function Foam::autoPtr<T>:perator->()
in file /home/kummijai/OpenFOAM/OpenFOAM-2.4.0/src/OpenFOAM/lnInclude/autoPtrI.H at line 176.

FOAM aborting

#0 Foam::error:rintStack(Foam::Ostream&) at ??:?
#1 Foam::error::abort() at ??:?
#2 Foam::regionModels:yrolysisModels::reactingOneDi m::evolveRegion() at ??:?
#3 Foam::regionModels::regionModel::evolve() at ??:?
#4 ? at ??:?
#5 __libc_start_main in "/lib/x86_64-linux-gnu/libc.so.6"
#6 ? at ??:?
Aborted (core dumped)

//************************************************** ******//

I have checked about this error in forums, but I couldn't able to get any ideas. Kindly someone share their thoughts.
Thank you
Kummi is offline   Reply With Quote

Old   April 13, 2021, 10:01
Default
  #2
Member
 
Join Date: Feb 2018
Posts: 91
Rep Power: 8
charles4allme is on a distinguished road
Hi,

Have you been able to figure out the problem
charles4allme is offline   Reply With Quote

Old   April 13, 2021, 12:41
Default
  #3
Senior Member
 
Kumaresh
Join Date: Oct 2016
Posts: 349
Rep Power: 11
Kummi is on a distinguished road
Send a message via Yahoo to Kummi
In order to extract data from the particular class, I have opted autoPtr declaration format. In the beginning, the class "basicChemistryModel" was fitted in inappropriate way. The reason why it leads to error - object type error.
Later I have fitted suitable class "solidChemistryModel", which eliminates the error

Quote:
autoPtr<solidChemistryModel> solidChemistry_;
Thank you
Kummi 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
reactingMultiphaseEulerFoam tonnykz OpenFOAM Running, Solving & CFD 2 June 15, 2020 02:09
time step continuity problem in VAWT simulation lpz_michele OpenFOAM Running, Solving & CFD 5 February 22, 2018 19:50
Possible Bug in pimpleFoam (or createPatch) (or fluent3DMeshToFoam) cfdonline2mohsen OpenFOAM 3 October 21, 2013 09:28
Error during initialization of "rhoSimpleFoam" kornickel OpenFOAM Running, Solving & CFD 8 September 17, 2013 05:37
singularity? mihaipruna OpenFOAM Running, Solving & CFD 5 April 24, 2012 17:18


All times are GMT -4. The time now is 17:19.